diff options
Diffstat (limited to 'test/org/traccar')
-rw-r--r-- | test/org/traccar/geocode/ReverseGeocoderTest.java | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/test/org/traccar/geocode/ReverseGeocoderTest.java b/test/org/traccar/geocode/ReverseGeocoderTest.java index ada0afbbe..2b0c30779 100644 --- a/test/org/traccar/geocode/ReverseGeocoderTest.java +++ b/test/org/traccar/geocode/ReverseGeocoderTest.java @@ -10,7 +10,7 @@ public class ReverseGeocoderTest { @Test public void test() throws InterruptedException { if (enable) { - testGoogle(); + testGeocodeFarm(); } } @@ -79,4 +79,16 @@ public class ReverseGeocoderTest { Assert.assertEquals("Charleston Road, California, US", waitAddress()); } + public void testGeocodeFarm() throws InterruptedException { + ReverseGeocoder reverseGeocoder = new GeocodeFarmReverseGeocoder(0); + + reverseGeocoder.getAddress(new AddressFormat(), 34.116302, -118.051519, new ReverseGeocoder.ReverseGeocoderCallback() { + @Override + public void onResult(String address) { + setAddress(address); + } + }); + Assert.assertEquals("Estrella Avenue, Arcadia, California, United States", waitAddress()); + } + } |