Changeset 32647 in osm for applications/editors/josm/plugins/pt_assistant/test/unit
- Timestamp:
- 2016-07-13T02:49:03+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/pt_assistant/test/unit/org/openstreetmap/josm/plugins/pt_assistant/validation/DirecionTestTest.java
r32616 r32647 6 6 import java.io.File; 7 7 import java.util.ArrayList; 8 import java.util.Collection; 8 9 import java.util.List; 9 10 … … 44 45 assertEquals(onewayErrorCaught, 2); 45 46 46 // fix the direction errors:47 48 47 boolean detectedErrorsAreCorrect = true; 49 48 for (TestError e : errors) { 50 49 if (e.getCode() == PTAssistantValidatorTest.ERROR_CODE_DIRECTION) { 51 50 @SuppressWarnings("unchecked") 52 List<OsmPrimitive> highlighted = (List<OsmPrimitive>) e.getHighlighted(); 53 if (highlighted.get(0).getId() != 225732678 && highlighted.get(0).getId() != 24215210) { 54 detectedErrorsAreCorrect = false; 51 Collection<OsmPrimitive> highlighted = (Collection<OsmPrimitive>) e.getHighlighted(); 52 for (OsmPrimitive highlightedPrimitive: highlighted) { 53 if (highlightedPrimitive.getId() != 225732678 && highlightedPrimitive.getId() != 24215210) { 54 detectedErrorsAreCorrect = false; 55 } 55 56 } 56 57 }
Note:
See TracChangeset
for help on using the changeset viewer.