Changeset 10710 in josm for trunk/test/unit/org
- Timestamp:
- 2016-08-02T22:18:08+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/validation/tests/MapCSSTagCheckerTest.java
r10657 r10710 55 55 ParseResult result = MapCSSTagChecker.TagCheck.readMapCSS(new StringReader("" + 56 56 "*[natural=marsh] {\n" + 57 " group: tr(\"deprecated\");\n" + 57 58 " throwWarning: tr(\"{0}={1} is deprecated\", \"{0.key}\", tag(\"natural\"));\n" + 58 59 " fixRemove: \"{0.key}\";\n" + … … 72 73 n1.put("natural", "marsh"); 73 74 assertTrue(check.test(n1)); 74 assertEquals("natural=marsh is deprecated", check.getErrorForPrimitive(n1).getMessage()); 75 assertEquals("deprecated", check.getErrorForPrimitive(n1).getMessage()); 76 assertEquals("natural=marsh is deprecated", check.getErrorForPrimitive(n1).getDescription()); 75 77 assertEquals(Severity.WARNING, check.getErrorForPrimitive(n1).getSeverity()); 76 78 assertEquals("Sequence: Fix of natural=marsh is deprecated", check.fixPrimitive(n1).getDescriptionText());
Note:
See TracChangeset
for help on using the changeset viewer.