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

Last change on this file since 17275 was 17275, checked in by Don-vip, 3 years ago

see #16567 - upgrade almost all tests to JUnit 5, except those depending on WiremockRule

See https://github.com/tomakehurst/wiremock/issues/684

  • 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 static org.junit.jupiter.api.Assertions.assertEquals;
5
6import javax.swing.JTree;
7
8import org.junit.jupiter.api.extension.RegisterExtension;
9import org.junit.jupiter.api.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 */
18class RelationTreeCellRendererTest {
19
20 /**
21 * Setup test.
22 */
23 @RegisterExtension
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 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.