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:
Michael Dyrna 2015-04-09 16:31:20 +02:00 committed by Andreas Schildbach
parent 7545abea7a
commit 8a5341438f
2 changed files with 16 additions and 4 deletions

View file

@ -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
{