mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-15 00:50:31 +00:00
GVH: Fix suggest locations coverage.
This commit is contained in:
parent
c70529e4d9
commit
6a195c9b1d
2 changed files with 8 additions and 0 deletions
|
@ -43,6 +43,7 @@ public class GvhProvider extends AbstractEfaProvider {
|
|||
public GvhProvider(final String apiBase) {
|
||||
super(NetworkId.GVH, apiBase);
|
||||
|
||||
setIncludeRegionId(false);
|
||||
setStyles(STYLES);
|
||||
setSessionCookieName("HASESSIONID");
|
||||
}
|
||||
|
|
|
@ -94,6 +94,13 @@ public class GvhProviderLiveTest extends AbstractProviderLiveTest {
|
|||
print(result);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void suggestLocationsCoverage() throws Exception {
|
||||
final SuggestLocationsResult result = suggestLocations("Sarstedt");
|
||||
print(result);
|
||||
assertThat(result.getLocations(), hasItem(new Location(LocationType.STATION, "25001731")));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void incompleteTrip() throws Exception {
|
||||
final QueryTripsResult result = queryTrips(new Location(LocationType.ANY, null, null, "hann"), null,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue