mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-11 00:08:49 +00:00
Rename FrenchSouthWestProvider to FranceSouthWestProvider and NetworkId.FRENCHSOUTHWEST to NetworkId.FRANCESOUTHWEST.
This is done to be consistent with the other France providers.
This commit is contained in:
parent
c6cb7bcfef
commit
670a63e0f9
3 changed files with 10 additions and 10 deletions
|
@ -24,17 +24,17 @@ import de.schildbach.pte.dto.Style.Shape;
|
||||||
/**
|
/**
|
||||||
* @author Nicolas Derive
|
* @author Nicolas Derive
|
||||||
*/
|
*/
|
||||||
public class FrenchSouthWestProvider extends AbstractNavitiaProvider {
|
public class FranceSouthWestProvider extends AbstractNavitiaProvider {
|
||||||
private static String API_REGION = "fr-sw";
|
private static String API_REGION = "fr-sw";
|
||||||
|
|
||||||
public FrenchSouthWestProvider(final String apiBase, final String authorization) {
|
public FranceSouthWestProvider(final String apiBase, final String authorization) {
|
||||||
super(NetworkId.FRENCHSOUTHWEST, apiBase, authorization);
|
super(NetworkId.FRANCESOUTHWEST, apiBase, authorization);
|
||||||
|
|
||||||
setTimeZone("Europe/Paris");
|
setTimeZone("Europe/Paris");
|
||||||
}
|
}
|
||||||
|
|
||||||
public FrenchSouthWestProvider(final String authorization) {
|
public FranceSouthWestProvider(final String authorization) {
|
||||||
super(NetworkId.FRENCHSOUTHWEST, authorization);
|
super(NetworkId.FRANCESOUTHWEST, authorization);
|
||||||
|
|
||||||
setTimeZone("Europe/Paris");
|
setTimeZone("Europe/Paris");
|
||||||
}
|
}
|
|
@ -34,7 +34,7 @@ public enum NetworkId {
|
||||||
SBB, BVB, VBL, ZVV,
|
SBB, BVB, VBL, ZVV,
|
||||||
|
|
||||||
// France
|
// France
|
||||||
PACA, PARIS, FRENCHSOUTHWEST, FRANCESOUTHEAST, FRANCENORTHWEST, FRANCENORTHEAST,
|
PACA, PARIS, FRANCESOUTHWEST, FRANCESOUTHEAST, FRANCENORTHWEST, FRANCENORTHEAST,
|
||||||
|
|
||||||
// Belgium
|
// Belgium
|
||||||
SNCB,
|
SNCB,
|
||||||
|
|
|
@ -21,15 +21,15 @@ import static org.junit.Assert.assertTrue;
|
||||||
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import de.schildbach.pte.FrenchSouthWestProvider;
|
import de.schildbach.pte.FranceSouthWestProvider;
|
||||||
import de.schildbach.pte.dto.Point;
|
import de.schildbach.pte.dto.Point;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Nicolas Derive
|
* @author Nicolas Derive
|
||||||
*/
|
*/
|
||||||
public class FrenchSouthWestProviderLiveTest extends AbstractNavitiaProviderLiveTest {
|
public class FranceSouthWestProviderLiveTest extends AbstractNavitiaProviderLiveTest {
|
||||||
public FrenchSouthWestProviderLiveTest() {
|
public FranceSouthWestProviderLiveTest() {
|
||||||
super(new FrenchSouthWestProvider(secretProperty("navitia.authorization")));
|
super(new FranceSouthWestProvider(secretProperty("navitia.authorization")));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
Loading…
Add table
Add a link
Reference in a new issue