query previous connections for EFA based providers

git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@944 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
andreas.schildbach@gmail.com 2012-02-14 10:34:23 +00:00
parent e897aaf718
commit 69ca0a5f94
69 changed files with 127 additions and 119 deletions

View file

@ -84,8 +84,10 @@ public class MvvProviderLiveTest extends AbstractProviderLiveTest
final QueryConnectionsResult result = provider.queryConnections(new Location(LocationType.ANY, 0, null, "Marienplatz"), null, new Location(
LocationType.ANY, 0, null, "Pasing"), new Date(), true, ALL_PRODUCTS, WalkSpeed.NORMAL, Accessibility.NEUTRAL);
System.out.println(result);
final QueryConnectionsResult moreResult = provider.queryMoreConnections(result.context);
System.out.println(moreResult);
final QueryConnectionsResult nextResult = provider.queryMoreConnections(result.context, true);
System.out.println(nextResult);
final QueryConnectionsResult prevResult = provider.queryMoreConnections(nextResult.context, false);
System.out.println(prevResult);
}
@Test
@ -104,7 +106,7 @@ public class MvvProviderLiveTest extends AbstractProviderLiveTest
final QueryConnectionsResult result = provider.queryConnections(new Location(LocationType.ADDRESS, 0, 48165238, 11577473), null,
new Location(LocationType.ADDRESS, 0, 47987199, 11326532), new Date(), true, ALL_PRODUCTS, WalkSpeed.NORMAL, Accessibility.NEUTRAL);
System.out.println(result);
final QueryConnectionsResult moreResult = provider.queryMoreConnections(result.context);
final QueryConnectionsResult moreResult = provider.queryMoreConnections(result.context, true);
System.out.println(moreResult);
}
@ -114,7 +116,7 @@ public class MvvProviderLiveTest extends AbstractProviderLiveTest
final QueryConnectionsResult result = provider.queryConnections(new Location(LocationType.ADDRESS, 0, 48238341, 11478230), null,
new Location(LocationType.ANY, 0, null, "Ostbahnhof"), new Date(), true, ALL_PRODUCTS, WalkSpeed.NORMAL, Accessibility.NEUTRAL);
System.out.println(result);
final QueryConnectionsResult moreResult = provider.queryMoreConnections(result.context);
final QueryConnectionsResult moreResult = provider.queryMoreConnections(result.context, true);
System.out.println(moreResult);
}
@ -125,7 +127,7 @@ public class MvvProviderLiveTest extends AbstractProviderLiveTest
null, new Location(LocationType.ADDRESS, 0, null, "Starnberg, Jahnstraße 50"), new Date(), true, ALL_PRODUCTS, WalkSpeed.NORMAL,
Accessibility.NEUTRAL);
System.out.println(result);
final QueryConnectionsResult moreResult = provider.queryMoreConnections(result.context);
final QueryConnectionsResult moreResult = provider.queryMoreConnections(result.context, true);
System.out.println(moreResult);
}
@ -136,7 +138,7 @@ public class MvvProviderLiveTest extends AbstractProviderLiveTest
new Location(LocationType.ADDRESS, 0, 48188018, 11574239, null, "München Frankfurter Ring 35"), new Date(), true, ALL_PRODUCTS,
WalkSpeed.NORMAL, Accessibility.NEUTRAL);
System.out.println(result);
final QueryConnectionsResult moreResult = provider.queryMoreConnections(result.context);
final QueryConnectionsResult moreResult = provider.queryMoreConnections(result.context, true);
System.out.println(moreResult);
}
}