Changeset 32707 in osm for applications/editors/josm/plugins/pt_assistant/test
- Timestamp:
- 2016-07-24T04:46:09+02:00 (9 years ago)
- Location:
- applications/editors/josm/plugins/pt_assistant/test/unit/org/openstreetmap/josm/plugins/pt_assistant
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/pt_assistant/test/unit/org/openstreetmap/josm/plugins/pt_assistant/AbstractTest.java
r32616 r32707 46 46 47 47 public static final String PATH_TO_SOLITARY_STOP_POSITION = "test/data/solitary-stop-position.osm"; 48 49 public static final String PATH_TO_SEGMENT_TEST = "test/data/segment-test.osm"; 48 50 49 51 /** -
applications/editors/josm/plugins/pt_assistant/test/unit/org/openstreetmap/josm/plugins/pt_assistant/data/StopToWayAssignerTest.java
r32656 r32707 34 34 // test with a [correct] stop_position: 35 35 PTStop ptstop1 = manager.getPTStop(447358573l); 36 PTWay ptway1 = assigner.get(ptstop1); 37 Way way1 = ptway1.getWays().get(0); 36 // PTWay ptway1 = assigner.get(ptstop1); 37 // Way way1 = ptway1.getWays().get(0); 38 Way way1 = assigner.get(ptstop1); 38 39 assertEquals(way1.getId(), 26956744l); 39 40 40 41 // test with a [wrong] stop_position: 41 42 PTStop ptstop2 = manager.getPTStop(427562058l); 42 PTWay ptway2 = assigner.get(ptstop2); 43 Way way2 = ptway2.getWays().get(0); 43 Way way2 = assigner.get(ptstop2); 44 44 assertEquals(way2.getId(), 46349880l); 45 45 46 46 // test with a stop_area: 47 47 PTStop ptstop3 = manager.getPTStop(2987217064l); 48 PTWay ptway3 = assigner.get(ptstop3); 49 Way way3 = ptway3.getWays().get(0); 48 Way way3 = assigner.get(ptstop3); 50 49 assertEquals(way3.getId(), 7045925l); 51 50 52 51 // test with a platform without a stop_area: 53 52 PTStop ptstop4 = manager.getPTStop(3327206909l); 54 PTWay ptway4 = assigner.get(ptstop4); 55 Way way4 = ptway4.getWays().get(0); 53 Way way4 = assigner.get(ptstop4); 56 54 assertEquals(way4.getId(), 120277227l); 57 55
Note:
See TracChangeset
for help on using the changeset viewer.