Last change
on this file since 18037 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:
863 bytes
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.gui.dialogs.relation;
|
---|
3 |
|
---|
4 | import static org.junit.jupiter.api.Assertions.assertNotNull;
|
---|
5 |
|
---|
6 | import org.openstreetmap.josm.data.osm.DataSet;
|
---|
7 | import org.openstreetmap.josm.data.osm.Relation;
|
---|
8 | import org.openstreetmap.josm.gui.layer.OsmDataLayer;
|
---|
9 | import org.openstreetmap.josm.testutils.annotations.BasicPreferences;
|
---|
10 |
|
---|
11 | import org.junit.jupiter.api.Test;
|
---|
12 |
|
---|
13 | /**
|
---|
14 | * Unit tests of {@link ChildRelationBrowser} class.
|
---|
15 | */
|
---|
16 | @BasicPreferences
|
---|
17 | class ChildRelationBrowserTest {
|
---|
18 | /**
|
---|
19 | * Unit test of {@link ChildRelationBrowser#ChildRelationBrowser}.
|
---|
20 | */
|
---|
21 | @Test
|
---|
22 | void testChildRelationBrowser() {
|
---|
23 | DataSet ds = new DataSet();
|
---|
24 | Relation r = new Relation();
|
---|
25 | ds.addPrimitive(r);
|
---|
26 | assertNotNull(new ChildRelationBrowser(new OsmDataLayer(ds, "", null), r));
|
---|
27 | }
|
---|
28 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.