mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-20 09:19:57 +00:00
Fix false positives in Location.equals().
This commit is contained in:
parent
b4ac8f72cb
commit
ae00988db7
2 changed files with 10 additions and 5 deletions
|
@ -17,7 +17,9 @@
|
|||
|
||||
package de.schildbach.pte.live;
|
||||
|
||||
import static org.hamcrest.CoreMatchers.hasItem;
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertThat;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
@ -96,6 +98,9 @@ public class MvvProviderLiveTest extends AbstractProviderLiveTest
|
|||
@Test
|
||||
public void autocompleteLocal() throws Exception
|
||||
{
|
||||
final List<Location> autocompletesFraunhoferStr = provider.autocompleteStations("fraunhofer");
|
||||
assertThat(autocompletesFraunhoferStr, hasItem(new Location(LocationType.STATION, 1000150)));
|
||||
|
||||
final List<Location> autocompletesHirschgarten = provider.autocompleteStations("Hirschgarten");
|
||||
assertEquals("München", autocompletesHirschgarten.get(0).place);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue