mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-07 06:08:52 +00:00
better connection testcases
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@752 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
d8d7d20c22
commit
4242eded41
1 changed files with 4 additions and 4 deletions
|
@ -89,8 +89,8 @@ public class SncbProviderLiveTest
|
||||||
@Test
|
@Test
|
||||||
public void shortConnection() throws Exception
|
public void shortConnection() throws Exception
|
||||||
{
|
{
|
||||||
final QueryConnectionsResult result = provider.queryConnections(new Location(LocationType.STATION, 100024), null, new Location(
|
final QueryConnectionsResult result = provider.queryConnections(new Location(LocationType.STATION, 8821006, "Antwerpen", "Centraal"), null,
|
||||||
LocationType.STATION, 100066), new Date(), true, null, WalkSpeed.FAST);
|
new Location(LocationType.STATION, 8813003, "Brussel", "Centraal"), new Date(), true, null, WalkSpeed.FAST);
|
||||||
System.out.println(result.status + " " + result.connections);
|
System.out.println(result.status + " " + result.connections);
|
||||||
|
|
||||||
if (result.context != null)
|
if (result.context != null)
|
||||||
|
@ -103,8 +103,8 @@ public class SncbProviderLiveTest
|
||||||
@Test
|
@Test
|
||||||
public void longConnection() throws Exception
|
public void longConnection() throws Exception
|
||||||
{
|
{
|
||||||
final QueryConnectionsResult result = provider.queryConnections(new Location(LocationType.STATION, 100024), null, new Location(
|
final QueryConnectionsResult result = provider.queryConnections(new Location(LocationType.STATION, 207280, "Brussel", "Wannecouter"), null,
|
||||||
LocationType.STATION, 103624), new Date(), true, null, WalkSpeed.FAST);
|
new Location(LocationType.STATION, 207272, "Brussel", "Stadion"), new Date(), true, null, WalkSpeed.FAST);
|
||||||
System.out.println(result.status + " " + result.connections);
|
System.out.println(result.status + " " + result.connections);
|
||||||
|
|
||||||
if (result.context != null)
|
if (result.context != null)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue