handle 'no connections' without throwing IllegalStateException

This commit is contained in:
Andreas Schildbach 2012-08-08 11:14:19 +02:00
parent d022370fcb
commit be66746299
2 changed files with 13 additions and 2 deletions

View file

@ -108,6 +108,15 @@ public class BahnProviderLiveTest extends AbstractProviderLiveTest
System.out.println(laterResult);
}
@Test
public void noConnections() throws Exception
{
final QueryConnectionsResult result = queryConnections(new Location(LocationType.STATION, 513729, null, "Schillerplatz, Kaiserslautern"),
null, new Location(LocationType.STATION, 403631, null, "Trippstadt Grundschule"), new Date(), true, ALL_PRODUCTS, WalkSpeed.NORMAL,
Accessibility.NEUTRAL);
System.out.println(result);
}
@Test
public void connectionWithFootway() throws Exception
{