adapt to Switzerland format changes for departures

git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@289 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
andreas.schildbach 2010-10-13 13:10:19 +00:00
parent ee22585482
commit 6a97e1c316
2 changed files with 31 additions and 15 deletions

View file

@ -28,6 +28,7 @@ import de.schildbach.pte.dto.Location;
import de.schildbach.pte.dto.LocationType;
import de.schildbach.pte.dto.NearbyStationsResult;
import de.schildbach.pte.dto.QueryConnectionsResult;
import de.schildbach.pte.dto.QueryDeparturesResult;
/**
* @author Andreas Schildbach
@ -42,7 +43,15 @@ public class SbbProviderLiveTest
{
final NearbyStationsResult result = provider.nearbyStations("8500010", 0, 0, 0, 0);
System.out.println(result.stations.size() + " " + result.stations);
System.out.println(result.status + " " + result.stations.size() + " " + result.stations);
}
@Test
public void queryDepartures() throws Exception
{
final QueryDeparturesResult result = provider.queryDepartures(provider.departuresQueryUri("8500010", 0));
System.out.println(result.status + " " + result.departures.size() + " " + result.departures);
}
@Test