mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-20 17:29:51 +00:00
VMV: Fix suggest locations coverage.
This commit is contained in:
parent
63145cd6c8
commit
2add36ef78
2 changed files with 9 additions and 0 deletions
|
@ -37,6 +37,7 @@ public class VmvProvider extends AbstractEfaProvider {
|
|||
|
||||
public VmvProvider() {
|
||||
super(NetworkId.VMV, API_BASE);
|
||||
setIncludeRegionId(false);
|
||||
setUseRouteIndexAsTripId(false);
|
||||
httpClient.setSslAcceptAllHostnames(true);
|
||||
}
|
||||
|
|
|
@ -61,6 +61,14 @@ public class VmvProviderLiveTest extends AbstractProviderLiveTest {
|
|||
print(result);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void suggestLocationsSchwerin() throws Exception {
|
||||
final SuggestLocationsResult result = suggestLocations("Schwerin Hauptbahnhof");
|
||||
print(result);
|
||||
assertEquals("Schwerin", result.getLocations().get(0).place);
|
||||
assertEquals("Hauptbahnhof", result.getLocations().get(0).name);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void suggestLocationsIncomplete() throws Exception {
|
||||
final SuggestLocationsResult result = suggestLocations("Kur");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue