fixed umlaut problem with Brandenburg auto-complete

This commit is contained in:
Andreas Schildbach 2012-12-15 11:55:05 +01:00
parent 209bb2b1e3
commit b389b13fac
3 changed files with 16 additions and 2 deletions

View file

@ -22,6 +22,7 @@ import static junit.framework.Assert.assertEquals;
import java.util.Date;
import java.util.List;
import org.junit.Assert;
import org.junit.Test;
import de.schildbach.pte.BvgProvider;
@ -80,6 +81,16 @@ public class BvgProviderLiveTest extends AbstractProviderLiveTest
assertEquals(QueryDeparturesResult.Status.INVALID_STATION, resultPlan.status);
}
@Test
public void autocompleteUmlaut() throws Exception
{
final List<Location> autocompletes = provider.autocompleteStations("Güntzelstr.");
print(autocompletes);
Assert.assertEquals("Güntzelstr. (U)", autocompletes.get(0).name);
}
@Test
public void autocompleteIncomplete() throws Exception
{