mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-17 19:49:50 +00:00
parse invalid date error
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@743 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
ba155714e1
commit
1755a530e0
2 changed files with 13 additions and 0 deletions
|
@ -17,6 +17,8 @@
|
|||
|
||||
package de.schildbach.pte.live;
|
||||
|
||||
import static junit.framework.Assert.assertEquals;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
|
@ -83,8 +85,17 @@ public class VbnProviderLiveTest
|
|||
{
|
||||
final QueryConnectionsResult result = provider.queryConnections(new Location(LocationType.STATION, 8096109, null, "Oldenburg"), null,
|
||||
new Location(LocationType.STATION, 625398, null, "Bremerhaven"), new Date(), true, ALL_PRODUCTS, WalkSpeed.NORMAL);
|
||||
assertEquals(QueryConnectionsResult.Status.OK, result.status);
|
||||
System.out.println(result);
|
||||
final QueryConnectionsResult moreResult = provider.queryMoreConnections(result.context);
|
||||
System.out.println(moreResult);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void connectionDateOutsideTimetablePeriod() throws Exception
|
||||
{
|
||||
final QueryConnectionsResult result = provider.queryConnections(new Location(LocationType.STATION, 8096109, null, "Oldenburg"), null,
|
||||
new Location(LocationType.STATION, 625398, null, "Bremerhaven"), new Date(1155822689759l), true, ALL_PRODUCTS, WalkSpeed.NORMAL);
|
||||
assertEquals(QueryConnectionsResult.Status.INVALID_DATE, result.status);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue