nearbyStationsByCoordinate() test for each live test

git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@662 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
andreas.schildbach@gmail.com 2011-05-27 15:29:06 +00:00
parent 618e2b9641
commit 56465ede5e
51 changed files with 851 additions and 771 deletions

View file

@ -37,6 +37,22 @@ public class NsProviderLiveTest
{
private final NsProvider provider = new NsProvider();
@Test
public void nearbyStations() throws Exception
{
final NearbyStationsResult result = provider.queryNearbyStations(new Location(LocationType.STATION, 100080), 0, 0);
System.out.println(result.stations.size() + " " + result.stations);
}
@Test
public void nearbyStationsByCoordinate() throws Exception
{
final NearbyStationsResult result = provider.queryNearbyStations(new Location(LocationType.ADDRESS, 52377548, 4901218), 0, 0);
System.out.println(result.stations.size() + " " + result.stations);
}
@Test
public void queryDepartures() throws Exception
{
@ -78,12 +94,4 @@ public class NsProviderLiveTest
System.out.println(result.status + " " + result.connections);
}
@Test
public void nearbyStations() throws Exception
{
final NearbyStationsResult result = provider.queryNearbyStations(new Location(LocationType.STATION, 100080), 0, 0);
System.out.println(result.stations.size() + " " + result.stations);
}
}