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

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

improve unit tests

  • Property svn:eol-style set to native
File size: 1.0 KB
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.Rule;
9import org.junit.Test;
10import org.openstreetmap.josm.data.osm.Relation;
11import org.openstreetmap.josm.testutils.JOSMTestRules;
12
13import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
14
15/**
16 * Unit tests of {@link RelationTreeCellRenderer} class.
17 */
18public class RelationTreeCellRendererTest {
19
20 /**
21 * Setup test.
22 */
23 @Rule
24 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
25 public JOSMTestRules test = new JOSMTestRules().preferences();
26
27 /**
28 * Unit test of {@link RelationTreeCellRenderer#RelationTreeCellRenderer}.
29 */
30 @Test
31 public void testRelationTreeCellRenderer() {
32 RelationTreeCellRenderer r = new RelationTreeCellRenderer();
33 assertEquals(r, r.getTreeCellRendererComponent(new JTree(), new Relation(), false, false, false, 0, false));
34 }
35}
Note: See TracBrowser for help on using the repository browser.