aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/geocoder/GeocoderTest.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-01-25 20:14:42 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2018-01-26 08:41:45 +1300
commit87bdccbe9843e38174ad345b8e474b1cded9f985 (patch)
tree4b2f90ad2b9a5d32410ab9579fb4135b5ac95bfa /test/org/traccar/geocoder/GeocoderTest.java
parent8535983fea8c09046c53f2ebf388bbf3fae594ce (diff)
downloadtrackermap-server-87bdccbe9843e38174ad345b8e474b1cded9f985.tar.gz
trackermap-server-87bdccbe9843e38174ad345b8e474b1cded9f985.tar.bz2
trackermap-server-87bdccbe9843e38174ad345b8e474b1cded9f985.zip
Static imports for junit
Diffstat (limited to 'test/org/traccar/geocoder/GeocoderTest.java')
-rw-r--r--test/org/traccar/geocoder/GeocoderTest.java22
1 files changed, 12 insertions, 10 deletions
diff --git a/test/org/traccar/geocoder/GeocoderTest.java b/test/org/traccar/geocoder/GeocoderTest.java
index 7c6208048..3b53495c4 100644
--- a/test/org/traccar/geocoder/GeocoderTest.java
+++ b/test/org/traccar/geocoder/GeocoderTest.java
@@ -6,6 +6,8 @@ import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
+import static org.junit.Assert.assertEquals;
+
public class GeocoderTest {
@Ignore
@@ -44,9 +46,9 @@ public class GeocoderTest {
public void onFailure(final Throwable e) {
}
});
- Assert.assertEquals("1 Ibn Shaprut St, Jerusalem, Jerusalem District, IL", waitAddress());
+ assertEquals("1 Ibn Shaprut St, Jerusalem, Jerusalem District, IL", waitAddress());
- Assert.assertEquals("1 Ibn Shaprut St, Jerusalem, Jerusalem District, IL",
+ assertEquals("1 Ibn Shaprut St, Jerusalem, Jerusalem District, IL",
geocoder.getAddress(31.776797, 35.211489, null));
}
@@ -63,9 +65,9 @@ public class GeocoderTest {
public void onFailure(Throwable e) {
}
});
- Assert.assertEquals("35 West 9th Street, NYC, New York, US", waitAddress());
+ assertEquals("35 West 9th Street, NYC, New York, US", waitAddress());
- Assert.assertEquals("35 West 9th Street, NYC, New York, US",
+ assertEquals("35 West 9th Street, NYC, New York, US",
geocoder.getAddress(40.7337807, -73.9974401, null));
}
@@ -82,9 +84,9 @@ public class GeocoderTest {
public void onFailure(Throwable e) {
}
});
- Assert.assertEquals("Rue du Jardinet, Paris, FR", waitAddress());
+ assertEquals("Rue du Jardinet, Paris, FR", waitAddress());
- Assert.assertEquals("Rue du Jardinet, Paris, FR", geocoder.getAddress(48.8530000, 2.3400000, null));
+ assertEquals("Rue du Jardinet, Paris, FR", geocoder.getAddress(48.8530000, 2.3400000, null));
}
public void testOpenCage() throws InterruptedException {
@@ -101,9 +103,9 @@ public class GeocoderTest {
public void onFailure(Throwable e) {
}
});
- Assert.assertEquals("Charleston Road, California, US", waitAddress());
+ assertEquals("Charleston Road, California, US", waitAddress());
- Assert.assertEquals("Charleston Road, California, US", geocoder.getAddress(34.116302, -118.051519, null));
+ assertEquals("Charleston Road, California, US", geocoder.getAddress(34.116302, -118.051519, null));
}
public void testGeocodeFarm() throws InterruptedException {
@@ -119,9 +121,9 @@ public class GeocoderTest {
public void onFailure(Throwable e) {
}
});
- Assert.assertEquals("Estrella Avenue, Arcadia, California, United States", waitAddress());
+ assertEquals("Estrella Avenue, Arcadia, California, United States", waitAddress());
- Assert.assertEquals("Estrella Avenue, Arcadia, California, United States",
+ assertEquals("Estrella Avenue, Arcadia, California, United States",
geocoder.getAddress(34.116302, -118.051519, null));
}