AbstractHafasClientInterfaceProvider: Fix handling of TETA (Tele Taxi) section type.

This commit is contained in:
Andreas Schildbach 2019-10-29 08:52:24 +01:00
parent 0f6862f87a
commit 939b4fcbc3
2 changed files with 15 additions and 3 deletions

View file

@ -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!");