Skip to content

Commit e33634f

Browse files
committed
Replace Paris in ScreengrabTest.kt
1 parent 21fe552 commit e33634f

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

app/src/androidTest/java/de/grobox/transportr/ScreengrabTest.kt

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -52,20 +52,20 @@ abstract class ScreengrabTest {
5252
}
5353

5454
val networkId: NetworkId = when(Locale.forLanguageTag(getTestLocale() ?: "de")) {
55-
Locale.FRANCE -> NetworkId.PARIS
55+
Locale.FRANCE -> NetworkId.SEARCHCH
5656
else -> NetworkId.DB
5757
}
5858

5959
val departureStation = when(networkId) {
60-
NetworkId.PARIS -> "Gare De Lyon"
60+
NetworkId.SEARCHCH -> "Genève"
6161
else -> "Berlin Hbf"
6262
}
6363

6464
protected fun getFrom(i: Int): WrapLocation = when(networkId) {
65-
NetworkId.PARIS -> when(i) {
66-
0 -> WrapLocation(STATION, "stop_area:OIF:SA:8739305", 48857298, 2293270, "Paris", "Champ De Mars Tour Eiffel", null)
67-
1 -> WrapLocation(STATION, "stop_area:OIF:SA:8739100", 48842481, 2321783, "Paris", "Gare Montparnasse", null)
68-
2 -> WrapLocation(STATION, "stop_area:OIF:SA:8727100", 48880372, 2356597, null, "Gare Du Nord", null)
65+
NetworkId.SEARCHCH -> when(i) {
66+
0 -> getLocation("Zürich HB")
67+
1 -> getLocation("Lausanne, gare")
68+
2 -> getLocation("Basel SBB")
6969
else -> throw RuntimeException()
7070
}
7171
else -> when(i) {
@@ -77,10 +77,10 @@ abstract class ScreengrabTest {
7777
}
7878

7979
protected fun getTo(i: Int): WrapLocation = when(networkId) {
80-
NetworkId.PARIS -> when(i) {
81-
0 -> WrapLocation(STATION, "stop_area:OIF:SA:8711300", 48876241, 2358326, "Paris", "Gare De L'est", null)
82-
1 -> WrapLocation(STATION, "stop_area:OIF:SA:8754730", 48860751, 2325874, "Paris", "Musée D'orsay", null)
83-
2 -> WrapLocation(STATION, "stop_area:OIF:SA:59290", 48866800, 2334338, "Paris", "Pyramides", null)
80+
NetworkId.SEARCHCH -> when(i) {
81+
0 -> getLocation("Chur West")
82+
1 -> getLocation("Bern Wankdorf")
83+
2 -> getLocation("Luzern, Bahnhof")
8484
else -> throw RuntimeException()
8585
}
8686
else -> when(i) {

0 commit comments

Comments
 (0)