mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-14 08:40:29 +00:00
Fix suggest locations coverage for Stuttgart.
This commit is contained in:
parent
a721f9285a
commit
6d30efd3de
2 changed files with 12 additions and 0 deletions
|
@ -35,6 +35,8 @@ public class VvsProvider extends AbstractEfaProvider
|
||||||
public VvsProvider(final String apiBase)
|
public VvsProvider(final String apiBase)
|
||||||
{
|
{
|
||||||
super(apiBase);
|
super(apiBase);
|
||||||
|
|
||||||
|
setIncludeRegionId(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
public NetworkId id()
|
public NetworkId id()
|
||||||
|
|
|
@ -17,7 +17,9 @@
|
||||||
|
|
||||||
package de.schildbach.pte.live;
|
package de.schildbach.pte.live;
|
||||||
|
|
||||||
|
import static org.hamcrest.CoreMatchers.hasItem;
|
||||||
import static org.junit.Assert.assertEquals;
|
import static org.junit.Assert.assertEquals;
|
||||||
|
import static org.junit.Assert.assertThat;
|
||||||
import static org.junit.Assert.assertTrue;
|
import static org.junit.Assert.assertTrue;
|
||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
@ -80,6 +82,14 @@ public class VvsProviderLiveTest extends AbstractProviderLiveTest
|
||||||
print(result);
|
print(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void suggestLocationsCoverage() throws Exception
|
||||||
|
{
|
||||||
|
final SuggestLocationsResult result = suggestLocations("backnang");
|
||||||
|
print(result);
|
||||||
|
assertThat(result.getLocations(), hasItem(new Location(LocationType.STATION, "5007600")));
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void shortTrip() throws Exception
|
public void shortTrip() throws Exception
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue