mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-17 06:29:50 +00:00
nearbyStations() gets its own result object
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@237 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
ae3cc77277
commit
94d99f7e53
18 changed files with 115 additions and 70 deletions
|
@ -16,12 +16,10 @@
|
|||
*/
|
||||
package de.schildbach.pte.live;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import de.schildbach.pte.SncbProvider;
|
||||
import de.schildbach.pte.dto.Station;
|
||||
import de.schildbach.pte.dto.NearbyStationsResult;
|
||||
|
||||
/**
|
||||
* @author Andreas Schildbach
|
||||
|
@ -33,8 +31,8 @@ public class SncbProviderLiveTest
|
|||
@Test
|
||||
public void nearbyStation() throws Exception
|
||||
{
|
||||
final List<Station> results = provider.nearbyStations("100080", 0, 0, 0, 0);
|
||||
final NearbyStationsResult result = provider.nearbyStations("100080", 0, 0, 0, 0);
|
||||
|
||||
System.out.println(results.size() + " " + results);
|
||||
System.out.println(result.stations.size() + " " + result.stations);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue