mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-15 00:50:31 +00:00
GVH: Allow configuration of API base.
This commit is contained in:
parent
6e03763192
commit
2be92e3845
2 changed files with 8 additions and 4 deletions
|
@ -37,11 +37,15 @@ public class GvhProvider extends AbstractEfaProvider
|
|||
// http://bhb.efa.de/bhb/
|
||||
// http://mobil.efa.de/mobile3/
|
||||
|
||||
public GvhProvider(final String additionalQueryParameter)
|
||||
public GvhProvider()
|
||||
{
|
||||
super(NetworkId.GVH, API_BASE);
|
||||
this(API_BASE);
|
||||
}
|
||||
|
||||
public GvhProvider(final String apiBase)
|
||||
{
|
||||
super(NetworkId.GVH, apiBase);
|
||||
|
||||
setAdditionalQueryParameter(additionalQueryParameter);
|
||||
setStyles(STYLES);
|
||||
setSessionCookieName("HASESSIONID");
|
||||
}
|
||||
|
|
|
@ -42,7 +42,7 @@ public class GvhProviderLiveTest extends AbstractProviderLiveTest
|
|||
{
|
||||
public GvhProviderLiveTest()
|
||||
{
|
||||
super(new GvhProvider(null));
|
||||
super(new GvhProvider());
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue