Ignore:
Timestamp:
2016-12-10T01:36:20+01:00 (8 years ago)
Author:
donvip
Message:

unit test fixes

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  
    1111import org.junit.Test;
    1212import org.openstreetmap.josm.data.osm.DataSet;
    13 import org.openstreetmap.josm.data.osm.OsmPrimitive;
    1413import org.openstreetmap.josm.data.osm.Relation;
    1514import org.openstreetmap.josm.data.osm.Way;
     
    3938        for (TestError e: errors) {
    4039            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();
    4441            assertTrue(way.getId() == 8169083 || way.getId() == 8034569);
    4542        }
Note: See TracChangeset for help on using the changeset viewer.