Changeset 16328 in josm for trunk/test/unit/org
- Timestamp:
- 2020-04-17T21:27:35+02:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/io/remotecontrol/AddTagsDialogTest.java
r16327 r16328 4 4 import static org.junit.Assert.assertEquals; 5 5 6 import java.util. Arrays;6 import java.util.Map; 7 7 8 import org.junit.Rule; 8 9 import org.junit.Test; 10 import org.openstreetmap.josm.testutils.JOSMTestRules; 11 12 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 9 13 10 14 /** … … 12 16 */ 13 17 public class AddTagsDialogTest { 18 /** 19 * Setup test. 20 */ 21 @Rule 22 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 23 public JOSMTestRules test = new JOSMTestRules().preferences(); 14 24 15 25 /** … … 18 28 @Test 19 29 public void testParseUrlTagsToKeyValues() { 20 String[][] strings = AddTagsDialog.parseUrlTagsToKeyValues("wikipedia:de=Residenzschloss Dresden|name:en=Dresden Castle"); 21 assertEquals("[[wikipedia:de, Residenzschloss Dresden], [name:en, Dresden Castle]]", Arrays.deepToString(strings)); 30 Map<String, String> strings = AddTagsDialog.parseUrlTagsToKeyValues("wikipedia:de=Residenzschloss Dresden|name:en=Dresden Castle"); 31 assertEquals(2, strings.size()); 32 assertEquals("Residenzschloss Dresden", strings.get("wikipedia:de")); 33 assertEquals("Dresden Castle", strings.get("name:en")); 22 34 } 23 35 }
Note:
See TracChangeset
for help on using the changeset viewer.