Fix suggest locations coverage for Stuttgart.

This commit is contained in:
Andreas Schildbach 2015-02-08 19:04:32 +01:00
parent a721f9285a
commit 6d30efd3de
2 changed files with 12 additions and 0 deletions

View file

@ -35,6 +35,8 @@ public class VvsProvider extends AbstractEfaProvider
public VvsProvider(final String apiBase)
{
super(apiBase);
setIncludeRegionId(false);
}
public NetworkId id()

View file

@ -17,7 +17,9 @@
package de.schildbach.pte.live;
import static org.hamcrest.CoreMatchers.hasItem;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertThat;
import static org.junit.Assert.assertTrue;
import java.util.Date;
@ -80,6 +82,14 @@ public class VvsProviderLiveTest extends AbstractProviderLiveTest
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
public void shortTrip() throws Exception
{