From 5449930102d9a1dc6ef6bb09f6bcbdcb2f8bf150 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 3 Oct 2018 12:09:10 +1300 Subject: Fix geocoder issue (#4073) --- test/org/traccar/FilterHandlerTest.java | 6 +----- test/org/traccar/geocoder/GeocoderTest.java | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'test/org/traccar') diff --git a/test/org/traccar/FilterHandlerTest.java b/test/org/traccar/FilterHandlerTest.java index a8fa14fac..818583eb7 100644 --- a/test/org/traccar/FilterHandlerTest.java +++ b/test/org/traccar/FilterHandlerTest.java @@ -10,11 +10,7 @@ import java.util.Date; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; -public class FilterHandlerTest { - - static { - Context.init(new TestIdentityManager()); - } +public class FilterHandlerTest extends BaseTest { private FilterHandler filtingHandler; private FilterHandler passingHandler; diff --git a/test/org/traccar/geocoder/GeocoderTest.java b/test/org/traccar/geocoder/GeocoderTest.java index 7b3c6662c..167b71bc2 100644 --- a/test/org/traccar/geocoder/GeocoderTest.java +++ b/test/org/traccar/geocoder/GeocoderTest.java @@ -13,7 +13,7 @@ public class GeocoderTest { @Test public void test() throws InterruptedException { Locale.setDefault(Locale.US); - testGoogle(); + testBan(); } private String address; -- cgit v1.2.3