mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-20 09:19:57 +00:00
VRS: Quickly handle API error 'Keine Abfahrten gefunden.'. The full solution would be to restructure the code in a way that allows to return at least the List<LineDestination> part.
This commit is contained in:
parent
7545abea7a
commit
8a5341438f
2 changed files with 16 additions and 4 deletions
|
@ -168,6 +168,15 @@ public class VrsProviderLiveTest extends AbstractProviderLiveTest
|
|||
printLineDestinations(result);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void queryDeparturesGaussstr() throws Exception
|
||||
{
|
||||
final QueryDeparturesResult result = queryDepartures("8984", false);
|
||||
// will return {"error": "Keine Abfahrten gefunden."}
|
||||
print(result);
|
||||
printLineDestinations(result);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void queryManyDepartures() throws Exception
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue