diff --git a/enabler/src/de/schildbach/pte/AbstractEfaProvider.java b/enabler/src/de/schildbach/pte/AbstractEfaProvider.java index 517edcf0..9e7ce868 100644 --- a/enabler/src/de/schildbach/pte/AbstractEfaProvider.java +++ b/enabler/src/de/schildbach/pte/AbstractEfaProvider.java @@ -3253,6 +3253,9 @@ public abstract class AbstractEfaProvider extends AbstractNetworkProvider if (XmlPullUtil.test(pp, "clientHeaderLines")) XmlPullUtil.next(pp); + if (XmlPullUtil.test(pp, "itdMessageList")) + XmlPullUtil.next(pp); + if (XmlPullUtil.test(pp, "itdVersionInfo")) XmlPullUtil.next(pp); diff --git a/enabler/test/de/schildbach/pte/live/TflProviderLiveTest.java b/enabler/test/de/schildbach/pte/live/TflProviderLiveTest.java index 63c1fd7b..0248fc87 100644 --- a/enabler/test/de/schildbach/pte/live/TflProviderLiveTest.java +++ b/enabler/test/de/schildbach/pte/live/TflProviderLiveTest.java @@ -113,4 +113,33 @@ public class TflProviderLiveTest extends AbstractProviderLiveTest Accessibility.NEUTRAL); System.out.println(result); } + + @Test + public void tripItdMessageList() throws Exception + { + final QueryTripsResult result = queryTrips( + new Location(LocationType.ADDRESS, 0, 51446072, -239417, "Wandsworth", "Timsbury Walk, Wandsworth"), null, new Location( + LocationType.STATION, 90046985, 53225140, -1472433, "Chesterfield (Derbys)", + "Walton (Chesterfield), Netherfield Road (on Somersall Lane)"), new Date(), true, Product.ALL, WalkSpeed.NORMAL, + Accessibility.NEUTRAL); + System.out.println(result); + + if (!result.context.canQueryLater()) + return; + + final QueryTripsResult laterResult = queryMoreTrips(result.context, true); + System.out.println(laterResult); + + if (!laterResult.context.canQueryLater()) + return; + + final QueryTripsResult later2Result = queryMoreTrips(laterResult.context, true); + System.out.println(later2Result); + + if (!later2Result.context.canQueryEarlier()) + return; + + final QueryTripsResult earlierResult = queryMoreTrips(later2Result.context, false); + System.out.println(earlierResult); + } }