Ignore:
Timestamp:
2016-03-28T14:23:40+02:00 (4 years ago)
Author:
Don-vip
Message:

see #12652 - rework bug report classes to improve unit tests coverage

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  
    22package org.openstreetmap.josm.tools.bugreport;
    33
     4import static org.junit.Assert.assertFalse;
    45import static org.junit.Assert.assertNotNull;
    56
     
    1819    @Before
    1920    public void setUp() {
    20         JOSMFixture.createUnitTestFixture().init();
     21        JOSMFixture.createUnitTestFixture().init(true);
    2122    }
    2223
     
    2627    @Test
    2728    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());
    2947    }
    3048}
Note: See TracChangeset for help on using the changeset viewer.