mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-12 23:28:48 +00:00
Add some autocomplete coverage for Vienna.
This commit is contained in:
parent
a69f260a18
commit
b4ac8f72cb
2 changed files with 28 additions and 0 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,18 @@ public class VorProviderLiveTest extends AbstractProviderLiveTest
|
|||
print(autocompletes);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void autocompleteCoverage() throws Exception
|
||||
{
|
||||
final List<Location> huetteldorfAutocompletes = provider.autocompleteStations("Hütteldorf");
|
||||
print(huetteldorfAutocompletes);
|
||||
assertThat(huetteldorfAutocompletes, hasItem(new Location(LocationType.STATION, 60200560)));
|
||||
|
||||
final List<Location> wienerNeustadtAutocompletes = provider.autocompleteStations("Wiener Neustadt Nord");
|
||||
print(wienerNeustadtAutocompletes);
|
||||
assertThat(wienerNeustadtAutocompletes, hasItem(new Location(LocationType.STATION, 60205223)));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void shortTrip() throws Exception
|
||||
{
|
||||
|
|
|
@ -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,18 @@ public class WienProviderLiveTest extends AbstractProviderLiveTest
|
|||
print(autocompletes);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void autocompleteCoverage() throws Exception
|
||||
{
|
||||
final List<Location> huetteldorfAutocompletes = provider.autocompleteStations("Wien Hütteldorf");
|
||||
print(huetteldorfAutocompletes);
|
||||
assertThat(huetteldorfAutocompletes, hasItem(new Location(LocationType.STATION, 60200560)));
|
||||
|
||||
final List<Location> wienerNeustadtAutocompletes = provider.autocompleteStations("Wiener Neustadt Nord");
|
||||
print(wienerNeustadtAutocompletes);
|
||||
assertThat(wienerNeustadtAutocompletes, hasItem(new Location(LocationType.STATION, 60205223)));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void shortTrip() throws Exception
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue