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