Last change
on this file since 10649 was 10649, checked in by Don-vip, 8 years ago |
fix #13193 - Use a new bug report dialog (patch by michael2402) - gsoc-core
|
-
Property svn:eol-style
set to
native
|
File size:
1.1 KB
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.tools.bugreport;
|
---|
3 |
|
---|
4 | import static org.junit.Assert.assertFalse;
|
---|
5 |
|
---|
6 | import org.junit.Before;
|
---|
7 | import org.junit.Test;
|
---|
8 | import org.openstreetmap.josm.JOSMFixture;
|
---|
9 |
|
---|
10 | /**
|
---|
11 | * Unit tests of {@link BugReportExceptionHandler} class.
|
---|
12 | */
|
---|
13 | public class BugReportExceptionHandlerTest {
|
---|
14 |
|
---|
15 | /**
|
---|
16 | * Setup tests.
|
---|
17 | */
|
---|
18 | @Before
|
---|
19 | public void setUp() {
|
---|
20 | JOSMFixture.createUnitTestFixture().init(true);
|
---|
21 | }
|
---|
22 |
|
---|
23 | /**
|
---|
24 | * Unit test for {@link BugReportExceptionHandler.BugReporterThread#askForBugReport} method.
|
---|
25 | */
|
---|
26 | @Test
|
---|
27 | public void testAskForBugReport() {
|
---|
28 | BugReportExceptionHandler.BugReporterThread.askForBugReport(new Exception("testAskForBugReport"));
|
---|
29 | }
|
---|
30 |
|
---|
31 | /**
|
---|
32 | * Unit test for {@link BugReportExceptionHandler#handleException} method.
|
---|
33 | */
|
---|
34 | @Test
|
---|
35 | public void testHandleException() {
|
---|
36 | BugReportExceptionHandler.handleException(new Exception("testHandleException"));
|
---|
37 | assertFalse(BugReportExceptionHandler.exceptionHandlingInProgress());
|
---|
38 | }
|
---|
39 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.