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

Last change on this file was 18037, checked in by Don-vip, 3 years ago

fix #21064 - Add JUnit 5 extension for preferences (patch by taylor.smock)

  • Property svn:eol-style set to native
File size: 871 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.gui.history;
3
4import static org.junit.jupiter.api.Assertions.assertNotNull;
5import static org.junit.jupiter.api.Assertions.assertThrows;
6
7import org.openstreetmap.josm.testutils.annotations.BasicPreferences;
8
9import org.junit.jupiter.api.Test;
10
11/**
12 * Unit tests of {@link NodeListViewer} class.
13 */
14@BasicPreferences
15class NodeListViewerTest {
16 /**
17 * Test for {@link NodeListViewer#NodeListViewer} - {@code null} handling.
18 */
19 @Test
20 void testNodeListViewerNull() {
21 assertThrows(IllegalArgumentException.class, () -> new NodeListViewer(null));
22 }
23
24 /**
25 * Test for {@link NodeListViewer#NodeListViewer} - nominal case.
26 */
27 @Test
28 void testNodeListViewerNominal() {
29 assertNotNull(new NodeListViewer(new HistoryBrowserModel()));
30 }
31}
Note: See TracBrowser for help on using the repository browser.