source: josm/trunk/test/unit/org/openstreetmap/josm/gui/dialogs/relation/ReferringRelationsBrowserTest.java@ 14028

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

improve unit tests

  • Property svn:eol-style set to native
File size: 1.1 KB
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.gui.dialogs.relation;
3
4import org.junit.Rule;
5import org.junit.Test;
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.JOSMTestRules;
10
11import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
12
13/**
14 * Unit tests of {@link ReferringRelationsBrowser} class.
15 */
16public class ReferringRelationsBrowserTest {
17
18 /**
19 * Setup test.
20 */
21 @Rule
22 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
23 public JOSMTestRules test = new JOSMTestRules().preferences();
24
25 /**
26 * Unit test of {@link ReferringRelationsBrowser#ReferringRelationsBrowser}.
27 */
28 @Test
29 public void testReferringRelationsBrowser() {
30 DataSet ds = new DataSet();
31 Relation r = new Relation();
32 ds.addPrimitive(r);
33 new ReferringRelationsBrowser(new OsmDataLayer(ds, "", null), new ReferringRelationsBrowserModel(r)).init();
34 }
35}
Note: See TracBrowser for help on using the repository browser.