source: josm/trunk/test/unit/org/openstreetmap/josm/gui/history/CoordinateInfoViewerTest.java@ 9666

Last change on this file since 9666 was 9666, checked in by stoecker, 8 years ago

see #12410 fix style of tests

File size: 766 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.gui.history;
3
4import static org.junit.Assert.assertNotNull;
5
6import org.junit.Test;
7
8/**
9 * Unit tests of {@link CoordinateInfoViewer} class.
10 */
11public 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.