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

Last change on this file since 10195 was 10108, checked in by Don-vip, 8 years ago

add more unit tests

  • Property svn:eol-style set to native
File size: 994 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.BeforeClass;
7import org.junit.Test;
8import org.openstreetmap.josm.JOSMFixture;
9
10/**
11 * Unit tests of {@link CoordinateInfoViewer} class.
12 */
13public class CoordinateInfoViewerTest {
14
15 /**
16 * Setup test.
17 */
18 @BeforeClass
19 public static void setUpBeforeClass() {
20 JOSMFixture.createUnitTestFixture().init();
21 }
22
23 /**
24 * Test for {@link CoordinateInfoViewer#CoordinateInfoViewer} - {@code null} handling.
25 */
26 @Test(expected = IllegalArgumentException.class)
27 public void testCoordinateInfoViewerNull() {
28 new CoordinateInfoViewer(null);
29 }
30
31 /**
32 * Test for {@link CoordinateInfoViewer#CoordinateInfoViewer} - nominal case.
33 */
34 @Test
35 public void testCoordinateInfoViewerNominal() {
36 assertNotNull(new CoordinateInfoViewer(new HistoryBrowserModel()));
37 }
38}
Note: See TracBrowser for help on using the repository browser.