Ignore:
Timestamp:
2016-07-24T04:46:09+02:00 (9 years ago)
Author:
darya
Message:

stop-by-stop test added

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  
    4646 
    4747 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";
    4850
    4951  /**
  • applications/editors/josm/plugins/pt_assistant/test/unit/org/openstreetmap/josm/plugins/pt_assistant/data/StopToWayAssignerTest.java

    r32656 r32707  
    3434                // test with a [correct] stop_position:
    3535                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);
    3839                assertEquals(way1.getId(), 26956744l);
    3940               
    4041                // test with a [wrong] stop_position:
    4142                PTStop ptstop2 = manager.getPTStop(427562058l);
    42                 PTWay ptway2 = assigner.get(ptstop2);
    43                 Way way2 = ptway2.getWays().get(0);
     43                Way way2 = assigner.get(ptstop2);
    4444                assertEquals(way2.getId(), 46349880l);
    4545               
    4646                // test with a stop_area:
    4747                PTStop ptstop3 = manager.getPTStop(2987217064l);
    48                 PTWay ptway3 = assigner.get(ptstop3);
    49                 Way way3 = ptway3.getWays().get(0);
     48                Way way3 = assigner.get(ptstop3);
    5049                assertEquals(way3.getId(), 7045925l);
    5150               
    5251                // test with a platform without a stop_area:
    5352                PTStop ptstop4 = manager.getPTStop(3327206909l);
    54                 PTWay ptway4 = assigner.get(ptstop4);
    55                 Way way4 = ptway4.getWays().get(0);
     53                Way way4 = assigner.get(ptstop4);
    5654                assertEquals(way4.getId(), 120277227l);
    5755               
Note: See TracChangeset for help on using the changeset viewer.