source: josm/trunk/test/unit/org/openstreetmap/josm/gui/dialogs/relation/ChildRelationBrowserTest.java@ 18037

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.
2package org.openstreetmap.josm.gui.dialogs.relation;
3
4import static org.junit.jupiter.api.Assertions.assertNotNull;
5
6import org.openstreetmap.josm.data.osm.DataSet;
7import org.openstreetmap.josm.data.osm.Relation;
8import org.openstreetmap.josm.gui.layer.OsmDataLayer;
9import org.openstreetmap.josm.testutils.annotations.BasicPreferences;
10
11import org.junit.jupiter.api.Test;
12
13/**
14 * Unit tests of {@link ChildRelationBrowser} class.
15 */
16@BasicPreferences
17class 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.