AbstractProviderLiveTest holds reference to provider

This commit is contained in:
Andreas Schildbach 2012-03-20 18:35:49 +01:00
parent d254923b77
commit b7cbeff9de
67 changed files with 593 additions and 403 deletions

View file

@ -36,7 +36,10 @@ import de.schildbach.pte.dto.QueryDeparturesResult;
*/
public class InvgProviderLiveTest extends AbstractProviderLiveTest
{
private final InvgProvider provider = new InvgProvider();
public InvgProviderLiveTest()
{
super(new InvgProvider());
}
@Test
public void nearbyStations() throws Exception
@ -73,11 +76,11 @@ public class InvgProviderLiveTest extends AbstractProviderLiveTest
@Test
public void shortConnection() throws Exception
{
final QueryConnectionsResult result = queryConnections(provider, new Location(LocationType.STATION, 80302, null,
final QueryConnectionsResult result = queryConnections(new Location(LocationType.STATION, 80302, null,
"Ingolstadt, Hauptbahnhof Stadteinwärts"), null, new Location(LocationType.STATION, 181102, null, "Elisabethstraße"), new Date(),
true, ALL_PRODUCTS, WalkSpeed.NORMAL, Accessibility.NEUTRAL);
System.out.println(result);
final QueryConnectionsResult laterResult = queryMoreConnections(provider, result.context, true);
final QueryConnectionsResult laterResult = queryMoreConnections(result.context, true);
System.out.println(laterResult);
}
}