mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-16 09:29:49 +00:00
Switch to modern code format. Organize imports. No functional changes.
Java sources use Eclipse 4.5 'Java Conventions' with indentation changed to 4 spaces only per level.
This commit is contained in:
parent
db59817a05
commit
931dafb628
191 changed files with 24827 additions and 27703 deletions
|
@ -29,197 +29,164 @@ import de.schildbach.pte.dto.Point;
|
|||
/**
|
||||
* @author Antonio El Khoury
|
||||
*/
|
||||
public class ParisProviderLiveTest extends AbstractNavitiaProviderLiveTest
|
||||
{
|
||||
public ParisProviderLiveTest()
|
||||
{
|
||||
super(new ParisProvider(secretProperty("navitia.authorization")));
|
||||
}
|
||||
public class ParisProviderLiveTest extends AbstractNavitiaProviderLiveTest {
|
||||
public ParisProviderLiveTest() {
|
||||
super(new ParisProvider(secretProperty("navitia.authorization")));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void nearbyStationsAddress() throws Exception
|
||||
{
|
||||
nearbyStationsAddress(48877523, 2378353);
|
||||
}
|
||||
@Test
|
||||
public void nearbyStationsAddress() throws Exception {
|
||||
nearbyStationsAddress(48877523, 2378353);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void nearbyStationsAddress2() throws Exception
|
||||
{
|
||||
nearbyStationsAddress(48785420, 2212050);
|
||||
}
|
||||
@Test
|
||||
public void nearbyStationsAddress2() throws Exception {
|
||||
nearbyStationsAddress(48785420, 2212050);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void nearbyStationsStation() throws Exception
|
||||
{
|
||||
nearbyStationsStation("stop_point:OIF:SP:59:5657291");
|
||||
}
|
||||
@Test
|
||||
public void nearbyStationsStation() throws Exception {
|
||||
nearbyStationsStation("stop_point:OIF:SP:59:5657291");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void nearbyStationsPoi() throws Exception
|
||||
{
|
||||
nearbyStationsPoi("poi:n668579722");
|
||||
}
|
||||
@Test
|
||||
public void nearbyStationsPoi() throws Exception {
|
||||
nearbyStationsPoi("poi:n668579722");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void nearbyStationsAny() throws Exception
|
||||
{
|
||||
nearbyStationsAny(48877523, 2378353);
|
||||
}
|
||||
@Test
|
||||
public void nearbyStationsAny() throws Exception {
|
||||
nearbyStationsAny(48877523, 2378353);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void nearbyStationsDistance() throws Exception
|
||||
{
|
||||
nearbyStationsStationDistance("stop_point:OIF:SP:80:137");
|
||||
}
|
||||
@Test
|
||||
public void nearbyStationsDistance() throws Exception {
|
||||
nearbyStationsStationDistance("stop_point:OIF:SP:80:137");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void nearbyStationsInvalidStation() throws Exception
|
||||
{
|
||||
nearbyStationsInvalidStation("stop_point:RTP:SP:392");
|
||||
}
|
||||
@Test
|
||||
public void nearbyStationsInvalidStation() throws Exception {
|
||||
nearbyStationsInvalidStation("stop_point:RTP:SP:392");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void queryDeparturesEquivsFalse() throws Exception
|
||||
{
|
||||
queryDeparturesEquivsFalse("stop_point:OIF:SP:59:5657291");
|
||||
}
|
||||
@Test
|
||||
public void queryDeparturesEquivsFalse() throws Exception {
|
||||
queryDeparturesEquivsFalse("stop_point:OIF:SP:59:5657291");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void queryDeparturesStopArea() throws Exception
|
||||
{
|
||||
queryDeparturesStopArea("stop_area:OIF:SA:59864");
|
||||
}
|
||||
@Test
|
||||
public void queryDeparturesStopArea() throws Exception {
|
||||
queryDeparturesStopArea("stop_area:OIF:SA:59864");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void queryDeparturesEquivsTrue() throws Exception
|
||||
{
|
||||
queryDeparturesEquivsTrue("stop_point:OIF:SP:59:5657291");
|
||||
}
|
||||
@Test
|
||||
public void queryDeparturesEquivsTrue() throws Exception {
|
||||
queryDeparturesEquivsTrue("stop_point:OIF:SP:59:5657291");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void queryDeparturesInvalidStation() throws Exception
|
||||
{
|
||||
queryDeparturesInvalidStation("stop_point:RTP:SP:999999");
|
||||
}
|
||||
@Test
|
||||
public void queryDeparturesInvalidStation() throws Exception {
|
||||
queryDeparturesInvalidStation("stop_point:RTP:SP:999999");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void suggestLocations() throws Exception
|
||||
{
|
||||
suggestLocationsFromName("bellevi");
|
||||
}
|
||||
@Test
|
||||
public void suggestLocations() throws Exception {
|
||||
suggestLocationsFromName("bellevi");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void suggestLocationsFromAddress() throws Exception
|
||||
{
|
||||
suggestLocationsFromAddress("13 rue man");
|
||||
}
|
||||
@Test
|
||||
public void suggestLocationsFromAddress() throws Exception {
|
||||
suggestLocationsFromAddress("13 rue man");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void suggestLocationsNoLocation() throws Exception
|
||||
{
|
||||
suggestLocationsNoLocation("bellevilleadasdjkaskd");
|
||||
}
|
||||
@Test
|
||||
public void suggestLocationsNoLocation() throws Exception {
|
||||
suggestLocationsNoLocation("bellevilleadasdjkaskd");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void queryTripAddresses() throws Exception
|
||||
{
|
||||
queryTrip("5 rue Manin Paris", "10 rue Elanger Paris");
|
||||
}
|
||||
@Test
|
||||
public void queryTripAddresses() throws Exception {
|
||||
queryTrip("5 rue Manin Paris", "10 rue Elanger Paris");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void queryTripAddressStation() throws Exception
|
||||
{
|
||||
queryTrip("155 bd hopital paris", "Gare St-Lazare");
|
||||
}
|
||||
@Test
|
||||
public void queryTripAddressStation() throws Exception {
|
||||
queryTrip("155 bd hopital paris", "Gare St-Lazare");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void queryTripStations() throws Exception
|
||||
{
|
||||
queryTrip("Campo Formio", "Gare St-Lazare");
|
||||
}
|
||||
@Test
|
||||
public void queryTripStations() throws Exception {
|
||||
queryTrip("Campo Formio", "Gare St-Lazare");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void queryTripCablecar() throws Exception
|
||||
{
|
||||
queryTrip("Campo Formio", "Aéroport Orly Sud");
|
||||
}
|
||||
@Test
|
||||
public void queryTripCablecar() throws Exception {
|
||||
queryTrip("Campo Formio", "Aéroport Orly Sud");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void queryTripStations2() throws Exception
|
||||
{
|
||||
queryTrip("Tour Eiffel", "Orsay Ville");
|
||||
}
|
||||
@Test
|
||||
public void queryTripStations2() throws Exception {
|
||||
queryTrip("Tour Eiffel", "Orsay Ville");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void queryTripStations3() throws Exception
|
||||
{
|
||||
queryTrip("Tour Eiffel", "Campo Formio");
|
||||
}
|
||||
@Test
|
||||
public void queryTripStations3() throws Exception {
|
||||
queryTrip("Tour Eiffel", "Campo Formio");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void queryTripStationsRapidTransit() throws Exception
|
||||
{
|
||||
queryTrip("Luxembourg Paris", "Antony Antony");
|
||||
}
|
||||
@Test
|
||||
public void queryTripStationsRapidTransit() throws Exception {
|
||||
queryTrip("Luxembourg Paris", "Antony Antony");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void queryTripFromAdministrativeRegionToPoi() throws Exception
|
||||
{
|
||||
queryTripFromAdminToPoi("Paris 10e Arrondissement", "Paris Tour Eiffel");
|
||||
}
|
||||
@Test
|
||||
public void queryTripFromAdministrativeRegionToPoi() throws Exception {
|
||||
queryTripFromAdminToPoi("Paris 10e Arrondissement", "Paris Tour Eiffel");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void queryTripNoSolution() throws Exception
|
||||
{
|
||||
queryTripNoSolution("secretan buttes chaumont paris", "Antony Antony");
|
||||
}
|
||||
@Test
|
||||
public void queryTripNoSolution() throws Exception {
|
||||
queryTripNoSolution("secretan buttes chaumont paris", "Antony Antony");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void queryTripUnknownFrom() throws Exception
|
||||
{
|
||||
queryTripUnknownFrom("secretan buttes chaumont paris");
|
||||
}
|
||||
@Test
|
||||
public void queryTripUnknownFrom() throws Exception {
|
||||
queryTripUnknownFrom("secretan buttes chaumont paris");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void queryTripUnknownTo() throws Exception
|
||||
{
|
||||
queryTripUnknownTo("secretan buttes chaumont paris");
|
||||
}
|
||||
@Test
|
||||
public void queryTripUnknownTo() throws Exception {
|
||||
queryTripUnknownTo("secretan buttes chaumont paris");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void queryTripAmbiguousFrom() throws Exception
|
||||
{
|
||||
queryTripAmbiguousFrom(new Location(LocationType.ANY, "ambiguous", null, "Eiffel"), "Gare St-Lazare");
|
||||
}
|
||||
@Test
|
||||
public void queryTripAmbiguousFrom() throws Exception {
|
||||
queryTripAmbiguousFrom(new Location(LocationType.ANY, "ambiguous", null, "Eiffel"), "Gare St-Lazare");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void queryTripAmbiguousTo() throws Exception
|
||||
{
|
||||
queryTripAmbiguousTo("Gare St-Lazare", new Location(LocationType.ANY, "ambiguous", null, "Eiffel"));
|
||||
}
|
||||
@Test
|
||||
public void queryTripAmbiguousTo() throws Exception {
|
||||
queryTripAmbiguousTo("Gare St-Lazare", new Location(LocationType.ANY, "ambiguous", null, "Eiffel"));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void queryTripSlowWalk() throws Exception
|
||||
{
|
||||
queryTripSlowWalk("5 rue manin paris", "10 rue marcel dassault velizy");
|
||||
}
|
||||
@Test
|
||||
public void queryTripSlowWalk() throws Exception {
|
||||
queryTripSlowWalk("5 rue manin paris", "10 rue marcel dassault velizy");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void queryTripFastWalk() throws Exception
|
||||
{
|
||||
queryTripFastWalk("5 rue manin paris", "10 rue marcel dassault velizy");
|
||||
}
|
||||
@Test
|
||||
public void queryTripFastWalk() throws Exception {
|
||||
queryTripFastWalk("5 rue manin paris", "10 rue marcel dassault velizy");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void queryMoreTrips() throws Exception
|
||||
{
|
||||
queryMoreTrips("5 rue manin paris", "10 rue marcel dassault velizy");
|
||||
}
|
||||
@Test
|
||||
public void queryMoreTrips() throws Exception {
|
||||
queryMoreTrips("5 rue manin paris", "10 rue marcel dassault velizy");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void getArea() throws Exception
|
||||
{
|
||||
final Point[] polygon = provider.getArea();
|
||||
assertTrue(polygon.length > 0);
|
||||
}
|
||||
@Test
|
||||
public void getArea() throws Exception {
|
||||
final Point[] polygon = provider.getArea();
|
||||
assertTrue(polygon.length > 0);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue