Refactor XmlPullParser.getAttributeValue() to use XmlPullUtil.attr() variants.

This commit is contained in:
Andreas Schildbach 2015-01-24 16:40:13 +01:00
parent 574dd9c9a8
commit 25c2eb6176
4 changed files with 116 additions and 87 deletions

View file

@ -170,4 +170,15 @@ public class NvbwProviderLiveTest extends AbstractProviderLiveTest
final QueryTripsResult earlierResult = queryMoreTrips(later2Result.context, false);
print(earlierResult);
}
@Test
public void trip() throws Exception
{
final QueryTripsResult result = queryTrips(
new Location(LocationType.STATION, "6900037", 48063184, 7779532, "Buchheim (Breisgau)", "Fortuna"), null, new Location(
LocationType.STATION, "6906508", 47996616, 7840450, "Freiburg im Breisgau", "Freiburg im Breisgau, Hauptbahnhof"),
new Date(), true, Product.ALL, WalkSpeed.NORMAL, Accessibility.NEUTRAL);
print(result);
assertEquals(QueryTripsResult.Status.OK, result.status);
}
}