Changeset 33104 in osm for applications/editors/josm/plugins/pt_assistant/test/unit
- Timestamp:
- 2016-12-10T01:36:20+01: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/RoadTypeTestTest.java
r33055 r33104 11 11 import org.junit.Test; 12 12 import org.openstreetmap.josm.data.osm.DataSet; 13 import org.openstreetmap.josm.data.osm.OsmPrimitive;14 13 import org.openstreetmap.josm.data.osm.Relation; 15 14 import org.openstreetmap.josm.data.osm.Way; … … 39 38 for (TestError e: errors) { 40 39 assertEquals(e.getCode(), PTAssistantValidatorTest.ERROR_CODE_ROAD_TYPE); 41 @SuppressWarnings("unchecked") 42 List<OsmPrimitive> highlighted = (List<OsmPrimitive>) e.getHighlighted(); 43 Way way = (Way) highlighted.get(0); 40 Way way = (Way) e.getHighlighted().iterator().next(); 44 41 assertTrue(way.getId() == 8169083 || way.getId() == 8034569); 45 42 }
Note:
See TracChangeset
for help on using the changeset viewer.