GVH: Allow configuration of API base.

This commit is contained in:
Andreas Schildbach 2015-11-04 09:07:21 +01:00
parent 6e03763192
commit 2be92e3845
2 changed files with 8 additions and 4 deletions

View file

@ -37,11 +37,15 @@ public class GvhProvider extends AbstractEfaProvider
// http://bhb.efa.de/bhb/ // http://bhb.efa.de/bhb/
// http://mobil.efa.de/mobile3/ // 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); setStyles(STYLES);
setSessionCookieName("HASESSIONID"); setSessionCookieName("HASESSIONID");
} }

View file

@ -42,7 +42,7 @@ public class GvhProviderLiveTest extends AbstractProviderLiveTest
{ {
public GvhProviderLiveTest() public GvhProviderLiveTest()
{ {
super(new GvhProvider(null)); super(new GvhProvider());
} }
@Test @Test