Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 146179 Details for
Bug 288241
[Upload] NPE if Upload widget is disposed
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
JUnit Testcase
clipboard.txt (text/plain), 863 bytes, created by
Stefan Röck
on 2009-09-01 08:56:49 EDT
(
hide
)
Description:
JUnit Testcase
Filename:
MIME Type:
Creator:
Stefan Röck
Created:
2009-09-01 08:56:49 EDT
Size:
863 bytes
patch
obsolete
>public class UploadTest extends TestCase { > > protected void setUp() throws Exception { > RWTFixture.setUp(); > } > > protected void tearDown() throws Exception { > RWTFixture.tearDown(); > } > > public void testGetUploadItem() { > Display display = new Display(); > Shell parent = new Shell(display, SWT.NONE); > Upload upload = new Upload( parent, SWT.NONE, SWT.NONE ); > upload.dispose(); > > SWTException exc = null; > try { > upload.getUploadItem(); > } catch (SWTException e) { > exc = e; > } > > assertNotNull("An exception should be thrown if the Upload#getUploadItem() is called on a disposed widget", exc); > if (exc != null) { > assertEquals("An ERROR_WIDGET_DISPOSED should be thrown if the Upload#getUploadItem() is called on a disposed widget", SWT.ERROR_WIDGET_DISPOSED, exc.code); > } > > } > >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 288241
: 146179 |
146181