mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-16 09:29:49 +00:00
AbstractHafasClientInterfaceProvider: Fix handling of TETA (Tele Taxi) section type.
This commit is contained in:
parent
0f6862f87a
commit
939b4fcbc3
2 changed files with 15 additions and 3 deletions
|
@ -77,7 +77,7 @@ public class OebbProviderLiveTest extends AbstractProviderLiveTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void shortTrip() throws Exception {
|
||||
public void shortTripLinzWien() throws Exception {
|
||||
final Location from = new Location(LocationType.STATION, "1140101", null, "Linz");
|
||||
final Location to = new Location(LocationType.STATION, "1190100", null, "Wien");
|
||||
final QueryTripsResult result = queryTrips(from, null, to, new Date(), true, null);
|
||||
|
@ -88,6 +88,18 @@ public class OebbProviderLiveTest extends AbstractProviderLiveTest {
|
|||
print(laterResult);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void shortTripBregenzBezau() throws Exception {
|
||||
final Location from = new Location(LocationType.STATION, "1180207", null, "Bregenz");
|
||||
final Location to = new Location(LocationType.STATION, "1180204", null, "Bezau");
|
||||
final QueryTripsResult result = queryTrips(from, null, to, new Date(), true, null);
|
||||
print(result);
|
||||
assertEquals(QueryTripsResult.Status.OK, result.status);
|
||||
assertTrue(result.trips.size() > 0);
|
||||
final QueryTripsResult laterResult = queryMoreTrips(result.context, true);
|
||||
print(laterResult);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void slowTrip() throws Exception {
|
||||
final Location from = new Location(LocationType.ANY, null, null, "Ramsen Zoll!");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue