diff options
author | Samuel Tardieu <sam@rfc1149.net> | 2015-02-10 12:06:42 +0100 |
---|---|---|
committer | Samuel Tardieu <sam@rfc1149.net> | 2015-02-10 12:07:20 +0100 |
commit | cb1ac101d464d689beb9fd3b69171d6e63632950 (patch) | |
tree | 92ad2185a873e15e436db8e48cf9b6f3b390a3a7 | |
parent | 87c8ffb893db33d7be6330d61a1a1acdc3bbfd71 (diff) | |
download | cgeo-cb1ac101d464d689beb9fd3b69171d6e63632950.zip cgeo-cb1ac101d464d689beb9fd3b69171d6e63632950.tar.gz cgeo-cb1ac101d464d689beb9fd3b69171d6e63632950.tar.bz2 |
Make Android geocoder test a bit more robust
Related to #4627.
-rw-r--r-- | tests/src/cgeo/geocaching/location/GeocoderTest.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/src/cgeo/geocaching/location/GeocoderTest.java b/tests/src/cgeo/geocaching/location/GeocoderTest.java index 51a8bc8..b7f10a3 100644 --- a/tests/src/cgeo/geocaching/location/GeocoderTest.java +++ b/tests/src/cgeo/geocaching/location/GeocoderTest.java @@ -61,7 +61,7 @@ public class GeocoderTest extends CGeoTestCase { assertThat(address.getLatitude()).as(describe("latitude", geocoder)).isCloseTo(TEST_LATITUDE, TEST_OFFSET); assertThat(address.getLongitude()).as(describe("longitude", geocoder)).isCloseTo(TEST_LONGITUDE, TEST_OFFSET); if (withAddress) { - assertThat(StringUtils.lowerCase(address.getAddressLine(0))).as(describe("street address", geocoder)).contains("rue barrault"); + assertThat(StringUtils.lowerCase(address.getAddressLine(0))).as(describe("street address", geocoder)).contains("barrault"); assertThat(address.getLocality()).as(describe("locality", geocoder)).isEqualTo("Paris"); assertThat(address.getCountryCode()).as(describe("country code", geocoder)).isEqualTo("FR"); // don't assert on country name, as this can be localized, e.g. with the mapquest geocoder |