mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-16 09:29:49 +00:00
Update tests for Melbourne.
This commit is contained in:
parent
ee1277fad6
commit
8e1977d09c
1 changed files with 11 additions and 3 deletions
|
@ -69,6 +69,14 @@ public class MetProviderLiveTest extends AbstractProviderLiveTest
|
|||
print(result);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void queryDeparturesInvalidStation() throws Exception
|
||||
{
|
||||
final QueryDeparturesResult result = queryDepartures("999999", false);
|
||||
|
||||
assertEquals(QueryDeparturesResult.Status.INVALID_STATION, result.status);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void suggestLocationsIncomplete() throws Exception
|
||||
{
|
||||
|
@ -80,9 +88,9 @@ public class MetProviderLiveTest extends AbstractProviderLiveTest
|
|||
@Test
|
||||
public void shortTrip() throws Exception
|
||||
{
|
||||
final QueryTripsResult result = queryTrips(new Location(LocationType.STATION, "10002717", "Melbourne City", "6-Franklin St/Elizabeth St"),
|
||||
null, new Location(LocationType.STATION, "10002722", "Melbourne City", "1-Flinders Street Railway Station/Elizabeth St"), new Date(),
|
||||
true, Product.ALL, WalkSpeed.NORMAL, Accessibility.NEUTRAL);
|
||||
final QueryTripsResult result = queryTrips(new Location(LocationType.STATION, "10001181", -37818664, 144952784, "Melbourne City",
|
||||
"Southern Cross Railway Station (Melbourne City)"), null, new Location(LocationType.STATION, "10002204", -37818248, 144967824,
|
||||
"Melbourne City", "13-Federation Square/Swanston St"), new Date(), true, Product.ALL, WalkSpeed.NORMAL, Accessibility.NEUTRAL);
|
||||
print(result);
|
||||
assertEquals(QueryTripsResult.Status.OK, result.status);
|
||||
assertTrue(result.trips.size() > 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue