Changeset 32603 in osm for applications/editors/josm/plugins/pt_assistant/test
- Timestamp:
- 2016-07-08T15:30:53+02:00 (8 years ago)
- Location:
- applications/editors/josm/plugins/pt_assistant/test
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/pt_assistant/test/unit/org/openstreetmap/josm/plugins/pt_assistant/AbstractTest.java
r32299 r32603 40 40 public static final String PATH_TO_ROAD_TYPE_ERROR = "test/data/road-type.osm"; 41 41 42 public static final String PATH_TO_ONEWAY_BAD_MEMBER_SORTING = "test/data/oneway-bad-member-sorting.osm"; 42 43 44 public static final String PATH_TO_ONEWAY_WRONG_DIRECTION = "test/data/oneway-wrong-direction.osm"; 45 public static final String PATH_TO_ONEWAY_WRONG_DIRECTION2 = "test/data/oneway-wrong-direction2.osm"; 46 43 47 /** 44 48 * Initiates the basic parts of JOSM. -
applications/editors/josm/plugins/pt_assistant/test/unit/org/openstreetmap/josm/plugins/pt_assistant/validation/DirecionTestTest.java
r32582 r32603 19 19 20 20 @Test 21 public void test () {21 public void testOnewayTrue() { 22 22 23 File file = new File(AbstractTest.PATH_TO_ ROUNDABOUT_ONEWAY);23 File file = new File(AbstractTest.PATH_TO_ONEWAY_WRONG_DIRECTION); 24 24 DataSet ds = ImportUtils.importOsmFile(file, "testLayer"); 25 25 … … 33 33 } 34 34 35 assertEquals(route.getMembersCount(), 213); 36 35 37 36 List<TestError> errors = new ArrayList<>(); 38 37 … … 43 42 } 44 43 45 assertEquals(errors.size(), 1);44 assertEquals(errors.size(), 2); 46 45 int onewayErrorCaught = 0; 47 46 for (TestError e: errors ) { … … 51 50 } 52 51 53 assertEquals(onewayErrorCaught, 1);52 assertEquals(onewayErrorCaught, 2); 54 53 55 54 // fix the direction errors: … … 60 59 @SuppressWarnings("unchecked") 61 60 List<OsmPrimitive> highlighted = (List<OsmPrimitive>) e.getHighlighted(); 62 if (highlighted.get(0).getId() != 2 6130630 && highlighted.get(0).getId() != 151278290) {61 if (highlighted.get(0).getId() != 225732678 && highlighted.get(0).getId() != 24215210) { 63 62 detectedErrorsAreCorrect = false; 64 63 }
Note:
See TracChangeset
for help on using the changeset viewer.