Created
July 8, 2011 23:22
-
-
Save pangratz/1073061 to your computer and use it in GitHub Desktop.
this is not the same id as shown in Oeffi on Android ...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class LinzProviderTest extends TestCase { | |
private LinzProvider provider; | |
public void testAutocomplete() throws IOException { | |
List<Location> stations = provider.autocompleteStations("Schumpeter"); | |
assertNotNull(stations); | |
assertEquals(1, stations.size()); | |
Location schumpeter = stations.get(0); | |
assertEquals("Schumpeterstraße", schumpeter.name); | |
assertEquals(491115, schumpeter.id); | |
} | |
@Override | |
protected void setUp() throws Exception { | |
super.setUp(); | |
provider = new LinzProvider(); | |
} | |
@Override | |
protected void tearDown() throws Exception { | |
super.tearDown(); | |
provider = null; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
instead of expected id 491115 the id 60501120 is returned.