mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-14 00:30:31 +00:00
Migrate multi-module project to single project.
This commit is contained in:
parent
04382fe67e
commit
070fcad64a
220 changed files with 73 additions and 85 deletions
197
test/de/schildbach/pte/live/ParisProviderLiveTest.java
Normal file
197
test/de/schildbach/pte/live/ParisProviderLiveTest.java
Normal file
|
@ -0,0 +1,197 @@
|
|||
/*
|
||||
* Copyright 2014-2015 the original author or authors.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package de.schildbach.pte.live;
|
||||
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import de.schildbach.pte.ParisProvider;
|
||||
import de.schildbach.pte.dto.Location;
|
||||
import de.schildbach.pte.dto.LocationType;
|
||||
import de.schildbach.pte.dto.Point;
|
||||
|
||||
/**
|
||||
* @author Antonio El Khoury
|
||||
*/
|
||||
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 nearbyStationsAddress2() throws Exception {
|
||||
nearbyStationsAddress(48785420, 2212050);
|
||||
}
|
||||
|
||||
@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 nearbyStationsAny() throws Exception {
|
||||
nearbyStationsAny(48877523, 2378353);
|
||||
}
|
||||
|
||||
@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 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 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 suggestLocations() throws Exception {
|
||||
suggestLocationsFromName("bellevi");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void suggestLocationsFromAddress() throws Exception {
|
||||
suggestLocationsFromAddress("13 rue man");
|
||||
}
|
||||
|
||||
@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 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 queryTripCablecar() throws Exception {
|
||||
queryTrip("Campo Formio", "Aéroport Orly Sud");
|
||||
}
|
||||
|
||||
@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 queryTripStationsOrlyval() throws Exception {
|
||||
queryTrip("Orly Sud", "Gare De Lyon");
|
||||
}
|
||||
|
||||
@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 queryTripNoSolution() throws Exception {
|
||||
queryTripNoSolution("secretan buttes chaumont paris", "Antony Antony");
|
||||
}
|
||||
|
||||
@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 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 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 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);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue