mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-13 16:20:34 +00:00
Tests for address/coordinate problem in Dresden.
This commit is contained in:
parent
11f12a0386
commit
2a5458dc45
1 changed files with 20 additions and 0 deletions
|
@ -95,6 +95,14 @@ public class VvoProviderLiveTest extends AbstractProviderLiveTest
|
|||
assertThat(dresdenResult.getLocations(), hasItem(new Location(LocationType.STATION, "33000037")));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void suggestAddressLocation() throws Exception
|
||||
{
|
||||
final SuggestLocationsResult result = provider.suggestLocations("Dresden, Töpferstr. 10");
|
||||
|
||||
print(result);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void shortTrip() throws Exception
|
||||
{
|
||||
|
@ -123,4 +131,16 @@ public class VvoProviderLiveTest extends AbstractProviderLiveTest
|
|||
final QueryTripsResult earlierResult = queryMoreTrips(later2Result.context, false);
|
||||
print(earlierResult);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void tripFromAddressToAddress() throws Exception
|
||||
{
|
||||
final QueryTripsResult result = queryTrips(
|
||||
new Location(LocationType.ADDRESS, null, 51052260, 13740998, "Dresden", "Dresden, Töpferstraße 10"), null, new Location(
|
||||
LocationType.ADDRESS, null, 51029752, 13700666, "Dresden", "Dresden, Tharandter Straße 88"), 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