mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-19 16:59:51 +00:00
Fix autocomplete coverage for Lüdenscheid.
This commit is contained in:
parent
a6d8ce3d7f
commit
467299ec99
2 changed files with 22 additions and 12 deletions
|
@ -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;
|
||||
|
@ -85,6 +87,26 @@ public class MvgProviderLiveTest extends AbstractProviderLiveTest
|
|||
print(autocompletes);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void autocompleteCoverage() throws Exception
|
||||
{
|
||||
final List<Location> luedenscheidAutocompletes = provider.autocompleteStations("Lüdenscheid Freibad");
|
||||
print(luedenscheidAutocompletes);
|
||||
assertThat(luedenscheidAutocompletes, hasItem(new Location(LocationType.STATION, 24200153)));
|
||||
|
||||
final List<Location> iserlohnAutocompletes = provider.autocompleteStations("Iserlohn Rathaus");
|
||||
print(iserlohnAutocompletes);
|
||||
assertThat(iserlohnAutocompletes, hasItem(new Location(LocationType.STATION, 24200764)));
|
||||
|
||||
final List<Location> plettenbergAutocompletes = provider.autocompleteStations("Plettenberg Friedhof");
|
||||
print(plettenbergAutocompletes);
|
||||
assertThat(plettenbergAutocompletes, hasItem(new Location(LocationType.STATION, 24202864)));
|
||||
|
||||
final List<Location> mendenAutocompletes = provider.autocompleteStations("Menden Am Gillfeld");
|
||||
print(mendenAutocompletes);
|
||||
assertThat(mendenAutocompletes, hasItem(new Location(LocationType.STATION, 24202193)));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void shortTrip() throws Exception
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue