source: josm/trunk/test/unit/org/openstreetmap/josm/gui/dialogs/relation/RelationTreeCellRendererTest.java@ 9907

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.
2package org.openstreetmap.josm.gui.dialogs.relation;
3
4import static org.junit.Assert.assertEquals;
5
6import javax.swing.JTree;
7
8import org.junit.BeforeClass;
9import org.junit.Test;
10import org.openstreetmap.josm.JOSMFixture;
11import org.openstreetmap.josm.data.osm.Relation;
12
13/**
14 * Unit tests of {@link RelationTreeCellRenderer} class.
15 */
16public 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.