Ignore:
Timestamp:
2013-12-27T17:14:34+01:00 (10 years ago)
Author:
simon04
Message:

see #9414 - MapCSS-based tagchecker: migrate remaining tagchecks

All former tagchecker.cfg checks are now located in data/validator/*mapcss :-)

File:
1 edited

Legend:

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

    r6538 r6548  
    5555        assertThat(check.getErrorForPrimitive(n1).getMessage(), is("natural=marsh is deprecated"));
    5656        assertThat(check.getErrorForPrimitive(n1).getSeverity(), is(Severity.WARNING));
     57        assertThat(check.fixPrimitive(n1).getDescriptionText(), is("Sequence: Fix of natural=marsh is deprecated"));
    5758        assertThat(((ChangePropertyCommand) check.fixPrimitive(n1).getChildren().iterator().next()).getTags().toString(),
    5859                is("{natural=}"));
     
    7677            throw new IllegalArgumentException("Expecting n/node/w/way/r/relation, but got " + x[0]);
    7778        }
    78         for (final Map.Entry<String, String> i : TextTagParser.getValidatedTagsFromText(x[1]).entrySet()) {
     79        for (final Map.Entry<String, String> i : TextTagParser.readTagsFromText(x[1]).entrySet()) {
    7980            p.put(i.getKey(), i.getValue());
    8081        }
Note: See TracChangeset for help on using the changeset viewer.