Changeset 15064 in josm for trunk/test/unit
- Timestamp:
- 2019-05-09T10:13:10+02:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/validation/tests/MapCSSTagCheckerTest.java
r14801 r15064 16 16 import java.util.Set; 17 17 18 import org.junit.Ignore;19 18 import org.junit.Rule; 20 19 import org.junit.Test; … … 87 86 new DataSet(n1, n2); 88 87 assertTrue(check.test(n1)); 89 assertEquals("deprecated", check.getErrorForPrimitive(n1).getMessage()); 90 assertEquals("natural=marsh is deprecated", check.getErrorForPrimitive(n1).getDescription()); 91 assertEquals(Severity.WARNING, check.getErrorForPrimitive(n1).getSeverity()); 88 89 final Collection<TestError> errors = check.getErrorsForPrimitive(n1); 90 assertEquals(1, errors.size()); 91 TestError err = errors.iterator().next(); 92 assertEquals("deprecated", err.getMessage()); 93 assertEquals("natural=marsh is deprecated", err.getDescription()); 94 assertEquals(Severity.WARNING, err.getSeverity()); 92 95 assertEquals("Sequence: Fix of natural=marsh is deprecated", check.fixPrimitive(n1).getDescriptionText()); 93 96 assertEquals("{natural=}", ((ChangePropertyCommand) check.fixPrimitive(n1).getChildren().iterator().next()).getTags().toString()); … … 240 243 */ 241 244 @Test 242 @Ignore("not fixed yet")243 245 public void testTicket14287() throws Exception { 244 246 final MapCSSTagChecker test = buildTagChecker( … … 300 302 */ 301 303 @Test 302 @Ignore("not fixed yet")303 304 public void testTicket12627() throws Exception { 304 305 doTestNaturalWood(12627, "overlapping.osm", 1, 1); … … 310 311 */ 311 312 @Test 312 @Ignore("not fixed yet")313 313 public void testTicket14289() throws Exception { 314 314 doTestNaturalWood(14289, "example2.osm", 3, 3);
Note:
See TracChangeset
for help on using the changeset viewer.