Change NetworkProvider.queryTrips() signature to accept a Set of products rather than a Collection.

This commit is contained in:
Andreas Schildbach 2015-01-31 11:33:20 +01:00
parent 5efdafc05e
commit 0a571554c5
12 changed files with 14 additions and 33 deletions

View file

@ -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);
}