Changeset 32582 in osm for applications/editors/josm/plugins/pt_assistant/test
- Timestamp:
- 2016-07-05T23:36:17+02:00 (9 years ago)
- Location:
- applications/editors/josm/plugins/pt_assistant/test/unit/org/openstreetmap/josm/plugins/pt_assistant/validation
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/pt_assistant/test/unit/org/openstreetmap/josm/plugins/pt_assistant/validation/DirecionTestTest.java
r32567 r32582 24 24 DataSet ds = ImportUtils.importOsmFile(file, "testLayer"); 25 25 26 PTAssitantValidatorTest test = new PTAssitantValidatorTest(); 26 PTAssistantValidatorTest test = new PTAssistantValidatorTest(); 27 27 28 28 Relation route = null; … … 46 46 int onewayErrorCaught = 0; 47 47 for (TestError e: errors ) { 48 if (e.getCode() == PTAssitantValidatorTest.ERROR_CODE_DIRECTION) { 48 if (e.getCode() == PTAssistantValidatorTest.ERROR_CODE_DIRECTION) { 49 49 onewayErrorCaught++; 50 50 } … … 57 57 boolean detectedErrorsAreCorrect = true; 58 58 for (TestError e: errors) { 59 if (e.getCode() == PTAssitantValidatorTest.ERROR_CODE_DIRECTION) { 59 if (e.getCode() == PTAssistantValidatorTest.ERROR_CODE_DIRECTION) { 60 60 @SuppressWarnings("unchecked") 61 61 List<OsmPrimitive> highlighted = (List<OsmPrimitive>) e.getHighlighted(); … … 67 67 68 68 assertTrue(detectedErrorsAreCorrect); 69 70 71 69 } 72 73 70 } -
applications/editors/josm/plugins/pt_assistant/test/unit/org/openstreetmap/josm/plugins/pt_assistant/validation/PlatformAsWayTest.java
r32567 r32582 21 21 DataSet ds = ImportUtils.importOsmFile(file, "testLayer"); 22 22 23 PTAssitantValidatorTest test = new PTAssitantValidatorTest(); 23 PTAssistantValidatorTest test = new PTAssistantValidatorTest(); 24 24 25 25 List<TestError> errors = new ArrayList<>(); … … 37 37 assertEquals(errors.size(), 0); 38 38 } 39 40 39 } -
applications/editors/josm/plugins/pt_assistant/test/unit/org/openstreetmap/josm/plugins/pt_assistant/validation/RoadTypeTestTest.java
r32567 r32582 25 25 DataSet ds = ImportUtils.importOsmFile(file, "testLayer"); 26 26 27 PTAssitantValidatorTest test = new PTAssitantValidatorTest(); 27 PTAssistantValidatorTest test = new PTAssistantValidatorTest(); 28 28 List<TestError> errors = new ArrayList<>(); 29 29 … … 37 37 38 38 for (TestError e: errors) { 39 assertEquals(e.getCode(), PTAssitantValidatorTest.ERROR_CODE_ROAD_TYPE); 39 assertEquals(e.getCode(), PTAssistantValidatorTest.ERROR_CODE_ROAD_TYPE); 40 40 @SuppressWarnings("unchecked") 41 41 List<OsmPrimitive> highlighted = (List<OsmPrimitive>) e.getHighlighted(); … … 44 44 } 45 45 } 46 47 48 46 } -
applications/editors/josm/plugins/pt_assistant/test/unit/org/openstreetmap/josm/plugins/pt_assistant/validation/SortingTestTest.java
r32567 r32582 21 21 DataSet ds = ImportUtils.importOsmFile(file, "testLayer"); 22 22 23 PTAssitantValidatorTest test = new PTAssitantValidatorTest(); 23 PTAssistantValidatorTest test = new PTAssistantValidatorTest(); 24 24 25 25 List<TestError> errors = new ArrayList<>(); … … 33 33 34 34 assertEquals(errors.size(), 1); 35 assertEquals(errors.iterator().next().getCode(), PTAssitantValidatorTest.ERROR_CODE_SORTING); 36 assertEquals(errors.iterator().next().getTester().getClass().getName(), PTAssitantValidatorTest.class.getName()); 35 assertEquals(errors.iterator().next().getCode(), PTAssistantValidatorTest.ERROR_CODE_SORTING); 36 assertEquals(errors.iterator().next().getTester().getClass().getName(), PTAssistantValidatorTest.class.getName()); 37 37 } 38 38 … … 42 42 DataSet ds = ImportUtils.importOsmFile(file, "testLayer"); 43 43 44 45 PTAssitantValidatorTest test = new PTAssitantValidatorTest(); 44 PTAssistantValidatorTest test = new PTAssistantValidatorTest(); 46 45 47 46 List<TestError> errors = new ArrayList<>(); … … 82 81 DataSet ds = ImportUtils.importOsmFile(file, "testLayer"); 83 82 84 PTAssitantValidatorTest test = new PTAssitantValidatorTest(); 83 PTAssistantValidatorTest test = new PTAssistantValidatorTest(); 85 84 86 85 List<TestError> errors = new ArrayList<>(); … … 94 93 assertEquals(errors.size(), 0); 95 94 } 96 97 95 }
Note:
See TracChangeset
for help on using the changeset viewer.