mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-20 09:19:57 +00:00
Fix autocomplete coverage for Dresden.
This commit is contained in:
parent
adca912cc4
commit
ac941b608b
2 changed files with 10 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,14 @@ public class VvoProviderLiveTest extends AbstractProviderLiveTest
|
|||
print(autocompletes);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void autocompleteCoverage() throws Exception
|
||||
{
|
||||
final List<Location> dresdenAutocompletes = provider.autocompleteStations("Dresden Postplatz");
|
||||
print(dresdenAutocompletes);
|
||||
assertThat(dresdenAutocompletes, hasItem(new Location(LocationType.STATION, 33000037)));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void shortTrip() throws Exception
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue