Changeset 17275 in josm for trunk/test/unit/org/openstreetmap/josm/gui/dialogs/properties/TagEditHelperTest.java
- Timestamp:
- 2020-10-28T20:41:00+01:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/dialogs/properties/TagEditHelperTest.java
r16321 r17275 2 2 package org.openstreetmap.josm.gui.dialogs.properties; 3 3 4 import static org.junit. Assert.assertEquals;5 import static org.junit. Assert.assertFalse;6 import static org.junit. Assert.assertNotNull;4 import static org.junit.jupiter.api.Assertions.assertEquals; 5 import static org.junit.jupiter.api.Assertions.assertFalse; 6 import static org.junit.jupiter.api.Assertions.assertNotNull; 7 7 8 8 import java.awt.GraphicsEnvironment; … … 21 21 import javax.swing.table.DefaultTableModel; 22 22 23 import org.junit. Rule;24 import org.junit. Test;23 import org.junit.jupiter.api.extension.RegisterExtension; 24 import org.junit.jupiter.api.Test; 25 25 import org.openstreetmap.josm.TestUtils; 26 26 import org.openstreetmap.josm.data.coor.LatLon; … … 44 44 * Unit tests of {@link TagEditHelper} class. 45 45 */ 46 publicclass TagEditHelperTest {46 class TagEditHelperTest { 47 47 48 48 /** 49 49 * Setup tests 50 50 */ 51 @R ule51 @RegisterExtension 52 52 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 53 53 public JOSMTestRules test = new JOSMTestRules().territories().projection(); … … 64 64 */ 65 65 @Test 66 publicvoid testAcItemComparator() {66 void testAcItemComparator() { 67 67 List<AutoCompletionItem> list = new ArrayList<>(); 68 68 list.add(new AutoCompletionItem("Bing Sat")); … … 81 81 */ 82 82 @Test 83 publicvoid testContainsDataKey() {83 void testContainsDataKey() { 84 84 assertFalse(newTagEditHelper().containsDataKey("foo")); 85 85 // TODO: complete test … … 92 92 */ 93 93 @Test 94 publicvoid testTicket18764() throws Exception {94 void testTicket18764() throws Exception { 95 95 testIcon("*[building] ⧉ *[highway] { text: tr(\"Building crossing highway\"); }", ds -> { 96 96 Way way = TestUtils.newWay("", new Node(LatLon.NORTH_POLE), new Node(LatLon.SOUTH_POLE)); … … 106 106 */ 107 107 @Test 108 publicvoid testTicket18798() throws Exception {108 void testTicket18798() throws Exception { 109 109 testIcon("node:righthandtraffic[junction=roundabout] { text: tr(\"Roundabout node\"); }", ds -> { 110 110 Node node = new Node(LatLon.NORTH_POLE);
Note:
See TracChangeset
for help on using the changeset viewer.