diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-01-04 02:13:15 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2017-01-04 01:13:15 +1300 |
commit | b579253139b5a2a21c9daafa411e78b6c4a5a852 (patch) | |
tree | c93f250a66ac48c36c6230cbca3608922ccd9415 /test/org/traccar | |
parent | 7bd6551a2f5712d63bea7e8711944fbeb78323c8 (diff) | |
download | trackermap-server-b579253139b5a2a21c9daafa411e78b6c4a5a852.tar.gz trackermap-server-b579253139b5a2a21c9daafa411e78b6c4a5a852.tar.bz2 trackermap-server-b579253139b5a2a21c9daafa411e78b6c4a5a852.zip |
Provide default radio type
Diffstat (limited to 'test/org/traccar')
-rw-r--r-- | test/org/traccar/geolocation/GeolocationProviderTest.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/org/traccar/geolocation/GeolocationProviderTest.java b/test/org/traccar/geolocation/GeolocationProviderTest.java index adfd36b96..5a701d859 100644 --- a/test/org/traccar/geolocation/GeolocationProviderTest.java +++ b/test/org/traccar/geolocation/GeolocationProviderTest.java @@ -13,16 +13,16 @@ public class GeolocationProviderTest extends BaseTest { @Test public void test() throws Exception { if (enable) { - testGoogleLocationProvider(); + testLocationProvider(); } } - public void testGoogleLocationProvider() throws Exception { - GoogleGeolocationProvider locationProvider = new GoogleGeolocationProvider("KEY"); + public void testLocationProvider() throws Exception { + MozillaGeolocationProvider provider = new MozillaGeolocationProvider(); - Network network = new Network(CellTower.from(260, 2, 10250, 26511)); + Network network = new Network(CellTower.from(208, 1, 2, 1234567)); - locationProvider.getLocation(network, new GeolocationProvider.LocationProviderCallback() { + provider.getLocation(network, new GeolocationProvider.LocationProviderCallback() { @Override public void onSuccess(double latitude, double longitude, double accuracy) { Assert.assertEquals(60.07254, latitude, 0.00001); |