mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-07 03:38:48 +00:00
Change NetworkProvider.queryTrips() signature to accept a Set of products rather than a Collection.
This commit is contained in:
parent
5efdafc05e
commit
0a571554c5
12 changed files with 14 additions and 33 deletions
|
@ -23,8 +23,6 @@ import static org.junit.Assert.assertTrue;
|
|||
import java.util.Calendar;
|
||||
import java.util.Date;
|
||||
import java.util.EnumSet;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
|
@ -216,10 +214,9 @@ public class ParisProviderLiveTest extends AbstractProviderLiveTest
|
|||
@Test
|
||||
public void queryTripNoSolution() throws Exception
|
||||
{
|
||||
final List<Product> emptyList = new LinkedList<Product>();
|
||||
|
||||
final QueryTripsResult result = queryTrips(new Location(LocationType.STATION, "stop_point:RTP:SP:3926410"), null, new Location(
|
||||
LocationType.STATION, "stop_point:RTP:SP:3926410"), new Date(), true, emptyList, WalkSpeed.NORMAL, Accessibility.NEUTRAL);
|
||||
LocationType.STATION, "stop_point:RTP:SP:3926410"), new Date(), true, EnumSet.noneOf(Product.class), WalkSpeed.NORMAL,
|
||||
Accessibility.NEUTRAL);
|
||||
assertEquals(QueryTripsResult.Status.NO_TRIPS, result.status);
|
||||
print(result);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue