Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.gui.history;
|
---|
3 |
|
---|
4 | import static org.junit.Assert.assertNotNull;
|
---|
5 |
|
---|
6 | import org.junit.Test;
|
---|
7 |
|
---|
8 | /**
|
---|
9 | * Unit tests of {@link CoordinateInfoViewer} class.
|
---|
10 | */
|
---|
11 | public class CoordinateInfoViewerTest {
|
---|
12 |
|
---|
13 | /**
|
---|
14 | * Test for {@link CoordinateInfoViewer#CoordinateInfoViewer} - {@code null} handling.
|
---|
15 | */
|
---|
16 | @Test(expected = IllegalArgumentException.class)
|
---|
17 | public void testCoordinateInfoViewerNull() {
|
---|
18 | new CoordinateInfoViewer(null);
|
---|
19 | }
|
---|
20 |
|
---|
21 | /**
|
---|
22 | * Test for {@link CoordinateInfoViewer#CoordinateInfoViewer} - nominal case.
|
---|
23 | */
|
---|
24 | @Test
|
---|
25 | public void testCoordinateInfoViewerNominal() {
|
---|
26 | assertNotNull(new CoordinateInfoViewer(new HistoryBrowserModel()));
|
---|
27 | }
|
---|
28 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.