mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-20 09:19:57 +00:00
NetworkProvider: Add maxLocations parameter to suggestLocations().
This commit is contained in:
parent
73cf64278f
commit
0ea83a1ad3
12 changed files with 55 additions and 33 deletions
|
@ -115,7 +115,7 @@ public abstract class AbstractProviderLiveTest {
|
|||
}
|
||||
|
||||
protected final SuggestLocationsResult suggestLocations(final CharSequence constraint) throws IOException {
|
||||
return provider.suggestLocations(constraint);
|
||||
return provider.suggestLocations(constraint, 0);
|
||||
}
|
||||
|
||||
protected final QueryTripsResult queryTrips(final Location from, final @Nullable Location via, final Location to,
|
||||
|
|
|
@ -90,7 +90,7 @@ public class SydneyProviderLiveTest extends AbstractProviderLiveTest {
|
|||
|
||||
@Test
|
||||
public void suggestLocationsEmpty() throws Exception {
|
||||
final SuggestLocationsResult result = provider.suggestLocations("kreide");
|
||||
final SuggestLocationsResult result = suggestLocations("kreide");
|
||||
print(result);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue