mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-07 15:18:49 +00:00
Robustify tests for Paris.
This commit is contained in:
parent
3e92246ff8
commit
026b1fb111
1 changed files with 28 additions and 8 deletions
|
@ -197,8 +197,13 @@ public class ParisProviderLiveTest extends AbstractProviderLiveTest
|
|||
@Test
|
||||
public void queryTripAddressStation() throws Exception
|
||||
{
|
||||
final QueryTripsResult result = queryTrips(new Location(LocationType.ADDRESS, 48785419, 2212051), null, new Location(LocationType.STATION,
|
||||
"stop_area:RTP:SA:4284898"), new Date(), true, Product.ALL, WalkSpeed.NORMAL, Accessibility.NEUTRAL);
|
||||
final SuggestLocationsResult fromResult = suggestLocations("155 bd hopital paris");
|
||||
assertTrue(fromResult.getLocations().size() > 0);
|
||||
final SuggestLocationsResult toResult = suggestLocations("Gare St-Lazare");
|
||||
assertTrue(toResult.getLocations().size() > 0);
|
||||
|
||||
final QueryTripsResult result = queryTrips(fromResult.getLocations().get(0), null, toResult.getLocations().get(0), new Date(), true,
|
||||
Product.ALL, WalkSpeed.NORMAL, Accessibility.NEUTRAL);
|
||||
assertEquals(QueryTripsResult.Status.OK, result.status);
|
||||
print(result);
|
||||
}
|
||||
|
@ -206,8 +211,13 @@ public class ParisProviderLiveTest extends AbstractProviderLiveTest
|
|||
@Test
|
||||
public void queryTripStations() throws Exception
|
||||
{
|
||||
final QueryTripsResult result = queryTrips(new Location(LocationType.STATION, "stop_area:RTP:SA:4036290"), null, new Location(
|
||||
LocationType.STATION, "stop_area:RTP:SA:1804"), new Date(), true, Product.ALL, WalkSpeed.NORMAL, Accessibility.NEUTRAL);
|
||||
final SuggestLocationsResult fromResult = suggestLocations("Campo Formio");
|
||||
assertTrue(fromResult.getLocations().size() > 0);
|
||||
final SuggestLocationsResult toResult = suggestLocations("Gare St-Lazare");
|
||||
assertTrue(toResult.getLocations().size() > 0);
|
||||
|
||||
final QueryTripsResult result = queryTrips(fromResult.getLocations().get(0), null, toResult.getLocations().get(0), new Date(), true,
|
||||
Product.ALL, WalkSpeed.NORMAL, Accessibility.NEUTRAL);
|
||||
assertEquals(QueryTripsResult.Status.OK, result.status);
|
||||
print(result);
|
||||
}
|
||||
|
@ -215,8 +225,13 @@ public class ParisProviderLiveTest extends AbstractProviderLiveTest
|
|||
@Test
|
||||
public void queryTripStations2() throws Exception
|
||||
{
|
||||
final QueryTripsResult result = queryTrips(new Location(LocationType.STATION, "stop_area:RTP:SA:3812993"), null, new Location(
|
||||
LocationType.STATION, "stop_area:RTP:SA:4036290"), new Date(), true, Product.ALL, WalkSpeed.NORMAL, Accessibility.NEUTRAL);
|
||||
final SuggestLocationsResult fromResult = suggestLocations("Tour Eiffel");
|
||||
assertTrue(fromResult.getLocations().size() > 0);
|
||||
final SuggestLocationsResult toResult = suggestLocations("Orsay Ville");
|
||||
assertTrue(toResult.getLocations().size() > 0);
|
||||
|
||||
final QueryTripsResult result = queryTrips(fromResult.getLocations().get(0), null, toResult.getLocations().get(0), new Date(), true,
|
||||
Product.ALL, WalkSpeed.NORMAL, Accessibility.NEUTRAL);
|
||||
assertEquals(QueryTripsResult.Status.OK, result.status);
|
||||
print(result);
|
||||
}
|
||||
|
@ -224,8 +239,13 @@ public class ParisProviderLiveTest extends AbstractProviderLiveTest
|
|||
@Test
|
||||
public void queryTripStations3() throws Exception
|
||||
{
|
||||
final QueryTripsResult result = queryTrips(new Location(LocationType.ADDRESS, 48787056, 2209731), null, new Location(LocationType.STATION,
|
||||
"stop_area:RTP:SA:4036290"), new Date(), true, Product.ALL, WalkSpeed.NORMAL, Accessibility.NEUTRAL);
|
||||
final SuggestLocationsResult fromResult = suggestLocations("Tour Eiffel");
|
||||
assertTrue(fromResult.getLocations().size() > 0);
|
||||
final SuggestLocationsResult toResult = suggestLocations("Campo Formio");
|
||||
assertTrue(toResult.getLocations().size() > 0);
|
||||
|
||||
final QueryTripsResult result = queryTrips(fromResult.getLocations().get(0), null, toResult.getLocations().get(0), new Date(), true,
|
||||
Product.ALL, WalkSpeed.NORMAL, Accessibility.NEUTRAL);
|
||||
assertEquals(QueryTripsResult.Status.OK, result.status);
|
||||
print(result);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue