Changeset 10710 in josm for trunk/test


Ignore:
Timestamp:
2016-08-02T22:18:08+02:00 (3 years ago)
Author:
simon04
Message:

fix #12570 - Group MapCSS tag checker tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/data/validation/tests/MapCSSTagCheckerTest.java

    r10657 r10710  
    5555        ParseResult result = MapCSSTagChecker.TagCheck.readMapCSS(new StringReader("" +
    5656                "*[natural=marsh] {\n" +
     57                "   group: tr(\"deprecated\");\n" +
    5758                "   throwWarning: tr(\"{0}={1} is deprecated\", \"{0.key}\", tag(\"natural\"));\n" +
    5859                "   fixRemove: \"{0.key}\";\n" +
     
    7273        n1.put("natural", "marsh");
    7374        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());
    7577        assertEquals(Severity.WARNING, check.getErrorForPrimitive(n1).getSeverity());
    7678        assertEquals("Sequence: Fix of natural=marsh is deprecated", check.fixPrimitive(n1).getDescriptionText());
Note: See TracChangeset for help on using the changeset viewer.