Last change
on this file since 9775 was 9775, checked in by Don-vip, 8 years ago |
add more unit tests
|
-
Property svn:eol-style
set to
native
|
File size:
1000 bytes
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.gui.dialogs.relation;
|
---|
3 |
|
---|
4 | import org.junit.BeforeClass;
|
---|
5 | import org.junit.Test;
|
---|
6 | import org.openstreetmap.josm.JOSMFixture;
|
---|
7 | import org.openstreetmap.josm.data.osm.DataSet;
|
---|
8 | import org.openstreetmap.josm.data.osm.Relation;
|
---|
9 | import org.openstreetmap.josm.gui.layer.OsmDataLayer;
|
---|
10 |
|
---|
11 | /**
|
---|
12 | * Unit tests of {@link ReferringRelationsBrowser} class.
|
---|
13 | */
|
---|
14 | public class ReferringRelationsBrowserTest {
|
---|
15 |
|
---|
16 | /**
|
---|
17 | * Setup test.
|
---|
18 | */
|
---|
19 | @BeforeClass
|
---|
20 | public static void setUpBeforeClass() {
|
---|
21 | JOSMFixture.createUnitTestFixture().init();
|
---|
22 | }
|
---|
23 |
|
---|
24 | /**
|
---|
25 | * Unit test of {@link ReferringRelationsBrowser#ReferringRelationsBrowser}.
|
---|
26 | */
|
---|
27 | @Test
|
---|
28 | public void testReferringRelationsBrowser() {
|
---|
29 | DataSet ds = new DataSet();
|
---|
30 | Relation r = new Relation();
|
---|
31 | ds.addPrimitive(r);
|
---|
32 | new ReferringRelationsBrowser(new OsmDataLayer(ds, "", null), new ReferringRelationsBrowserModel(r)).init();
|
---|
33 | }
|
---|
34 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.