Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.gui.history;
|
---|
3 |
|
---|
4 | import static org.junit.jupiter.api.Assertions.assertNotNull;
|
---|
5 | import static org.junit.jupiter.api.Assertions.assertThrows;
|
---|
6 |
|
---|
7 | import org.junit.jupiter.api.Test;
|
---|
8 | import org.junit.jupiter.api.extension.RegisterExtension;
|
---|
9 | import org.openstreetmap.josm.testutils.JOSMTestRules;
|
---|
10 |
|
---|
11 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
|
---|
12 |
|
---|
13 | /**
|
---|
14 | * Unit tests of {@link CoordinateInfoViewer} class.
|
---|
15 | */
|
---|
16 | class CoordinateInfoViewerTest {
|
---|
17 |
|
---|
18 | /**
|
---|
19 | * Setup test.
|
---|
20 | */
|
---|
21 | @RegisterExtension
|
---|
22 | @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
|
---|
23 | public JOSMTestRules test = new JOSMTestRules().preferences();
|
---|
24 |
|
---|
25 | /**
|
---|
26 | * Test for {@link CoordinateInfoViewer#CoordinateInfoViewer} - {@code null} handling.
|
---|
27 | */
|
---|
28 | @Test
|
---|
29 | void testCoordinateInfoViewerNull() {
|
---|
30 | assertThrows(IllegalArgumentException.class, () -> new CoordinateInfoViewer(null));
|
---|
31 | }
|
---|
32 |
|
---|
33 | /**
|
---|
34 | * Test for {@link CoordinateInfoViewer#CoordinateInfoViewer} - nominal case.
|
---|
35 | */
|
---|
36 | @Test
|
---|
37 | void testCoordinateInfoViewerNominal() {
|
---|
38 | assertNotNull(new CoordinateInfoViewer(new HistoryBrowserModel()));
|
---|
39 | }
|
---|
40 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.