diff options
author | Bananeweizen <bananeweizen@gmx.de> | 2015-01-11 16:20:59 +0100 |
---|---|---|
committer | Bananeweizen <bananeweizen@gmx.de> | 2015-01-11 16:20:59 +0100 |
commit | 9fd022bd9c1651561311a964c7774f94d104d846 (patch) | |
tree | beddcc64a11192d747a26bb3e7c25e4b3e3e6432 /tests | |
parent | cace9454e6d0f5eb753124bb874d122a2b2cc02c (diff) | |
download | cgeo-9fd022bd9c1651561311a964c7774f94d104d846.zip cgeo-9fd022bd9c1651561311a964c7774f94d104d846.tar.gz cgeo-9fd022bd9c1651561311a964c7774f94d104d846.tar.bz2 |
avoid locale dependency in GeocoderTest
Diffstat (limited to 'tests')
-rw-r--r-- | tests/src/cgeo/geocaching/location/GeocoderTest.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/src/cgeo/geocaching/location/GeocoderTest.java b/tests/src/cgeo/geocaching/location/GeocoderTest.java index 0cc1a79..937c75d 100644 --- a/tests/src/cgeo/geocaching/location/GeocoderTest.java +++ b/tests/src/cgeo/geocaching/location/GeocoderTest.java @@ -49,7 +49,8 @@ public class GeocoderTest extends CGeoTestCase { if (withAddress) { assertThat(StringUtils.lowerCase(address.getAddressLine(0))).as(describe("street address", geocoder)).startsWith("46 rue barrault"); assertThat(address.getLocality()).as(describe("locality", geocoder)).isEqualTo("Paris"); - assertThat(address.getCountryName()).as(describe("country name", geocoder)).isEqualTo("France"); + 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 } } |