mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-19 00:39:58 +00:00
Fix premature session expiry for Karlsruhe.
This commit is contained in:
parent
4a8a17f1fe
commit
a721f9285a
2 changed files with 8 additions and 3 deletions
|
@ -43,6 +43,7 @@ public class KvvProvider extends AbstractEfaProvider
|
||||||
super(apiBase);
|
super(apiBase);
|
||||||
|
|
||||||
setStyles(STYLES);
|
setStyles(STYLES);
|
||||||
|
setSessionCookieName("HASESSIONID");
|
||||||
}
|
}
|
||||||
|
|
||||||
public NetworkId id()
|
public NetworkId id()
|
||||||
|
|
|
@ -83,9 +83,9 @@ public class KvvProviderLiveTest extends AbstractProviderLiveTest
|
||||||
@Test
|
@Test
|
||||||
public void shortTrip() throws Exception
|
public void shortTrip() throws Exception
|
||||||
{
|
{
|
||||||
final QueryTripsResult result = queryTrips(new Location(LocationType.STATION, "7000070", 49009208, 8404126, "Karlsruhe",
|
final QueryTripsResult result = queryTrips(new Location(LocationType.STATION, "7000001", 49009526, 8404914, "Karlsruhe", "Marktplatz"), null,
|
||||||
"Marktplatz (Pyramide)"), null, new Location(LocationType.STATION, "7000002", 49009392, 8409086, "Karlsruhe",
|
new Location(LocationType.STATION, "7000002", 49009393, 8408866, "Karlsruhe", "Kronenplatz (Kaiserstr.)"), new Date(), true,
|
||||||
"Kronenplatz (Kaiserstr.)"), new Date(), true, Product.ALL, WalkSpeed.NORMAL, Accessibility.NEUTRAL);
|
Product.ALL, WalkSpeed.NORMAL, Accessibility.NEUTRAL);
|
||||||
print(result);
|
print(result);
|
||||||
assertEquals(QueryTripsResult.Status.OK, result.status);
|
assertEquals(QueryTripsResult.Status.OK, result.status);
|
||||||
assertTrue(result.trips.size() > 0);
|
assertTrue(result.trips.size() > 0);
|
||||||
|
@ -116,6 +116,10 @@ public class KvvProviderLiveTest extends AbstractProviderLiveTest
|
||||||
"Konstanzer Straße 17, 76199 Karlsruhe, Deutschland"), null, new Location(LocationType.ADDRESS, null, 49007706, 8356358, null,
|
"Konstanzer Straße 17, 76199 Karlsruhe, Deutschland"), null, new Location(LocationType.ADDRESS, null, 49007706, 8356358, null,
|
||||||
"Durmersheimer Straße 6, 76185 Karlsruhe, Deutschland"), new Date(), true, Product.ALL, WalkSpeed.NORMAL, Accessibility.NEUTRAL);
|
"Durmersheimer Straße 6, 76185 Karlsruhe, Deutschland"), new Date(), true, Product.ALL, WalkSpeed.NORMAL, Accessibility.NEUTRAL);
|
||||||
print(result);
|
print(result);
|
||||||
|
|
||||||
|
if (!result.context.canQueryLater())
|
||||||
|
return;
|
||||||
|
|
||||||
final QueryTripsResult laterResult = queryMoreTrips(result.context, true);
|
final QueryTripsResult laterResult = queryMoreTrips(result.context, true);
|
||||||
print(laterResult);
|
print(laterResult);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue