mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-08 08:58:48 +00:00
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:
parent
618e2b9641
commit
56465ede5e
51 changed files with 851 additions and 771 deletions
|
@ -34,22 +34,6 @@ public class AtcProviderLiveTest
|
||||||
{
|
{
|
||||||
private final AtcProvider provider = new AtcProvider();
|
private final AtcProvider provider = new AtcProvider();
|
||||||
|
|
||||||
@Test
|
|
||||||
public void autocomplete() throws Exception
|
|
||||||
{
|
|
||||||
final List<Location> autocompletes = provider.autocompleteStations("ponte");
|
|
||||||
|
|
||||||
list(autocompletes);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void list(final List<Location> autocompletes)
|
|
||||||
{
|
|
||||||
System.out.print(autocompletes.size() + " ");
|
|
||||||
for (final Location autocomplete : autocompletes)
|
|
||||||
System.out.print(autocomplete.toDebugString() + " ");
|
|
||||||
System.out.println();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void nearbyStations() throws Exception
|
public void nearbyStations() throws Exception
|
||||||
{
|
{
|
||||||
|
@ -74,4 +58,20 @@ public class AtcProviderLiveTest
|
||||||
|
|
||||||
System.out.println(result.stationDepartures);
|
System.out.println(result.stationDepartures);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void autocomplete() throws Exception
|
||||||
|
{
|
||||||
|
final List<Location> autocompletes = provider.autocompleteStations("ponte");
|
||||||
|
|
||||||
|
list(autocompletes);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void list(final List<Location> autocompletes)
|
||||||
|
{
|
||||||
|
System.out.print(autocompletes.size() + " ");
|
||||||
|
for (final Location autocomplete : autocompletes)
|
||||||
|
System.out.print(autocomplete.toDebugString() + " ");
|
||||||
|
System.out.println();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,22 +34,6 @@ public class AvvProviderLiveTest
|
||||||
{
|
{
|
||||||
private final AvvProvider provider = new AvvProvider();
|
private final AvvProvider provider = new AvvProvider();
|
||||||
|
|
||||||
@Test
|
|
||||||
public void autocompleteIncomplete() throws Exception
|
|
||||||
{
|
|
||||||
final List<Location> autocompletes = provider.autocompleteStations("Kur");
|
|
||||||
|
|
||||||
list(autocompletes);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void list(final List<Location> autocompletes)
|
|
||||||
{
|
|
||||||
System.out.print(autocompletes.size() + " ");
|
|
||||||
for (final Location autocomplete : autocompletes)
|
|
||||||
System.out.print(autocomplete.toDebugString() + " ");
|
|
||||||
System.out.println();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void nearbyStations() throws Exception
|
public void nearbyStations() throws Exception
|
||||||
{
|
{
|
||||||
|
@ -73,4 +57,20 @@ public class AvvProviderLiveTest
|
||||||
|
|
||||||
System.out.println(result.stationDepartures);
|
System.out.println(result.stationDepartures);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void autocompleteIncomplete() throws Exception
|
||||||
|
{
|
||||||
|
final List<Location> autocompletes = provider.autocompleteStations("Kur");
|
||||||
|
|
||||||
|
list(autocompletes);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void list(final List<Location> autocompletes)
|
||||||
|
{
|
||||||
|
System.out.print(autocompletes.size() + " ");
|
||||||
|
for (final Location autocomplete : autocompletes)
|
||||||
|
System.out.print(autocomplete.toDebugString() + " ");
|
||||||
|
System.out.println();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,22 +33,6 @@ public class BsagProviderLiveTest
|
||||||
{
|
{
|
||||||
private final BsagProvider provider = new BsagProvider();
|
private final BsagProvider provider = new BsagProvider();
|
||||||
|
|
||||||
@Test
|
|
||||||
public void autocompleteIncomplete() throws Exception
|
|
||||||
{
|
|
||||||
final List<Location> autocompletes = provider.autocompleteStations("Kurf");
|
|
||||||
|
|
||||||
list(autocompletes);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void list(final List<Location> autocompletes)
|
|
||||||
{
|
|
||||||
System.out.print(autocompletes.size() + " ");
|
|
||||||
for (final Location autocomplete : autocompletes)
|
|
||||||
System.out.print(autocomplete.toDebugString() + " ");
|
|
||||||
System.out.println();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void nearbyStations() throws Exception
|
public void nearbyStations() throws Exception
|
||||||
{
|
{
|
||||||
|
@ -64,4 +48,20 @@ public class BsagProviderLiveTest
|
||||||
|
|
||||||
System.out.println(result.stations.size() + " " + result.stations);
|
System.out.println(result.stations.size() + " " + result.stations);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void autocompleteIncomplete() throws Exception
|
||||||
|
{
|
||||||
|
final List<Location> autocompletes = provider.autocompleteStations("Kurf");
|
||||||
|
|
||||||
|
list(autocompletes);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void list(final List<Location> autocompletes)
|
||||||
|
{
|
||||||
|
System.out.print(autocompletes.size() + " ");
|
||||||
|
for (final Location autocomplete : autocompletes)
|
||||||
|
System.out.print(autocomplete.toDebugString() + " ");
|
||||||
|
System.out.println();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,22 +33,6 @@ public class BsvagProviderLiveTest
|
||||||
{
|
{
|
||||||
private final BsvagProvider provider = new BsvagProvider();
|
private final BsvagProvider provider = new BsvagProvider();
|
||||||
|
|
||||||
@Test
|
|
||||||
public void autocompleteIncomplete() throws Exception
|
|
||||||
{
|
|
||||||
final List<Location> autocompletes = provider.autocompleteStations("Kurf");
|
|
||||||
|
|
||||||
list(autocompletes);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void list(final List<Location> autocompletes)
|
|
||||||
{
|
|
||||||
System.out.print(autocompletes.size() + " ");
|
|
||||||
for (final Location autocomplete : autocompletes)
|
|
||||||
System.out.print(autocomplete.toDebugString() + " ");
|
|
||||||
System.out.println();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void nearbyStations() throws Exception
|
public void nearbyStations() throws Exception
|
||||||
{
|
{
|
||||||
|
@ -64,4 +48,20 @@ public class BsvagProviderLiveTest
|
||||||
|
|
||||||
System.out.println(result.stations.size() + " " + result.stations);
|
System.out.println(result.stations.size() + " " + result.stations);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void autocompleteIncomplete() throws Exception
|
||||||
|
{
|
||||||
|
final List<Location> autocompletes = provider.autocompleteStations("Kurf");
|
||||||
|
|
||||||
|
list(autocompletes);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void list(final List<Location> autocompletes)
|
||||||
|
{
|
||||||
|
System.out.print(autocompletes.size() + " ");
|
||||||
|
for (final Location autocomplete : autocompletes)
|
||||||
|
System.out.print(autocomplete.toDebugString() + " ");
|
||||||
|
System.out.println();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,22 +34,6 @@ public class BvbProviderLiveTest
|
||||||
{
|
{
|
||||||
private final BvbProvider provider = new BvbProvider();
|
private final BvbProvider provider = new BvbProvider();
|
||||||
|
|
||||||
@Test
|
|
||||||
public void autocomplete() throws Exception
|
|
||||||
{
|
|
||||||
final List<Location> autocompletes = provider.autocompleteStations("Haupt");
|
|
||||||
|
|
||||||
list(autocompletes);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void list(final List<Location> autocompletes)
|
|
||||||
{
|
|
||||||
System.out.print(autocompletes.size() + " ");
|
|
||||||
for (final Location autocomplete : autocompletes)
|
|
||||||
System.out.print(autocomplete.toDebugString() + " ");
|
|
||||||
System.out.println();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void nearbyStations() throws Exception
|
public void nearbyStations() throws Exception
|
||||||
{
|
{
|
||||||
|
@ -73,4 +57,20 @@ public class BvbProviderLiveTest
|
||||||
|
|
||||||
System.out.println(result.stationDepartures);
|
System.out.println(result.stationDepartures);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void autocomplete() throws Exception
|
||||||
|
{
|
||||||
|
final List<Location> autocompletes = provider.autocompleteStations("Haupt");
|
||||||
|
|
||||||
|
list(autocompletes);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void list(final List<Location> autocompletes)
|
||||||
|
{
|
||||||
|
System.out.print(autocompletes.size() + " ");
|
||||||
|
for (final Location autocomplete : autocompletes)
|
||||||
|
System.out.print(autocomplete.toDebugString() + " ");
|
||||||
|
System.out.println();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,6 +38,21 @@ public class BvgProviderLiveTest
|
||||||
private BvgProvider provider = new BvgProvider(null);
|
private BvgProvider provider = new BvgProvider(null);
|
||||||
private static final String ALL_PRODUCTS = "IRSUTBFC";
|
private static final String ALL_PRODUCTS = "IRSUTBFC";
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void nearbyStations() throws Exception
|
||||||
|
{
|
||||||
|
final NearbyStationsResult result = provider.queryNearbyStations(new Location(LocationType.STATION, 9220302), 0, 0);
|
||||||
|
System.out.println(result.stations.size() + " " + result.stations);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void queryDepartures() throws Exception
|
||||||
|
{
|
||||||
|
final QueryDeparturesResult result = provider.queryDepartures(309557, 0, false);
|
||||||
|
|
||||||
|
System.out.println(result.stationDepartures);
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void autocompleteIncomplete() throws Exception
|
public void autocompleteIncomplete() throws Exception
|
||||||
{
|
{
|
||||||
|
@ -54,21 +69,6 @@ public class BvgProviderLiveTest
|
||||||
System.out.println();
|
System.out.println();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
public void nearbyStations() throws Exception
|
|
||||||
{
|
|
||||||
final NearbyStationsResult result = provider.queryNearbyStations(new Location(LocationType.STATION, 9220302), 0, 0);
|
|
||||||
System.out.println(result.stations.size() + " " + result.stations);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
public void queryDepartures() throws Exception
|
|
||||||
{
|
|
||||||
final QueryDeparturesResult result = provider.queryDepartures(309557, 0, false);
|
|
||||||
|
|
||||||
System.out.println(result.stationDepartures);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void shortConnection() throws Exception
|
public void shortConnection() throws Exception
|
||||||
{
|
{
|
||||||
|
|
|
@ -34,22 +34,6 @@ public class DingProviderLiveTest
|
||||||
{
|
{
|
||||||
private final DingProvider provider = new DingProvider();
|
private final DingProvider provider = new DingProvider();
|
||||||
|
|
||||||
@Test
|
|
||||||
public void autocompleteIncomplete() throws Exception
|
|
||||||
{
|
|
||||||
final List<Location> autocompletes = provider.autocompleteStations("Kur");
|
|
||||||
|
|
||||||
list(autocompletes);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void list(final List<Location> autocompletes)
|
|
||||||
{
|
|
||||||
System.out.print(autocompletes.size() + " ");
|
|
||||||
for (final Location autocomplete : autocompletes)
|
|
||||||
System.out.print(autocomplete.toDebugString() + " ");
|
|
||||||
System.out.println();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void nearbyStations() throws Exception
|
public void nearbyStations() throws Exception
|
||||||
{
|
{
|
||||||
|
@ -73,4 +57,20 @@ public class DingProviderLiveTest
|
||||||
|
|
||||||
System.out.println(result.stationDepartures);
|
System.out.println(result.stationDepartures);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void autocompleteIncomplete() throws Exception
|
||||||
|
{
|
||||||
|
final List<Location> autocompletes = provider.autocompleteStations("Kur");
|
||||||
|
|
||||||
|
list(autocompletes);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void list(final List<Location> autocompletes)
|
||||||
|
{
|
||||||
|
System.out.print(autocompletes.size() + " ");
|
||||||
|
for (final Location autocomplete : autocompletes)
|
||||||
|
System.out.print(autocomplete.toDebugString() + " ");
|
||||||
|
System.out.println();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,22 +34,6 @@ public class DsbProviderLiveTest
|
||||||
{
|
{
|
||||||
private final DsbProvider provider = new DsbProvider();
|
private final DsbProvider provider = new DsbProvider();
|
||||||
|
|
||||||
@Test
|
|
||||||
public void autocomplete() throws Exception
|
|
||||||
{
|
|
||||||
final List<Location> autocompletes = provider.autocompleteStations("Airport");
|
|
||||||
|
|
||||||
list(autocompletes);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void list(final List<Location> autocompletes)
|
|
||||||
{
|
|
||||||
System.out.print(autocompletes.size() + " ");
|
|
||||||
for (final Location autocomplete : autocompletes)
|
|
||||||
System.out.print(autocomplete.toDebugString() + " ");
|
|
||||||
System.out.println();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void nearbyStations() throws Exception
|
public void nearbyStations() throws Exception
|
||||||
{
|
{
|
||||||
|
@ -73,4 +57,20 @@ public class DsbProviderLiveTest
|
||||||
|
|
||||||
System.out.println(result.stationDepartures);
|
System.out.println(result.stationDepartures);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void autocomplete() throws Exception
|
||||||
|
{
|
||||||
|
final List<Location> autocompletes = provider.autocompleteStations("Airport");
|
||||||
|
|
||||||
|
list(autocompletes);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void list(final List<Location> autocompletes)
|
||||||
|
{
|
||||||
|
System.out.print(autocompletes.size() + " ");
|
||||||
|
for (final Location autocomplete : autocompletes)
|
||||||
|
System.out.print(autocomplete.toDebugString() + " ");
|
||||||
|
System.out.println();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,6 +33,22 @@ public class DubProviderLiveTest
|
||||||
{
|
{
|
||||||
private final DubProvider provider = new DubProvider();
|
private final DubProvider provider = new DubProvider();
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void nearbyStations() throws Exception
|
||||||
|
{
|
||||||
|
final NearbyStationsResult result = provider.queryNearbyStations(new Location(LocationType.STATION, 3500131), 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, 25269008, 55312672), 0, 0);
|
||||||
|
|
||||||
|
System.out.println(result.stations.size() + " " + result.stations);
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void autocompleteIncomplete() throws Exception
|
public void autocompleteIncomplete() throws Exception
|
||||||
{
|
{
|
||||||
|
@ -48,12 +64,4 @@ public class DubProviderLiveTest
|
||||||
System.out.print(autocomplete.toDebugString() + " ");
|
System.out.print(autocomplete.toDebugString() + " ");
|
||||||
System.out.println();
|
System.out.println();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
public void nearbyStationsByCoordinate() throws Exception
|
|
||||||
{
|
|
||||||
final NearbyStationsResult result = provider.queryNearbyStations(new Location(LocationType.ADDRESS, 25269008, 55312672), 0, 0);
|
|
||||||
|
|
||||||
System.out.println(result.stations.size() + " " + result.stations);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,6 +28,7 @@ import de.schildbach.pte.dto.Location;
|
||||||
import de.schildbach.pte.dto.LocationType;
|
import de.schildbach.pte.dto.LocationType;
|
||||||
import de.schildbach.pte.dto.NearbyStationsResult;
|
import de.schildbach.pte.dto.NearbyStationsResult;
|
||||||
import de.schildbach.pte.dto.QueryConnectionsResult;
|
import de.schildbach.pte.dto.QueryConnectionsResult;
|
||||||
|
import de.schildbach.pte.dto.QueryDeparturesResult;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Andreas Schildbach
|
* @author Andreas Schildbach
|
||||||
|
@ -37,6 +38,30 @@ public class GvhProviderLiveTest
|
||||||
private final GvhProvider provider = new GvhProvider(null);
|
private final GvhProvider provider = new GvhProvider(null);
|
||||||
private static final String ALL_PRODUCTS = "IRSUTBFC";
|
private static final String ALL_PRODUCTS = "IRSUTBFC";
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void nearbyStations() throws Exception
|
||||||
|
{
|
||||||
|
final NearbyStationsResult result = provider.queryNearbyStations(new Location(LocationType.STATION, 25000031), 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, 52379497, 9735832), 0, 0);
|
||||||
|
|
||||||
|
System.out.println(result.stations.size() + " " + result.stations);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void queryDepartures() throws Exception
|
||||||
|
{
|
||||||
|
final QueryDeparturesResult result = provider.queryDepartures(25000031, 0, false);
|
||||||
|
|
||||||
|
System.out.println(result.stationDepartures);
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void autocompleteIncomplete() throws Exception
|
public void autocompleteIncomplete() throws Exception
|
||||||
{
|
{
|
||||||
|
@ -77,22 +102,6 @@ public class GvhProviderLiveTest
|
||||||
System.out.println(results.size() + " " + results);
|
System.out.println(results.size() + " " + results);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
public void nearbyStations() throws Exception
|
|
||||||
{
|
|
||||||
final NearbyStationsResult result = provider.queryNearbyStations(new Location(LocationType.STATION, 25000031), 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, 52379497, 9735832), 0, 0);
|
|
||||||
|
|
||||||
System.out.println(result.stations.size() + " " + result.stations);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void incompleteConnection() throws Exception
|
public void incompleteConnection() throws Exception
|
||||||
{
|
{
|
||||||
|
|
|
@ -38,6 +38,30 @@ public class InvgProviderLiveTest
|
||||||
private final InvgProvider provider = new InvgProvider();
|
private final InvgProvider provider = new InvgProvider();
|
||||||
private static final String ALL_PRODUCTS = "IRSUTBFC";
|
private static final String ALL_PRODUCTS = "IRSUTBFC";
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void nearbyStations() throws Exception
|
||||||
|
{
|
||||||
|
final NearbyStationsResult result = provider.queryNearbyStations(new Location(LocationType.STATION, 80301), 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, 48744678, 11437941), 0, 0);
|
||||||
|
|
||||||
|
System.out.println(result.stations.size() + " " + result.stations);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void queryDepartures() throws Exception
|
||||||
|
{
|
||||||
|
final QueryDeparturesResult result = provider.queryDepartures(80301, 0, false);
|
||||||
|
|
||||||
|
System.out.println(result.stationDepartures);
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void autocomplete() throws Exception
|
public void autocomplete() throws Exception
|
||||||
{
|
{
|
||||||
|
@ -54,22 +78,6 @@ public class InvgProviderLiveTest
|
||||||
System.out.println();
|
System.out.println();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
public void nearbyStations() throws Exception
|
|
||||||
{
|
|
||||||
final NearbyStationsResult result = provider.queryNearbyStations(new Location(LocationType.STATION, 80301), 0, 0);
|
|
||||||
|
|
||||||
System.out.println(result.stations.size() + " " + result.stations);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
public void queryDepartures() throws Exception
|
|
||||||
{
|
|
||||||
final QueryDeparturesResult result = provider.queryDepartures(80301, 0, false);
|
|
||||||
|
|
||||||
System.out.println(result.stationDepartures);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void shortConnection() throws Exception
|
public void shortConnection() throws Exception
|
||||||
{
|
{
|
||||||
|
|
|
@ -34,22 +34,6 @@ public class IvbProviderLiveTest
|
||||||
{
|
{
|
||||||
private final IvbProvider provider = new IvbProvider();
|
private final IvbProvider provider = new IvbProvider();
|
||||||
|
|
||||||
@Test
|
|
||||||
public void autocompleteIncomplete() throws Exception
|
|
||||||
{
|
|
||||||
final List<Location> autocompletes = provider.autocompleteStations("Kur");
|
|
||||||
|
|
||||||
list(autocompletes);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void list(final List<Location> autocompletes)
|
|
||||||
{
|
|
||||||
System.out.print(autocompletes.size() + " ");
|
|
||||||
for (final Location autocomplete : autocompletes)
|
|
||||||
System.out.print(autocomplete.toDebugString() + " ");
|
|
||||||
System.out.println();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void nearbyStations() throws Exception
|
public void nearbyStations() throws Exception
|
||||||
{
|
{
|
||||||
|
@ -73,4 +57,20 @@ public class IvbProviderLiveTest
|
||||||
|
|
||||||
System.out.println(result.stationDepartures);
|
System.out.println(result.stationDepartures);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void autocompleteIncomplete() throws Exception
|
||||||
|
{
|
||||||
|
final List<Location> autocompletes = provider.autocompleteStations("Kur");
|
||||||
|
|
||||||
|
list(autocompletes);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void list(final List<Location> autocompletes)
|
||||||
|
{
|
||||||
|
System.out.print(autocompletes.size() + " ");
|
||||||
|
for (final Location autocomplete : autocompletes)
|
||||||
|
System.out.print(autocomplete.toDebugString() + " ");
|
||||||
|
System.out.println();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,22 +38,6 @@ public class KvvProviderLiveTest
|
||||||
private final KvvProvider provider = new KvvProvider();
|
private final KvvProvider provider = new KvvProvider();
|
||||||
private static final String ALL_PRODUCTS = "IRSUTBFC";
|
private static final String ALL_PRODUCTS = "IRSUTBFC";
|
||||||
|
|
||||||
@Test
|
|
||||||
public void autocompleteIncomplete() throws Exception
|
|
||||||
{
|
|
||||||
final List<Location> autocompletes = provider.autocompleteStations("Kur");
|
|
||||||
|
|
||||||
list(autocompletes);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void list(final List<Location> autocompletes)
|
|
||||||
{
|
|
||||||
System.out.print(autocompletes.size() + " ");
|
|
||||||
for (final Location autocomplete : autocompletes)
|
|
||||||
System.out.print(autocomplete.toDebugString() + " ");
|
|
||||||
System.out.println();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void nearbyStations() throws Exception
|
public void nearbyStations() throws Exception
|
||||||
{
|
{
|
||||||
|
@ -78,6 +62,22 @@ public class KvvProviderLiveTest
|
||||||
System.out.println(result.stationDepartures);
|
System.out.println(result.stationDepartures);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void autocompleteIncomplete() throws Exception
|
||||||
|
{
|
||||||
|
final List<Location> autocompletes = provider.autocompleteStations("Kur");
|
||||||
|
|
||||||
|
list(autocompletes);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void list(final List<Location> autocompletes)
|
||||||
|
{
|
||||||
|
System.out.print(autocompletes.size() + " ");
|
||||||
|
for (final Location autocomplete : autocompletes)
|
||||||
|
System.out.print(autocomplete.toDebugString() + " ");
|
||||||
|
System.out.println();
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void connectionBetweenAddresses() throws Exception
|
public void connectionBetweenAddresses() throws Exception
|
||||||
{
|
{
|
||||||
|
|
|
@ -38,6 +38,29 @@ public class LinzProviderLiveTest
|
||||||
private LinzProvider provider = new LinzProvider();
|
private LinzProvider provider = new LinzProvider();
|
||||||
private static final String ALL_PRODUCTS = "IRSUTBFC";
|
private static final String ALL_PRODUCTS = "IRSUTBFC";
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void nearbyStations() throws Exception
|
||||||
|
{
|
||||||
|
final NearbyStationsResult result = provider.queryNearbyStations(new Location(LocationType.STATION, 60500090), 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, 48305726, 14287863), 0, 0);
|
||||||
|
|
||||||
|
System.out.println(result.stations.size() + " " + result.stations);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void queryDepartures() throws Exception
|
||||||
|
{
|
||||||
|
final QueryDeparturesResult result = provider.queryDepartures(60501720, 0, false);
|
||||||
|
System.out.println(result);
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void autocompleteIncomplete() throws Exception
|
public void autocompleteIncomplete() throws Exception
|
||||||
{
|
{
|
||||||
|
@ -70,21 +93,6 @@ public class LinzProviderLiveTest
|
||||||
System.out.println();
|
System.out.println();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
public void nearbyStationsByCoordinate() throws Exception
|
|
||||||
{
|
|
||||||
final NearbyStationsResult result = provider.queryNearbyStations(new Location(LocationType.ADDRESS, 48305726, 14287863), 0, 0);
|
|
||||||
|
|
||||||
System.out.println(result.stations.size() + " " + result.stations);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
public void queryDepartures() throws Exception
|
|
||||||
{
|
|
||||||
final QueryDeparturesResult result = provider.queryDepartures(60501720, 0, false);
|
|
||||||
System.out.println(result);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void incompleteConnection() throws Exception
|
public void incompleteConnection() throws Exception
|
||||||
{
|
{
|
||||||
|
|
|
@ -38,6 +38,30 @@ public class LuProviderLiveTest
|
||||||
private final LuProvider provider = new LuProvider();
|
private final LuProvider provider = new LuProvider();
|
||||||
private static final String ALL_PRODUCTS = "IRSUTBFC";
|
private static final String ALL_PRODUCTS = "IRSUTBFC";
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void nearbyStations() throws Exception
|
||||||
|
{
|
||||||
|
final NearbyStationsResult result = provider.queryNearbyStations(new Location(LocationType.STATION, 9865836), 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, 49610187, 6132746), 0, 0);
|
||||||
|
|
||||||
|
System.out.println(result.stations.size() + " " + result.stations);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void queryDepartures() throws Exception
|
||||||
|
{
|
||||||
|
final QueryDeparturesResult result = provider.queryDepartures(9865836, 0, false);
|
||||||
|
|
||||||
|
System.out.println(result.stationDepartures);
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void autocomplete() throws Exception
|
public void autocomplete() throws Exception
|
||||||
{
|
{
|
||||||
|
@ -54,22 +78,6 @@ public class LuProviderLiveTest
|
||||||
System.out.println();
|
System.out.println();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
public void nearbyStations() throws Exception
|
|
||||||
{
|
|
||||||
final NearbyStationsResult result = provider.queryNearbyStations(new Location(LocationType.STATION, 9865836), 0, 0);
|
|
||||||
|
|
||||||
System.out.println(result.stations.size() + " " + result.stations);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
public void queryDepartures() throws Exception
|
|
||||||
{
|
|
||||||
final QueryDeparturesResult result = provider.queryDepartures(9865836, 0, false);
|
|
||||||
|
|
||||||
System.out.println(result.stationDepartures);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void shortConnection() throws Exception
|
public void shortConnection() throws Exception
|
||||||
{
|
{
|
||||||
|
|
|
@ -34,22 +34,6 @@ public class MariborProviderLiveTest
|
||||||
{
|
{
|
||||||
private final MariborProvider provider = new MariborProvider();
|
private final MariborProvider provider = new MariborProvider();
|
||||||
|
|
||||||
@Test
|
|
||||||
public void autocompleteIncomplete() throws Exception
|
|
||||||
{
|
|
||||||
final List<Location> autocompletes = provider.autocompleteStations("Kur");
|
|
||||||
|
|
||||||
list(autocompletes);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void list(final List<Location> autocompletes)
|
|
||||||
{
|
|
||||||
System.out.print(autocompletes.size() + " ");
|
|
||||||
for (final Location autocomplete : autocompletes)
|
|
||||||
System.out.print(autocomplete.toDebugString() + " ");
|
|
||||||
System.out.println();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void nearbyStations() throws Exception
|
public void nearbyStations() throws Exception
|
||||||
{
|
{
|
||||||
|
@ -73,4 +57,20 @@ public class MariborProviderLiveTest
|
||||||
|
|
||||||
System.out.println(result.stationDepartures);
|
System.out.println(result.stationDepartures);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void autocompleteIncomplete() throws Exception
|
||||||
|
{
|
||||||
|
final List<Location> autocompletes = provider.autocompleteStations("Kur");
|
||||||
|
|
||||||
|
list(autocompletes);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void list(final List<Location> autocompletes)
|
||||||
|
{
|
||||||
|
System.out.print(autocompletes.size() + " ");
|
||||||
|
for (final Location autocomplete : autocompletes)
|
||||||
|
System.out.print(autocomplete.toDebugString() + " ");
|
||||||
|
System.out.println();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,22 +34,6 @@ public class MetProviderLiveTest
|
||||||
{
|
{
|
||||||
private final MetProvider provider = new MetProvider();
|
private final MetProvider provider = new MetProvider();
|
||||||
|
|
||||||
@Test
|
|
||||||
public void autocompleteIncomplete() throws Exception
|
|
||||||
{
|
|
||||||
final List<Location> autocompletes = provider.autocompleteStations("Kur");
|
|
||||||
|
|
||||||
list(autocompletes);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void list(final List<Location> autocompletes)
|
|
||||||
{
|
|
||||||
System.out.print(autocompletes.size() + " ");
|
|
||||||
for (final Location autocomplete : autocompletes)
|
|
||||||
System.out.print(autocomplete.toDebugString() + " ");
|
|
||||||
System.out.println();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void nearbyStations() throws Exception
|
public void nearbyStations() throws Exception
|
||||||
{
|
{
|
||||||
|
@ -73,4 +57,20 @@ public class MetProviderLiveTest
|
||||||
|
|
||||||
System.out.println(result.stationDepartures);
|
System.out.println(result.stationDepartures);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void autocompleteIncomplete() throws Exception
|
||||||
|
{
|
||||||
|
final List<Location> autocompletes = provider.autocompleteStations("Kur");
|
||||||
|
|
||||||
|
list(autocompletes);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void list(final List<Location> autocompletes)
|
||||||
|
{
|
||||||
|
System.out.print(autocompletes.size() + " ");
|
||||||
|
for (final Location autocomplete : autocompletes)
|
||||||
|
System.out.print(autocomplete.toDebugString() + " ");
|
||||||
|
System.out.println();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,22 +34,6 @@ public class MvgProviderLiveTest
|
||||||
{
|
{
|
||||||
private final MvgProvider provider = new MvgProvider();
|
private final MvgProvider provider = new MvgProvider();
|
||||||
|
|
||||||
@Test
|
|
||||||
public void autocompleteIncomplete() throws Exception
|
|
||||||
{
|
|
||||||
final List<Location> autocompletes = provider.autocompleteStations("Kurf");
|
|
||||||
|
|
||||||
list(autocompletes);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void list(final List<Location> autocompletes)
|
|
||||||
{
|
|
||||||
System.out.print(autocompletes.size() + " ");
|
|
||||||
for (final Location autocomplete : autocompletes)
|
|
||||||
System.out.print(autocomplete.toDebugString() + " ");
|
|
||||||
System.out.println();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void nearbyStations() throws Exception
|
public void nearbyStations() throws Exception
|
||||||
{
|
{
|
||||||
|
@ -73,4 +57,20 @@ public class MvgProviderLiveTest
|
||||||
|
|
||||||
System.out.println(result.stationDepartures);
|
System.out.println(result.stationDepartures);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void autocompleteIncomplete() throws Exception
|
||||||
|
{
|
||||||
|
final List<Location> autocompletes = provider.autocompleteStations("Kurf");
|
||||||
|
|
||||||
|
list(autocompletes);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void list(final List<Location> autocompletes)
|
||||||
|
{
|
||||||
|
System.out.print(autocompletes.size() + " ");
|
||||||
|
for (final Location autocomplete : autocompletes)
|
||||||
|
System.out.print(autocomplete.toDebugString() + " ");
|
||||||
|
System.out.println();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,22 +38,6 @@ public class MvvProviderLiveTest
|
||||||
private MvvProvider provider = new MvvProvider();
|
private MvvProvider provider = new MvvProvider();
|
||||||
private static final String ALL_PRODUCTS = "IRSUTBFC";
|
private static final String ALL_PRODUCTS = "IRSUTBFC";
|
||||||
|
|
||||||
@Test
|
|
||||||
public void autocompleteIncomplete() throws Exception
|
|
||||||
{
|
|
||||||
final List<Location> autocompletes = provider.autocompleteStations("Marien");
|
|
||||||
|
|
||||||
list(autocompletes);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void list(final List<Location> autocompletes)
|
|
||||||
{
|
|
||||||
System.out.print(autocompletes.size() + " ");
|
|
||||||
for (final Location autocomplete : autocompletes)
|
|
||||||
System.out.print(autocomplete.toDebugString() + " ");
|
|
||||||
System.out.println();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void nearbyStations() throws Exception
|
public void nearbyStations() throws Exception
|
||||||
{
|
{
|
||||||
|
@ -78,6 +62,22 @@ public class MvvProviderLiveTest
|
||||||
System.out.println(result.stationDepartures);
|
System.out.println(result.stationDepartures);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void autocompleteIncomplete() throws Exception
|
||||||
|
{
|
||||||
|
final List<Location> autocompletes = provider.autocompleteStations("Marien");
|
||||||
|
|
||||||
|
list(autocompletes);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void list(final List<Location> autocompletes)
|
||||||
|
{
|
||||||
|
System.out.print(autocompletes.size() + " ");
|
||||||
|
for (final Location autocomplete : autocompletes)
|
||||||
|
System.out.print(autocomplete.toDebugString() + " ");
|
||||||
|
System.out.println();
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void shortConnection() throws Exception
|
public void shortConnection() throws Exception
|
||||||
{
|
{
|
||||||
|
|
|
@ -34,22 +34,6 @@ public class NaldoProviderLiveTest
|
||||||
{
|
{
|
||||||
private final NaldoProvider provider = new NaldoProvider();
|
private final NaldoProvider provider = new NaldoProvider();
|
||||||
|
|
||||||
@Test
|
|
||||||
public void autocompleteIncomplete() throws Exception
|
|
||||||
{
|
|
||||||
final List<Location> autocompletes = provider.autocompleteStations("Kurf");
|
|
||||||
|
|
||||||
list(autocompletes);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void list(final List<Location> autocompletes)
|
|
||||||
{
|
|
||||||
System.out.print(autocompletes.size() + " ");
|
|
||||||
for (final Location autocomplete : autocompletes)
|
|
||||||
System.out.print(autocomplete.toDebugString() + " ");
|
|
||||||
System.out.println();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void nearbyStations() throws Exception
|
public void nearbyStations() throws Exception
|
||||||
{
|
{
|
||||||
|
@ -73,4 +57,20 @@ public class NaldoProviderLiveTest
|
||||||
|
|
||||||
System.out.println(result.stationDepartures);
|
System.out.println(result.stationDepartures);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void autocompleteIncomplete() throws Exception
|
||||||
|
{
|
||||||
|
final List<Location> autocompletes = provider.autocompleteStations("Kurf");
|
||||||
|
|
||||||
|
list(autocompletes);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void list(final List<Location> autocompletes)
|
||||||
|
{
|
||||||
|
System.out.print(autocompletes.size() + " ");
|
||||||
|
for (final Location autocomplete : autocompletes)
|
||||||
|
System.out.print(autocomplete.toDebugString() + " ");
|
||||||
|
System.out.println();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,22 +38,6 @@ public class NasaProviderLiveTest
|
||||||
private final NasaProvider provider = new NasaProvider();
|
private final NasaProvider provider = new NasaProvider();
|
||||||
private static final String ALL_PRODUCTS = "IRSUTBFC";
|
private static final String ALL_PRODUCTS = "IRSUTBFC";
|
||||||
|
|
||||||
@Test
|
|
||||||
public void autocomplete() throws Exception
|
|
||||||
{
|
|
||||||
final List<Location> autocompletes = provider.autocompleteStations("Flughafen");
|
|
||||||
|
|
||||||
list(autocompletes);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void list(final List<Location> autocompletes)
|
|
||||||
{
|
|
||||||
System.out.print(autocompletes.size() + " ");
|
|
||||||
for (final Location autocomplete : autocompletes)
|
|
||||||
System.out.print(autocomplete.toDebugString() + " ");
|
|
||||||
System.out.println();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void nearbyStations() throws Exception
|
public void nearbyStations() throws Exception
|
||||||
{
|
{
|
||||||
|
@ -70,6 +54,22 @@ public class NasaProviderLiveTest
|
||||||
System.out.println(result.stationDepartures);
|
System.out.println(result.stationDepartures);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void autocomplete() throws Exception
|
||||||
|
{
|
||||||
|
final List<Location> autocompletes = provider.autocompleteStations("Flughafen");
|
||||||
|
|
||||||
|
list(autocompletes);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void list(final List<Location> autocompletes)
|
||||||
|
{
|
||||||
|
System.out.print(autocompletes.size() + " ");
|
||||||
|
for (final Location autocomplete : autocompletes)
|
||||||
|
System.out.print(autocomplete.toDebugString() + " ");
|
||||||
|
System.out.println();
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void shortConnection() throws Exception
|
public void shortConnection() throws Exception
|
||||||
{
|
{
|
||||||
|
|
|
@ -37,6 +37,22 @@ public class NsProviderLiveTest
|
||||||
{
|
{
|
||||||
private final NsProvider provider = new NsProvider();
|
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
|
@Test
|
||||||
public void queryDepartures() throws Exception
|
public void queryDepartures() throws Exception
|
||||||
{
|
{
|
||||||
|
@ -78,12 +94,4 @@ public class NsProviderLiveTest
|
||||||
|
|
||||||
System.out.println(result.status + " " + result.connections);
|
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);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,22 +34,6 @@ public class NvbwProviderLiveTest
|
||||||
{
|
{
|
||||||
private final NvbwProvider provider = new NvbwProvider();
|
private final NvbwProvider provider = new NvbwProvider();
|
||||||
|
|
||||||
@Test
|
|
||||||
public void autocompleteIncomplete() throws Exception
|
|
||||||
{
|
|
||||||
final List<Location> autocompletes = provider.autocompleteStations("Kur");
|
|
||||||
|
|
||||||
list(autocompletes);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void list(final List<Location> autocompletes)
|
|
||||||
{
|
|
||||||
System.out.print(autocompletes.size() + " ");
|
|
||||||
for (final Location autocomplete : autocompletes)
|
|
||||||
System.out.print(autocomplete.toDebugString() + " ");
|
|
||||||
System.out.println();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void nearbyStations() throws Exception
|
public void nearbyStations() throws Exception
|
||||||
{
|
{
|
||||||
|
@ -73,4 +57,20 @@ public class NvbwProviderLiveTest
|
||||||
|
|
||||||
System.out.println(result.stationDepartures);
|
System.out.println(result.stationDepartures);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void autocompleteIncomplete() throws Exception
|
||||||
|
{
|
||||||
|
final List<Location> autocompletes = provider.autocompleteStations("Kur");
|
||||||
|
|
||||||
|
list(autocompletes);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void list(final List<Location> autocompletes)
|
||||||
|
{
|
||||||
|
System.out.print(autocompletes.size() + " ");
|
||||||
|
for (final Location autocomplete : autocompletes)
|
||||||
|
System.out.print(autocomplete.toDebugString() + " ");
|
||||||
|
System.out.println();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,6 +38,30 @@ public class PlProviderLiveTest
|
||||||
private final PlProvider provider = new PlProvider();
|
private final PlProvider provider = new PlProvider();
|
||||||
private static final String ALL_PRODUCTS = "IRSUTBFC";
|
private static final String ALL_PRODUCTS = "IRSUTBFC";
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void nearbyStations() throws Exception
|
||||||
|
{
|
||||||
|
final NearbyStationsResult result = provider.queryNearbyStations(new Location(LocationType.STATION, 5100065), 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, 52227027, 20989795), 0, 0);
|
||||||
|
|
||||||
|
System.out.println(result.stations.size() + " " + result.stations);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void queryDepartures() throws Exception
|
||||||
|
{
|
||||||
|
final QueryDeparturesResult result = provider.queryDepartures(5100065, 0, false);
|
||||||
|
|
||||||
|
System.out.println(result.stationDepartures);
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void autocomplete() throws Exception
|
public void autocomplete() throws Exception
|
||||||
{
|
{
|
||||||
|
@ -54,22 +78,6 @@ public class PlProviderLiveTest
|
||||||
System.out.println();
|
System.out.println();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
public void nearbyStations() throws Exception
|
|
||||||
{
|
|
||||||
final NearbyStationsResult result = provider.queryNearbyStations(new Location(LocationType.STATION, 5100065), 0, 0);
|
|
||||||
|
|
||||||
System.out.println(result.stations.size() + " " + result.stations);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
public void queryDepartures() throws Exception
|
|
||||||
{
|
|
||||||
final QueryDeparturesResult result = provider.queryDepartures(5100065, 0, false);
|
|
||||||
|
|
||||||
System.out.println(result.stationDepartures);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void shortConnection() throws Exception
|
public void shortConnection() throws Exception
|
||||||
{
|
{
|
||||||
|
|
|
@ -81,8 +81,8 @@ public class RmvProviderLiveTest
|
||||||
@Test
|
@Test
|
||||||
public void shortConnection() throws Exception
|
public void shortConnection() throws Exception
|
||||||
{
|
{
|
||||||
final QueryConnectionsResult result = provider.queryConnections(new Location(LocationType.ANY, 0, null, "Hanau Hauptbahnhof!"), null,
|
final QueryConnectionsResult result = provider.queryConnections(new Location(LocationType.STATION, 8000150, null, "Hanau Hauptbahnhof"),
|
||||||
new Location(LocationType.ANY, 0, null, "Frankfurt Hauptbahnhof!"), new Date(), true, ALL_PRODUCTS, WalkSpeed.NORMAL);
|
null, new Location(LocationType.STATION, 8000105, null, "Frankfurt Hauptbahnhof"), new Date(), true, ALL_PRODUCTS, WalkSpeed.NORMAL);
|
||||||
System.out.println(result);
|
System.out.println(result);
|
||||||
final QueryConnectionsResult moreResult = provider.queryMoreConnections(result.context);
|
final QueryConnectionsResult moreResult = provider.queryMoreConnections(result.context);
|
||||||
System.out.println(moreResult);
|
System.out.println(moreResult);
|
||||||
|
@ -91,8 +91,8 @@ public class RmvProviderLiveTest
|
||||||
@Test
|
@Test
|
||||||
public void shortConnectionByName() throws Exception
|
public void shortConnectionByName() throws Exception
|
||||||
{
|
{
|
||||||
final QueryConnectionsResult result = provider.queryConnections(new Location(LocationType.ANY, 0, null, "Hanau Hauptbahnhof"), null,
|
final QueryConnectionsResult result = provider.queryConnections(new Location(LocationType.ANY, 0, null, "Frankfurt Bockenheimer Warte!"), null,
|
||||||
new Location(LocationType.ANY, 0, null, "Frankfurt Hauptbahnhof"), new Date(), true, ALL_PRODUCTS, WalkSpeed.NORMAL);
|
new Location(LocationType.ANY, 0, null, "Frankfurt Hauptbahnhof!"), new Date(), true, ALL_PRODUCTS, WalkSpeed.NORMAL);
|
||||||
System.out.println(result);
|
System.out.println(result);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -126,5 +126,4 @@ public class SbbProviderLiveTest
|
||||||
final QueryConnectionsResult moreResult = provider.queryMoreConnections(result.context);
|
final QueryConnectionsResult moreResult = provider.queryMoreConnections(result.context);
|
||||||
System.out.println(moreResult);
|
System.out.println(moreResult);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,6 +38,30 @@ public class SeptaProviderLiveTest
|
||||||
private final SeptaProvider provider = new SeptaProvider();
|
private final SeptaProvider provider = new SeptaProvider();
|
||||||
private static final String ALL_PRODUCTS = "IRSUTBFC";
|
private static final String ALL_PRODUCTS = "IRSUTBFC";
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void nearbyStations() throws Exception
|
||||||
|
{
|
||||||
|
final NearbyStationsResult result = provider.queryNearbyStations(new Location(LocationType.STATION, 2090227), 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, 39954122, -75161705), 0, 0);
|
||||||
|
|
||||||
|
System.out.println(result.stations.size() + " " + result.stations);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void queryDepartures() throws Exception
|
||||||
|
{
|
||||||
|
final QueryDeparturesResult result = provider.queryDepartures(2090227, 0, false);
|
||||||
|
|
||||||
|
System.out.println(result.stationDepartures);
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void autocomplete() throws Exception
|
public void autocomplete() throws Exception
|
||||||
{
|
{
|
||||||
|
@ -54,22 +78,6 @@ public class SeptaProviderLiveTest
|
||||||
System.out.println();
|
System.out.println();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
public void nearbyStations() throws Exception
|
|
||||||
{
|
|
||||||
final NearbyStationsResult result = provider.queryNearbyStations(new Location(LocationType.STATION, 2090227), 0, 0);
|
|
||||||
|
|
||||||
System.out.println(result.stations.size() + " " + result.stations);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
public void queryDepartures() throws Exception
|
|
||||||
{
|
|
||||||
final QueryDeparturesResult result = provider.queryDepartures(2090227, 0, false);
|
|
||||||
|
|
||||||
System.out.println(result.stationDepartures);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void shortConnection() throws Exception
|
public void shortConnection() throws Exception
|
||||||
{
|
{
|
||||||
|
|
|
@ -34,22 +34,6 @@ public class SfProviderLiveTest
|
||||||
{
|
{
|
||||||
private final SfProvider provider = new SfProvider();
|
private final SfProvider provider = new SfProvider();
|
||||||
|
|
||||||
@Test
|
|
||||||
public void autocompleteIncomplete() throws Exception
|
|
||||||
{
|
|
||||||
final List<Location> autocompletes = provider.autocompleteStations("Kur");
|
|
||||||
|
|
||||||
list(autocompletes);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void list(final List<Location> autocompletes)
|
|
||||||
{
|
|
||||||
System.out.print(autocompletes.size() + " ");
|
|
||||||
for (final Location autocomplete : autocompletes)
|
|
||||||
System.out.print(autocomplete.toDebugString() + " ");
|
|
||||||
System.out.println();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void nearbyStations() throws Exception
|
public void nearbyStations() throws Exception
|
||||||
{
|
{
|
||||||
|
@ -73,4 +57,20 @@ public class SfProviderLiveTest
|
||||||
|
|
||||||
System.out.println(result.stationDepartures);
|
System.out.println(result.stationDepartures);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void autocompleteIncomplete() throws Exception
|
||||||
|
{
|
||||||
|
final List<Location> autocompletes = provider.autocompleteStations("Kur");
|
||||||
|
|
||||||
|
list(autocompletes);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void list(final List<Location> autocompletes)
|
||||||
|
{
|
||||||
|
System.out.print(autocompletes.size() + " ");
|
||||||
|
for (final Location autocomplete : autocompletes)
|
||||||
|
System.out.print(autocomplete.toDebugString() + " ");
|
||||||
|
System.out.println();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,6 +38,30 @@ public class ShProviderLiveTest
|
||||||
private final ShProvider provider = new ShProvider();
|
private final ShProvider provider = new ShProvider();
|
||||||
private static final String ALL_PRODUCTS = "IRSUTBFC";
|
private static final String ALL_PRODUCTS = "IRSUTBFC";
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void nearbyStations() throws Exception
|
||||||
|
{
|
||||||
|
final NearbyStationsResult result = provider.queryNearbyStations(new Location(LocationType.STATION, 715210), 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, 54318356, 10130053), 0, 0);
|
||||||
|
|
||||||
|
System.out.println(result.stations.size() + " " + result.stations);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void queryDepartures() throws Exception
|
||||||
|
{
|
||||||
|
final QueryDeparturesResult result = provider.queryDepartures(715210, 0, false);
|
||||||
|
|
||||||
|
System.out.println(result.stationDepartures);
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void autocomplete() throws Exception
|
public void autocomplete() throws Exception
|
||||||
{
|
{
|
||||||
|
@ -54,22 +78,6 @@ public class ShProviderLiveTest
|
||||||
System.out.println();
|
System.out.println();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
public void nearbyStations() throws Exception
|
|
||||||
{
|
|
||||||
final NearbyStationsResult result = provider.queryNearbyStations(new Location(LocationType.STATION, 715210), 0, 0);
|
|
||||||
|
|
||||||
System.out.println(result.stations.size() + " " + result.stations);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
public void queryDepartures() throws Exception
|
|
||||||
{
|
|
||||||
final QueryDeparturesResult result = provider.queryDepartures(715210, 0, false);
|
|
||||||
|
|
||||||
System.out.println(result.stationDepartures);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void shortConnection() throws Exception
|
public void shortConnection() throws Exception
|
||||||
{
|
{
|
||||||
|
|
|
@ -46,6 +46,14 @@ public class SncbProviderLiveTest
|
||||||
System.out.println(result.stations.size() + " " + result.stations);
|
System.out.println(result.stations.size() + " " + result.stations);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void nearbyStationsByCoordinate() throws Exception
|
||||||
|
{
|
||||||
|
final NearbyStationsResult result = provider.queryNearbyStations(new Location(LocationType.ADDRESS, 50748017, 3407118), 0, 0);
|
||||||
|
|
||||||
|
System.out.println(result.stations.size() + " " + result.stations);
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void queryDepartures() throws Exception
|
public void queryDepartures() throws Exception
|
||||||
{
|
{
|
||||||
|
|
|
@ -34,22 +34,6 @@ public class StvProviderLiveTest
|
||||||
{
|
{
|
||||||
private final StvProvider provider = new StvProvider();
|
private final StvProvider provider = new StvProvider();
|
||||||
|
|
||||||
@Test
|
|
||||||
public void autocompleteIncomplete() throws Exception
|
|
||||||
{
|
|
||||||
final List<Location> autocompletes = provider.autocompleteStations("Kur");
|
|
||||||
|
|
||||||
list(autocompletes);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void list(final List<Location> autocompletes)
|
|
||||||
{
|
|
||||||
System.out.print(autocompletes.size() + " ");
|
|
||||||
for (final Location autocomplete : autocompletes)
|
|
||||||
System.out.print(autocomplete.toDebugString() + " ");
|
|
||||||
System.out.println();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void nearbyStations() throws Exception
|
public void nearbyStations() throws Exception
|
||||||
{
|
{
|
||||||
|
@ -73,4 +57,20 @@ public class StvProviderLiveTest
|
||||||
|
|
||||||
System.out.println(result.stationDepartures);
|
System.out.println(result.stationDepartures);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void autocompleteIncomplete() throws Exception
|
||||||
|
{
|
||||||
|
final List<Location> autocompletes = provider.autocompleteStations("Kur");
|
||||||
|
|
||||||
|
list(autocompletes);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void list(final List<Location> autocompletes)
|
||||||
|
{
|
||||||
|
System.out.print(autocompletes.size() + " ");
|
||||||
|
for (final Location autocomplete : autocompletes)
|
||||||
|
System.out.print(autocomplete.toDebugString() + " ");
|
||||||
|
System.out.println();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,22 +34,6 @@ public class SvvProviderLiveTest
|
||||||
{
|
{
|
||||||
private final SvvProvider provider = new SvvProvider();
|
private final SvvProvider provider = new SvvProvider();
|
||||||
|
|
||||||
@Test
|
|
||||||
public void autocompleteIncomplete() throws Exception
|
|
||||||
{
|
|
||||||
final List<Location> autocompletes = provider.autocompleteStations("Kur");
|
|
||||||
|
|
||||||
list(autocompletes);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void list(final List<Location> autocompletes)
|
|
||||||
{
|
|
||||||
System.out.print(autocompletes.size() + " ");
|
|
||||||
for (final Location autocomplete : autocompletes)
|
|
||||||
System.out.print(autocomplete.toDebugString() + " ");
|
|
||||||
System.out.println();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void nearbyStations() throws Exception
|
public void nearbyStations() throws Exception
|
||||||
{
|
{
|
||||||
|
@ -73,4 +57,20 @@ public class SvvProviderLiveTest
|
||||||
|
|
||||||
System.out.println(result.stationDepartures);
|
System.out.println(result.stationDepartures);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void autocompleteIncomplete() throws Exception
|
||||||
|
{
|
||||||
|
final List<Location> autocompletes = provider.autocompleteStations("Kur");
|
||||||
|
|
||||||
|
list(autocompletes);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void list(final List<Location> autocompletes)
|
||||||
|
{
|
||||||
|
System.out.print(autocompletes.size() + " ");
|
||||||
|
for (final Location autocomplete : autocompletes)
|
||||||
|
System.out.print(autocomplete.toDebugString() + " ");
|
||||||
|
System.out.println();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,22 +34,6 @@ public class SydneyProviderLiveTest
|
||||||
{
|
{
|
||||||
private final SydneyProvider provider = new SydneyProvider();
|
private final SydneyProvider provider = new SydneyProvider();
|
||||||
|
|
||||||
@Test
|
|
||||||
public void autocompleteIncomplete() throws Exception
|
|
||||||
{
|
|
||||||
final List<Location> autocompletes = provider.autocompleteStations("Kur");
|
|
||||||
|
|
||||||
list(autocompletes);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void list(final List<Location> autocompletes)
|
|
||||||
{
|
|
||||||
System.out.print(autocompletes.size() + " ");
|
|
||||||
for (final Location autocomplete : autocompletes)
|
|
||||||
System.out.print(autocomplete.toDebugString() + " ");
|
|
||||||
System.out.println();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void nearbyStations() throws Exception
|
public void nearbyStations() throws Exception
|
||||||
{
|
{
|
||||||
|
@ -73,4 +57,20 @@ public class SydneyProviderLiveTest
|
||||||
|
|
||||||
System.out.println(result.stationDepartures);
|
System.out.println(result.stationDepartures);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void autocompleteIncomplete() throws Exception
|
||||||
|
{
|
||||||
|
final List<Location> autocompletes = provider.autocompleteStations("Kur");
|
||||||
|
|
||||||
|
list(autocompletes);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void list(final List<Location> autocompletes)
|
||||||
|
{
|
||||||
|
System.out.print(autocompletes.size() + " ");
|
||||||
|
for (final Location autocomplete : autocompletes)
|
||||||
|
System.out.print(autocomplete.toDebugString() + " ");
|
||||||
|
System.out.println();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,22 +38,6 @@ public class TflProviderLiveTest
|
||||||
private final TflProvider provider = new TflProvider();
|
private final TflProvider provider = new TflProvider();
|
||||||
private static final String ALL_PRODUCTS = "IRSUTBFC";
|
private static final String ALL_PRODUCTS = "IRSUTBFC";
|
||||||
|
|
||||||
@Test
|
|
||||||
public void autocompleteIncomplete() throws Exception
|
|
||||||
{
|
|
||||||
final List<Location> autocompletes = provider.autocompleteStations("Kur");
|
|
||||||
|
|
||||||
list(autocompletes);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void list(final List<Location> autocompletes)
|
|
||||||
{
|
|
||||||
System.out.print(autocompletes.size() + " ");
|
|
||||||
for (final Location autocomplete : autocompletes)
|
|
||||||
System.out.print(autocomplete.toDebugString() + " ");
|
|
||||||
System.out.println();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void nearbyStations() throws Exception
|
public void nearbyStations() throws Exception
|
||||||
{
|
{
|
||||||
|
@ -78,6 +62,22 @@ public class TflProviderLiveTest
|
||||||
System.out.println(result.stationDepartures);
|
System.out.println(result.stationDepartures);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void autocompleteIncomplete() throws Exception
|
||||||
|
{
|
||||||
|
final List<Location> autocompletes = provider.autocompleteStations("Kur");
|
||||||
|
|
||||||
|
list(autocompletes);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void list(final List<Location> autocompletes)
|
||||||
|
{
|
||||||
|
System.out.print(autocompletes.size() + " ");
|
||||||
|
for (final Location autocomplete : autocompletes)
|
||||||
|
System.out.print(autocomplete.toDebugString() + " ");
|
||||||
|
System.out.println();
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void postcodeConnection() throws Exception
|
public void postcodeConnection() throws Exception
|
||||||
{
|
{
|
||||||
|
|
|
@ -34,22 +34,6 @@ public class TleaProviderLiveTest
|
||||||
{
|
{
|
||||||
private final TleaProvider provider = new TleaProvider();
|
private final TleaProvider provider = new TleaProvider();
|
||||||
|
|
||||||
@Test
|
|
||||||
public void autocompleteIncomplete() throws Exception
|
|
||||||
{
|
|
||||||
final List<Location> autocompletes = provider.autocompleteStations("Kur");
|
|
||||||
|
|
||||||
list(autocompletes);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void list(final List<Location> autocompletes)
|
|
||||||
{
|
|
||||||
System.out.print(autocompletes.size() + " ");
|
|
||||||
for (final Location autocomplete : autocompletes)
|
|
||||||
System.out.print(autocomplete.toDebugString() + " ");
|
|
||||||
System.out.println();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void nearbyStations() throws Exception
|
public void nearbyStations() throws Exception
|
||||||
{
|
{
|
||||||
|
@ -73,4 +57,20 @@ public class TleaProviderLiveTest
|
||||||
|
|
||||||
System.out.println(result.stationDepartures);
|
System.out.println(result.stationDepartures);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void autocompleteIncomplete() throws Exception
|
||||||
|
{
|
||||||
|
final List<Location> autocompletes = provider.autocompleteStations("Kur");
|
||||||
|
|
||||||
|
list(autocompletes);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void list(final List<Location> autocompletes)
|
||||||
|
{
|
||||||
|
System.out.print(autocompletes.size() + " ");
|
||||||
|
for (final Location autocomplete : autocompletes)
|
||||||
|
System.out.print(autocomplete.toDebugString() + " ");
|
||||||
|
System.out.println();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,22 +34,6 @@ public class TlemProviderLiveTest
|
||||||
{
|
{
|
||||||
private final TlemProvider provider = new TlemProvider();
|
private final TlemProvider provider = new TlemProvider();
|
||||||
|
|
||||||
@Test
|
|
||||||
public void autocompleteIncomplete() throws Exception
|
|
||||||
{
|
|
||||||
final List<Location> autocompletes = provider.autocompleteStations("Kur");
|
|
||||||
|
|
||||||
list(autocompletes);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void list(final List<Location> autocompletes)
|
|
||||||
{
|
|
||||||
System.out.print(autocompletes.size() + " ");
|
|
||||||
for (final Location autocomplete : autocompletes)
|
|
||||||
System.out.print(autocomplete.toDebugString() + " ");
|
|
||||||
System.out.println();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void nearbyStations() throws Exception
|
public void nearbyStations() throws Exception
|
||||||
{
|
{
|
||||||
|
@ -73,4 +57,20 @@ public class TlemProviderLiveTest
|
||||||
|
|
||||||
System.out.println(result.stationDepartures);
|
System.out.println(result.stationDepartures);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void autocompleteIncomplete() throws Exception
|
||||||
|
{
|
||||||
|
final List<Location> autocompletes = provider.autocompleteStations("Kur");
|
||||||
|
|
||||||
|
list(autocompletes);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void list(final List<Location> autocompletes)
|
||||||
|
{
|
||||||
|
System.out.print(autocompletes.size() + " ");
|
||||||
|
for (final Location autocomplete : autocompletes)
|
||||||
|
System.out.print(autocomplete.toDebugString() + " ");
|
||||||
|
System.out.println();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,22 +34,6 @@ public class TlseProviderLiveTest
|
||||||
{
|
{
|
||||||
private final TlseProvider provider = new TlseProvider();
|
private final TlseProvider provider = new TlseProvider();
|
||||||
|
|
||||||
@Test
|
|
||||||
public void autocompleteIncomplete() throws Exception
|
|
||||||
{
|
|
||||||
final List<Location> autocompletes = provider.autocompleteStations("Kur");
|
|
||||||
|
|
||||||
list(autocompletes);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void list(final List<Location> autocompletes)
|
|
||||||
{
|
|
||||||
System.out.print(autocompletes.size() + " ");
|
|
||||||
for (final Location autocomplete : autocompletes)
|
|
||||||
System.out.print(autocomplete.toDebugString() + " ");
|
|
||||||
System.out.println();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void nearbyStations() throws Exception
|
public void nearbyStations() throws Exception
|
||||||
{
|
{
|
||||||
|
@ -73,4 +57,20 @@ public class TlseProviderLiveTest
|
||||||
|
|
||||||
System.out.println(result.stationDepartures);
|
System.out.println(result.stationDepartures);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void autocompleteIncomplete() throws Exception
|
||||||
|
{
|
||||||
|
final List<Location> autocompletes = provider.autocompleteStations("Kur");
|
||||||
|
|
||||||
|
list(autocompletes);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void list(final List<Location> autocompletes)
|
||||||
|
{
|
||||||
|
System.out.print(autocompletes.size() + " ");
|
||||||
|
for (final Location autocomplete : autocompletes)
|
||||||
|
System.out.print(autocomplete.toDebugString() + " ");
|
||||||
|
System.out.println();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,22 +34,6 @@ public class TlswProviderLiveTest
|
||||||
{
|
{
|
||||||
private final TlswProvider provider = new TlswProvider();
|
private final TlswProvider provider = new TlswProvider();
|
||||||
|
|
||||||
@Test
|
|
||||||
public void autocompleteIncomplete() throws Exception
|
|
||||||
{
|
|
||||||
final List<Location> autocompletes = provider.autocompleteStations("Kur");
|
|
||||||
|
|
||||||
list(autocompletes);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void list(final List<Location> autocompletes)
|
|
||||||
{
|
|
||||||
System.out.print(autocompletes.size() + " ");
|
|
||||||
for (final Location autocomplete : autocompletes)
|
|
||||||
System.out.print(autocomplete.toDebugString() + " ");
|
|
||||||
System.out.println();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void nearbyStations() throws Exception
|
public void nearbyStations() throws Exception
|
||||||
{
|
{
|
||||||
|
@ -73,4 +57,20 @@ public class TlswProviderLiveTest
|
||||||
|
|
||||||
System.out.println(result.stationDepartures);
|
System.out.println(result.stationDepartures);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void autocompleteIncomplete() throws Exception
|
||||||
|
{
|
||||||
|
final List<Location> autocompletes = provider.autocompleteStations("Kur");
|
||||||
|
|
||||||
|
list(autocompletes);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void list(final List<Location> autocompletes)
|
||||||
|
{
|
||||||
|
System.out.print(autocompletes.size() + " ");
|
||||||
|
for (final Location autocomplete : autocompletes)
|
||||||
|
System.out.print(autocomplete.toDebugString() + " ");
|
||||||
|
System.out.println();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,22 +34,6 @@ public class VagfrProviderLiveTest
|
||||||
{
|
{
|
||||||
private final VagfrProvider provider = new VagfrProvider();
|
private final VagfrProvider provider = new VagfrProvider();
|
||||||
|
|
||||||
@Test
|
|
||||||
public void autocompleteIncomplete() throws Exception
|
|
||||||
{
|
|
||||||
final List<Location> autocompletes = provider.autocompleteStations("Kurf");
|
|
||||||
|
|
||||||
list(autocompletes);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void list(final List<Location> autocompletes)
|
|
||||||
{
|
|
||||||
System.out.print(autocompletes.size() + " ");
|
|
||||||
for (final Location autocomplete : autocompletes)
|
|
||||||
System.out.print(autocomplete.toDebugString() + " ");
|
|
||||||
System.out.println();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void nearbyStations() throws Exception
|
public void nearbyStations() throws Exception
|
||||||
{
|
{
|
||||||
|
@ -73,4 +57,20 @@ public class VagfrProviderLiveTest
|
||||||
|
|
||||||
System.out.println(result.stationDepartures);
|
System.out.println(result.stationDepartures);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void autocompleteIncomplete() throws Exception
|
||||||
|
{
|
||||||
|
final List<Location> autocompletes = provider.autocompleteStations("Kurf");
|
||||||
|
|
||||||
|
list(autocompletes);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void list(final List<Location> autocompletes)
|
||||||
|
{
|
||||||
|
System.out.print(autocompletes.size() + " ");
|
||||||
|
for (final Location autocomplete : autocompletes)
|
||||||
|
System.out.print(autocomplete.toDebugString() + " ");
|
||||||
|
System.out.println();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,22 +34,6 @@ public class VblProviderLiveTest
|
||||||
{
|
{
|
||||||
private final VblProvider provider = new VblProvider();
|
private final VblProvider provider = new VblProvider();
|
||||||
|
|
||||||
@Test
|
|
||||||
public void autocompleteIncomplete() throws Exception
|
|
||||||
{
|
|
||||||
final List<Location> autocompletes = provider.autocompleteStations("Kur");
|
|
||||||
|
|
||||||
list(autocompletes);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void list(final List<Location> autocompletes)
|
|
||||||
{
|
|
||||||
System.out.print(autocompletes.size() + " ");
|
|
||||||
for (final Location autocomplete : autocompletes)
|
|
||||||
System.out.print(autocomplete.toDebugString() + " ");
|
|
||||||
System.out.println();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void nearbyStations() throws Exception
|
public void nearbyStations() throws Exception
|
||||||
{
|
{
|
||||||
|
@ -73,4 +57,20 @@ public class VblProviderLiveTest
|
||||||
|
|
||||||
System.out.println(result.stationDepartures);
|
System.out.println(result.stationDepartures);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void autocompleteIncomplete() throws Exception
|
||||||
|
{
|
||||||
|
final List<Location> autocompletes = provider.autocompleteStations("Kur");
|
||||||
|
|
||||||
|
list(autocompletes);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void list(final List<Location> autocompletes)
|
||||||
|
{
|
||||||
|
System.out.print(autocompletes.size() + " ");
|
||||||
|
for (final Location autocomplete : autocompletes)
|
||||||
|
System.out.print(autocomplete.toDebugString() + " ");
|
||||||
|
System.out.println();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,22 +34,6 @@ public class VmobilProviderLiveTest
|
||||||
{
|
{
|
||||||
private final VmobilProvider provider = new VmobilProvider();
|
private final VmobilProvider provider = new VmobilProvider();
|
||||||
|
|
||||||
@Test
|
|
||||||
public void autocompleteIncomplete() throws Exception
|
|
||||||
{
|
|
||||||
final List<Location> autocompletes = provider.autocompleteStations("Kur");
|
|
||||||
|
|
||||||
list(autocompletes);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void list(final List<Location> autocompletes)
|
|
||||||
{
|
|
||||||
System.out.print(autocompletes.size() + " ");
|
|
||||||
for (final Location autocomplete : autocompletes)
|
|
||||||
System.out.print(autocomplete.toDebugString() + " ");
|
|
||||||
System.out.println();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void nearbyStations() throws Exception
|
public void nearbyStations() throws Exception
|
||||||
{
|
{
|
||||||
|
@ -73,4 +57,20 @@ public class VmobilProviderLiveTest
|
||||||
|
|
||||||
System.out.println(result.stationDepartures);
|
System.out.println(result.stationDepartures);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void autocompleteIncomplete() throws Exception
|
||||||
|
{
|
||||||
|
final List<Location> autocompletes = provider.autocompleteStations("Kur");
|
||||||
|
|
||||||
|
list(autocompletes);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void list(final List<Location> autocompletes)
|
||||||
|
{
|
||||||
|
System.out.print(autocompletes.size() + " ");
|
||||||
|
for (final Location autocomplete : autocompletes)
|
||||||
|
System.out.print(autocomplete.toDebugString() + " ");
|
||||||
|
System.out.println();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,22 +34,6 @@ public class VmsProviderLiveTest
|
||||||
{
|
{
|
||||||
private final VmsProvider provider = new VmsProvider();
|
private final VmsProvider provider = new VmsProvider();
|
||||||
|
|
||||||
@Test
|
|
||||||
public void autocompleteIncomplete() throws Exception
|
|
||||||
{
|
|
||||||
final List<Location> autocompletes = provider.autocompleteStations("Kur");
|
|
||||||
|
|
||||||
list(autocompletes);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void list(final List<Location> autocompletes)
|
|
||||||
{
|
|
||||||
System.out.print(autocompletes.size() + " ");
|
|
||||||
for (final Location autocomplete : autocompletes)
|
|
||||||
System.out.print(autocomplete.toDebugString() + " ");
|
|
||||||
System.out.println();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void nearbyStations() throws Exception
|
public void nearbyStations() throws Exception
|
||||||
{
|
{
|
||||||
|
@ -73,4 +57,20 @@ public class VmsProviderLiveTest
|
||||||
|
|
||||||
System.out.println(result.stationDepartures);
|
System.out.println(result.stationDepartures);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void autocompleteIncomplete() throws Exception
|
||||||
|
{
|
||||||
|
final List<Location> autocompletes = provider.autocompleteStations("Kur");
|
||||||
|
|
||||||
|
list(autocompletes);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void list(final List<Location> autocompletes)
|
||||||
|
{
|
||||||
|
System.out.print(autocompletes.size() + " ");
|
||||||
|
for (final Location autocomplete : autocompletes)
|
||||||
|
System.out.print(autocomplete.toDebugString() + " ");
|
||||||
|
System.out.println();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,22 +34,6 @@ public class VmvProviderLiveTest
|
||||||
{
|
{
|
||||||
private final VmvProvider provider = new VmvProvider();
|
private final VmvProvider provider = new VmvProvider();
|
||||||
|
|
||||||
@Test
|
|
||||||
public void autocompleteIncomplete() throws Exception
|
|
||||||
{
|
|
||||||
final List<Location> autocompletes = provider.autocompleteStations("Kur");
|
|
||||||
|
|
||||||
list(autocompletes);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void list(final List<Location> autocompletes)
|
|
||||||
{
|
|
||||||
System.out.print(autocompletes.size() + " ");
|
|
||||||
for (final Location autocomplete : autocompletes)
|
|
||||||
System.out.print(autocomplete.toDebugString() + " ");
|
|
||||||
System.out.println();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void nearbyStations() throws Exception
|
public void nearbyStations() throws Exception
|
||||||
{
|
{
|
||||||
|
@ -73,4 +57,20 @@ public class VmvProviderLiveTest
|
||||||
|
|
||||||
System.out.println(result.stationDepartures);
|
System.out.println(result.stationDepartures);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void autocompleteIncomplete() throws Exception
|
||||||
|
{
|
||||||
|
final List<Location> autocompletes = provider.autocompleteStations("Kur");
|
||||||
|
|
||||||
|
list(autocompletes);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void list(final List<Location> autocompletes)
|
||||||
|
{
|
||||||
|
System.out.print(autocompletes.size() + " ");
|
||||||
|
for (final Location autocomplete : autocompletes)
|
||||||
|
System.out.print(autocomplete.toDebugString() + " ");
|
||||||
|
System.out.println();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,22 +34,6 @@ public class VorProviderLiveTest
|
||||||
{
|
{
|
||||||
private final VorProvider provider = new VorProvider();
|
private final VorProvider provider = new VorProvider();
|
||||||
|
|
||||||
@Test
|
|
||||||
public void autocompleteIncomplete() throws Exception
|
|
||||||
{
|
|
||||||
final List<Location> autocompletes = provider.autocompleteStations("Kur");
|
|
||||||
|
|
||||||
list(autocompletes);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void list(final List<Location> autocompletes)
|
|
||||||
{
|
|
||||||
System.out.print(autocompletes.size() + " ");
|
|
||||||
for (final Location autocomplete : autocompletes)
|
|
||||||
System.out.print(autocomplete.toDebugString() + " ");
|
|
||||||
System.out.println();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void nearbyStations() throws Exception
|
public void nearbyStations() throws Exception
|
||||||
{
|
{
|
||||||
|
@ -73,4 +57,20 @@ public class VorProviderLiveTest
|
||||||
|
|
||||||
System.out.println(result.stationDepartures);
|
System.out.println(result.stationDepartures);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void autocompleteIncomplete() throws Exception
|
||||||
|
{
|
||||||
|
final List<Location> autocompletes = provider.autocompleteStations("Kur");
|
||||||
|
|
||||||
|
list(autocompletes);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void list(final List<Location> autocompletes)
|
||||||
|
{
|
||||||
|
System.out.print(autocompletes.size() + " ");
|
||||||
|
for (final Location autocomplete : autocompletes)
|
||||||
|
System.out.print(autocomplete.toDebugString() + " ");
|
||||||
|
System.out.println();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,6 +34,30 @@ public class VrnProviderLiveTest
|
||||||
{
|
{
|
||||||
private final VrnProvider provider = new VrnProvider();
|
private final VrnProvider provider = new VrnProvider();
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void nearbyStations() throws Exception
|
||||||
|
{
|
||||||
|
final NearbyStationsResult result = provider.queryNearbyStations(new Location(LocationType.STATION, 6032236), 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, 49486561, 8477297), 0, 0);
|
||||||
|
|
||||||
|
System.out.println(result.stations.size() + " " + result.stations);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void queryDepartures() throws Exception
|
||||||
|
{
|
||||||
|
final QueryDeparturesResult result = provider.queryDepartures(6032236, 0, false);
|
||||||
|
|
||||||
|
System.out.println(result.stationDepartures);
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void autocompleteIncomplete() throws Exception
|
public void autocompleteIncomplete() throws Exception
|
||||||
{
|
{
|
||||||
|
@ -73,28 +97,4 @@ public class VrnProviderLiveTest
|
||||||
System.out.print(autocomplete.toDebugString() + " ");
|
System.out.print(autocomplete.toDebugString() + " ");
|
||||||
System.out.println();
|
System.out.println();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
public void nearbyStations() throws Exception
|
|
||||||
{
|
|
||||||
final NearbyStationsResult result = provider.queryNearbyStations(new Location(LocationType.STATION, 6032236), 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, 49486561, 8477297), 0, 0);
|
|
||||||
|
|
||||||
System.out.println(result.stations.size() + " " + result.stations);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
public void queryDepartures() throws Exception
|
|
||||||
{
|
|
||||||
final QueryDeparturesResult result = provider.queryDepartures(6032236, 0, false);
|
|
||||||
|
|
||||||
System.out.println(result.stationDepartures);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,6 +34,30 @@ public class VrrProviderLiveTest
|
||||||
{
|
{
|
||||||
private final VrrProvider provider = new VrrProvider();
|
private final VrrProvider provider = new VrrProvider();
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void nearbyStations() throws Exception
|
||||||
|
{
|
||||||
|
final NearbyStationsResult result = provider.queryNearbyStations(new Location(LocationType.STATION, 20019904), 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, 51218693, 6777785), 0, 0);
|
||||||
|
|
||||||
|
System.out.println(result.stations.size() + " " + result.stations);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void queryDepartures() throws Exception
|
||||||
|
{
|
||||||
|
final QueryDeparturesResult result = provider.queryDepartures(1007258, 0, false);
|
||||||
|
|
||||||
|
System.out.println(result.stationDepartures);
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void autocompleteIncomplete() throws Exception
|
public void autocompleteIncomplete() throws Exception
|
||||||
{
|
{
|
||||||
|
@ -65,28 +89,4 @@ public class VrrProviderLiveTest
|
||||||
System.out.print(autocomplete.toDebugString() + " ");
|
System.out.print(autocomplete.toDebugString() + " ");
|
||||||
System.out.println();
|
System.out.println();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
public void nearbyStations() throws Exception
|
|
||||||
{
|
|
||||||
final NearbyStationsResult result = provider.queryNearbyStations(new Location(LocationType.STATION, 20019904), 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, 51218693, 6777785), 0, 0);
|
|
||||||
|
|
||||||
System.out.println(result.stations.size() + " " + result.stations);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
public void queryDepartures() throws Exception
|
|
||||||
{
|
|
||||||
final QueryDeparturesResult result = provider.queryDepartures(1007258, 0, false);
|
|
||||||
|
|
||||||
System.out.println(result.stationDepartures);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,22 +34,6 @@ public class VrtProviderLiveTest
|
||||||
{
|
{
|
||||||
private final VrtProvider provider = new VrtProvider();
|
private final VrtProvider provider = new VrtProvider();
|
||||||
|
|
||||||
@Test
|
|
||||||
public void autocompleteIncomplete() throws Exception
|
|
||||||
{
|
|
||||||
final List<Location> autocompletes = provider.autocompleteStations("Kur");
|
|
||||||
|
|
||||||
list(autocompletes);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void list(final List<Location> autocompletes)
|
|
||||||
{
|
|
||||||
System.out.print(autocompletes.size() + " ");
|
|
||||||
for (final Location autocomplete : autocompletes)
|
|
||||||
System.out.print(autocomplete.toDebugString() + " ");
|
|
||||||
System.out.println();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void nearbyStations() throws Exception
|
public void nearbyStations() throws Exception
|
||||||
{
|
{
|
||||||
|
@ -73,4 +57,20 @@ public class VrtProviderLiveTest
|
||||||
|
|
||||||
System.out.println(result.stationDepartures);
|
System.out.println(result.stationDepartures);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void autocompleteIncomplete() throws Exception
|
||||||
|
{
|
||||||
|
final List<Location> autocompletes = provider.autocompleteStations("Kur");
|
||||||
|
|
||||||
|
list(autocompletes);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void list(final List<Location> autocompletes)
|
||||||
|
{
|
||||||
|
System.out.print(autocompletes.size() + " ");
|
||||||
|
for (final Location autocomplete : autocompletes)
|
||||||
|
System.out.print(autocomplete.toDebugString() + " ");
|
||||||
|
System.out.println();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,22 +34,6 @@ public class VvmProviderLiveTest
|
||||||
{
|
{
|
||||||
private final VvmProvider provider = new VvmProvider();
|
private final VvmProvider provider = new VvmProvider();
|
||||||
|
|
||||||
@Test
|
|
||||||
public void autocompleteIncomplete() throws Exception
|
|
||||||
{
|
|
||||||
final List<Location> autocompletes = provider.autocompleteStations("Kur");
|
|
||||||
|
|
||||||
list(autocompletes);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void list(final List<Location> autocompletes)
|
|
||||||
{
|
|
||||||
System.out.print(autocompletes.size() + " ");
|
|
||||||
for (final Location autocomplete : autocompletes)
|
|
||||||
System.out.print(autocomplete.toDebugString() + " ");
|
|
||||||
System.out.println();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void nearbyStations() throws Exception
|
public void nearbyStations() throws Exception
|
||||||
{
|
{
|
||||||
|
@ -73,4 +57,20 @@ public class VvmProviderLiveTest
|
||||||
|
|
||||||
System.out.println(result.stationDepartures);
|
System.out.println(result.stationDepartures);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void autocompleteIncomplete() throws Exception
|
||||||
|
{
|
||||||
|
final List<Location> autocompletes = provider.autocompleteStations("Kur");
|
||||||
|
|
||||||
|
list(autocompletes);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void list(final List<Location> autocompletes)
|
||||||
|
{
|
||||||
|
System.out.print(autocompletes.size() + " ");
|
||||||
|
for (final Location autocomplete : autocompletes)
|
||||||
|
System.out.print(autocomplete.toDebugString() + " ");
|
||||||
|
System.out.println();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,22 +34,6 @@ public class VvoProviderLiveTest
|
||||||
{
|
{
|
||||||
private final VvoProvider provider = new VvoProvider();
|
private final VvoProvider provider = new VvoProvider();
|
||||||
|
|
||||||
@Test
|
|
||||||
public void autocompleteIncomplete() throws Exception
|
|
||||||
{
|
|
||||||
final List<Location> autocompletes = provider.autocompleteStations("Kur");
|
|
||||||
|
|
||||||
list(autocompletes);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void list(final List<Location> autocompletes)
|
|
||||||
{
|
|
||||||
System.out.print(autocompletes.size() + " ");
|
|
||||||
for (final Location autocomplete : autocompletes)
|
|
||||||
System.out.print(autocomplete.toDebugString() + " ");
|
|
||||||
System.out.println();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void nearbyStations() throws Exception
|
public void nearbyStations() throws Exception
|
||||||
{
|
{
|
||||||
|
@ -73,4 +57,20 @@ public class VvoProviderLiveTest
|
||||||
|
|
||||||
System.out.println(result.stationDepartures);
|
System.out.println(result.stationDepartures);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void autocompleteIncomplete() throws Exception
|
||||||
|
{
|
||||||
|
final List<Location> autocompletes = provider.autocompleteStations("Kur");
|
||||||
|
|
||||||
|
list(autocompletes);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void list(final List<Location> autocompletes)
|
||||||
|
{
|
||||||
|
System.out.print(autocompletes.size() + " ");
|
||||||
|
for (final Location autocomplete : autocompletes)
|
||||||
|
System.out.print(autocomplete.toDebugString() + " ");
|
||||||
|
System.out.println();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,22 +34,6 @@ public class VvsProviderLiveTest
|
||||||
{
|
{
|
||||||
private final VvsProvider provider = new VvsProvider();
|
private final VvsProvider provider = new VvsProvider();
|
||||||
|
|
||||||
@Test
|
|
||||||
public void autocompleteIncomplete() throws Exception
|
|
||||||
{
|
|
||||||
final List<Location> autocompletes = provider.autocompleteStations("Kur");
|
|
||||||
|
|
||||||
list(autocompletes);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void list(final List<Location> autocompletes)
|
|
||||||
{
|
|
||||||
System.out.print(autocompletes.size() + " ");
|
|
||||||
for (final Location autocomplete : autocompletes)
|
|
||||||
System.out.print(autocomplete.toDebugString() + " ");
|
|
||||||
System.out.println();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void nearbyStations() throws Exception
|
public void nearbyStations() throws Exception
|
||||||
{
|
{
|
||||||
|
@ -73,4 +57,20 @@ public class VvsProviderLiveTest
|
||||||
|
|
||||||
System.out.println(result.stationDepartures);
|
System.out.println(result.stationDepartures);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void autocompleteIncomplete() throws Exception
|
||||||
|
{
|
||||||
|
final List<Location> autocompletes = provider.autocompleteStations("Kur");
|
||||||
|
|
||||||
|
list(autocompletes);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void list(final List<Location> autocompletes)
|
||||||
|
{
|
||||||
|
System.out.print(autocompletes.size() + " ");
|
||||||
|
for (final Location autocomplete : autocompletes)
|
||||||
|
System.out.print(autocomplete.toDebugString() + " ");
|
||||||
|
System.out.println();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,22 +38,6 @@ public class ZvvProviderLiveTest
|
||||||
private final ZvvProvider provider = new ZvvProvider();
|
private final ZvvProvider provider = new ZvvProvider();
|
||||||
private static final String ALL_PRODUCTS = "IRSUTBFC";
|
private static final String ALL_PRODUCTS = "IRSUTBFC";
|
||||||
|
|
||||||
@Test
|
|
||||||
public void autocomplete() throws Exception
|
|
||||||
{
|
|
||||||
final List<Location> autocompletes = provider.autocompleteStations("Flughafen");
|
|
||||||
|
|
||||||
list(autocompletes);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void list(final List<Location> autocompletes)
|
|
||||||
{
|
|
||||||
System.out.print(autocompletes.size() + " ");
|
|
||||||
for (final Location autocomplete : autocompletes)
|
|
||||||
System.out.print(autocomplete.toDebugString() + " ");
|
|
||||||
System.out.println();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void nearbyStationsByStation() throws Exception
|
public void nearbyStationsByStation() throws Exception
|
||||||
{
|
{
|
||||||
|
@ -78,6 +62,22 @@ public class ZvvProviderLiveTest
|
||||||
System.out.println(result.stationDepartures);
|
System.out.println(result.stationDepartures);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void autocomplete() throws Exception
|
||||||
|
{
|
||||||
|
final List<Location> autocompletes = provider.autocompleteStations("Flughafen");
|
||||||
|
|
||||||
|
list(autocompletes);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void list(final List<Location> autocompletes)
|
||||||
|
{
|
||||||
|
System.out.print(autocompletes.size() + " ");
|
||||||
|
for (final Location autocomplete : autocompletes)
|
||||||
|
System.out.print(autocomplete.toDebugString() + " ");
|
||||||
|
System.out.println();
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void shortConnection() throws Exception
|
public void shortConnection() throws Exception
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue