Changeset 10067 in josm for trunk/test
- Timestamp:
- 2016-03-28T14:23:40+02:00 (9 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm/tools/bugreport
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/tools/bugreport/BugReportExceptionHandlerTest.java
r10064 r10067 2 2 package org.openstreetmap.josm.tools.bugreport; 3 3 4 import static org.junit.Assert.assertFalse; 4 5 import static org.junit.Assert.assertNotNull; 5 6 … … 18 19 @Before 19 20 public void setUp() { 20 JOSMFixture.createUnitTestFixture().init( );21 JOSMFixture.createUnitTestFixture().init(true); 21 22 } 22 23 … … 26 27 @Test 27 28 public void testBuildPanel() { 28 assertNotNull(BugReportExceptionHandler.buildPanel(new Exception())); 29 assertNotNull(BugReportExceptionHandler.buildPanel(new Exception("testBuildPanel"))); 30 } 31 32 /** 33 * Unit test for {@link BugReportExceptionHandler.BugReporterThread#askForBugReport} method. 34 */ 35 @Test 36 public void testAskForBugReport() { 37 BugReportExceptionHandler.BugReporterThread.askForBugReport(new Exception("testAskForBugReport")); 38 } 39 40 /** 41 * Unit test for {@link BugReportExceptionHandler#handleException} method. 42 */ 43 @Test 44 public void testHandleException() { 45 BugReportExceptionHandler.handleException(new Exception("testHandleException")); 46 assertFalse(BugReportExceptionHandler.exceptionHandlingInProgress()); 29 47 } 30 48 }
Note:
See TracChangeset
for help on using the changeset viewer.