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.
|
---|
2 | package org.openstreetmap.josm.gui.history;
|
---|
3 |
|
---|
4 | import static org.junit.jupiter.api.Assertions.assertNotNull;
|
---|
5 | import static org.junit.jupiter.api.Assertions.assertThrows;
|
---|
6 |
|
---|
7 | import org.openstreetmap.josm.testutils.annotations.BasicPreferences;
|
---|
8 |
|
---|
9 | import org.junit.jupiter.api.Test;
|
---|
10 |
|
---|
11 | /**
|
---|
12 | * Unit tests of {@link NodeListViewer} class.
|
---|
13 | */
|
---|
14 | @BasicPreferences
|
---|
15 | class 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.