Fix autocomplete coverage for Freiburg.

This commit is contained in:
Andreas Schildbach 2014-02-10 09:16:20 +01:00
parent ae00988db7
commit 9539b74cd6
2 changed files with 10 additions and 10 deletions

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;
@ -77,6 +79,14 @@ public class VagfrProviderLiveTest extends AbstractProviderLiveTest
print(autocompletes);
}
@Test
public void autocompleteCoverage() throws Exception
{
final List<Location> freiburgAutocompletes = provider.autocompleteStations("Betzenhauser Torplatz");
print(freiburgAutocompletes);
assertThat(freiburgAutocompletes, hasItem(new Location(LocationType.STATION, 6930503)));
}
@Test
public void shortTrip() throws Exception
{