Changeset 8857 in josm for trunk/test/unit/org/openstreetmap/josm/tools/TextTagParserTest.java
- Timestamp:
- 2015-10-11T17:28:19+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/tools/TextTagParserTest.java
r8510 r8857 11 11 import org.openstreetmap.josm.JOSMFixture; 12 12 13 /** 14 * Unit tests of {@link TextTagParser} class. 15 */ 13 16 public class TextTagParserTest { 14 17 … … 21 24 } 22 25 26 /** 27 * Test of {@link TextTagParser#unescape} method. 28 */ 23 29 @Test 24 30 public void testUnescape() { … … 37 43 } 38 44 45 /** 46 * Test of {@link TextTagParser#readTagsFromText} method with tabs and new lines. 47 */ 39 48 @Test 40 49 public void testTNformat() { … … 47 56 } 48 57 58 /** 59 * Test of {@link TextTagParser#readTagsFromText} method with quotes. 60 */ 49 61 @Test 50 62 public void testEQformat() { … … 58 70 } 59 71 72 /** 73 * Test of {@link TextTagParser#readTagsFromText} method with JSON. 74 */ 60 75 @Test 61 76 public void testJSONformat() { … … 78 93 } 79 94 95 /** 96 * Test of {@link TextTagParser#readTagsFromText} method with free format. 97 */ 80 98 @Test 81 99 public void testFreeformat() { … … 88 106 } 89 107 108 /** 109 * Test of {@link TextTagParser#readTagsFromText} method (error detection). 110 */ 90 111 @Test 91 112 public void errorDetect() { … … 93 114 Map<String, String> tags = TextTagParser.readTagsFromText(txt); 94 115 Assert.assertEquals(Collections.EMPTY_MAP, tags); 95 96 116 } 97 117 118 /** 119 * Test of {@link TextTagParser#readTagsFromText} method with tabs. 120 */ 98 121 @Test 99 public void testTab() throws Exception{122 public void testTab() { 100 123 Assert.assertEquals(TextTagParser.readTagsFromText("shop\tjewelry"), Collections.singletonMap("shop", "jewelry")); 101 124 Assert.assertEquals(TextTagParser.readTagsFromText("!shop\tjewelry"), Collections.singletonMap("shop", "jewelry"));
Note:
See TracChangeset
for help on using the changeset viewer.