parse SBB connection details

git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@61 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
andreas.schildbach 2010-08-10 15:15:38 +00:00
parent 669802e746
commit 9abab75816
3 changed files with 278 additions and 14 deletions

View file

@ -32,9 +32,20 @@ public class SbbProviderLiveTest
private SbbProvider provider = new SbbProvider();
@Test
public void connection() throws Exception
public void fastConnection() throws Exception
{
final QueryConnectionsResult result = provider.queryConnections("Zürich!", null, "Bern", new Date(), true);
System.out.println(result);
final QueryConnectionsResult moreResult = provider.queryMoreConnections(result.linkLater);
System.out.println(moreResult);
}
@Test
public void slowConnection() throws Exception
{
final QueryConnectionsResult result = provider.queryConnections("Schocherswil, Alte Post!", null, "Laconnex, Mollach", new Date(), true);
System.out.println(result);
final QueryConnectionsResult moreResult = provider.queryMoreConnections(result.linkLater);
System.out.println(moreResult);
}
}