source: josm/trunk/test/unit/org/openstreetmap/josm/gui/history/NodeListViewerTest.java@ 9816

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

add more unit tests, javadoc, fix code style issues

  • Property svn:eol-style set to native
File size: 706 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 NodeListViewer} class.
10 */
11public class NodeListViewerTest {
12
13 /**
14 * Test for {@link NodeListViewer#NodeListViewer} - {@code null} handling.
15 */
16 @Test(expected = IllegalArgumentException.class)
17 public void testNodeListViewerNull() {
18 new NodeListViewer(null);
19 }
20
21 /**
22 * Test for {@link NodeListViewer#NodeListViewer} - nominal case.
23 */
24 @Test
25 public void testNodeListViewerNominal() {
26 assertNotNull(new NodeListViewer(new HistoryBrowserModel()));
27 }
28}
Note: See TracBrowser for help on using the repository browser.