aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-12-20 17:36:22 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-12-20 17:36:22 +1300
commit22fdf5388719120b84ce981807d17d68e87a0c07 (patch)
tree099c87779c85ade323604e0f57b76f99331acf14 /test/org/traccar
parent0a8d47bec2a232aad6353d34a101eb82c9d4f7ae (diff)
downloadtrackermap-server-22fdf5388719120b84ce981807d17d68e87a0c07.tar.gz
trackermap-server-22fdf5388719120b84ce981807d17d68e87a0c07.tar.bz2
trackermap-server-22fdf5388719120b84ce981807d17d68e87a0c07.zip
Fix location provider result decoding
Diffstat (limited to 'test/org/traccar')
-rw-r--r--test/org/traccar/location/LocationProviderTest.java18
1 files changed, 5 insertions, 13 deletions
diff --git a/test/org/traccar/location/LocationProviderTest.java b/test/org/traccar/location/LocationProviderTest.java
index 9c6000121..aec210c84 100644
--- a/test/org/traccar/location/LocationProviderTest.java
+++ b/test/org/traccar/location/LocationProviderTest.java
@@ -5,24 +5,20 @@ import org.junit.Test;
import org.traccar.BaseTest;
import org.traccar.model.CellTower;
import org.traccar.model.Network;
-import org.traccar.model.Position;
-
-import java.util.HashMap;
-import java.util.Map;
public class LocationProviderTest extends BaseTest {
private boolean enable = false;
@Test
- public void test() {
+ public void test() throws Exception {
if (enable) {
- testMozilla();
+ testGoogleLocationProvider();
}
}
- public void testMozilla() {
- MozillaLocationProvider locationProvider = new MozillaLocationProvider();
+ public void testGoogleLocationProvider() throws Exception {
+ GoogleLocationProvider locationProvider = new GoogleLocationProvider("KEY");
Network network = new Network(CellTower.from(260, 2, 10250, 26511));
@@ -39,11 +35,7 @@ public class LocationProviderTest extends BaseTest {
}
});
- try {
- Thread.sleep(10000);
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
+ Thread.sleep(Long.MAX_VALUE);
}
}