diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-05-26 10:02:37 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-05-26 10:02:37 -0700 |
commit | d3e34416e9825833fa1db02112c56981999df039 (patch) | |
tree | d21b4414b532bfc53c9a905f3caa09f70b43b59e /test/org/traccar/location/LocationProviderTest.java | |
parent | ac2405f0d57fac51fe95aa755f90fe82f26f73bc (diff) | |
parent | aa12e5c750e771016545269ffa39409b06b47eee (diff) | |
download | trackermap-server-d3e34416e9825833fa1db02112c56981999df039.tar.gz trackermap-server-d3e34416e9825833fa1db02112c56981999df039.tar.bz2 trackermap-server-d3e34416e9825833fa1db02112c56981999df039.zip |
Merge pull request #1978 from Abyss777/master
Simplification of the models hierarchy
Diffstat (limited to 'test/org/traccar/location/LocationProviderTest.java')
-rw-r--r-- | test/org/traccar/location/LocationProviderTest.java | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/test/org/traccar/location/LocationProviderTest.java b/test/org/traccar/location/LocationProviderTest.java index b7280cfea..910f9e9ea 100644 --- a/test/org/traccar/location/LocationProviderTest.java +++ b/test/org/traccar/location/LocationProviderTest.java @@ -2,12 +2,7 @@ package org.traccar.location; import org.junit.Assert; import org.junit.Test; -import org.traccar.geocode.AddressFormat; -import org.traccar.geocode.GisgraphyReverseGeocoder; -import org.traccar.geocode.GoogleReverseGeocoder; -import org.traccar.geocode.NominatimReverseGeocoder; -import org.traccar.geocode.ReverseGeocoder; -import org.traccar.model.Event; +import org.traccar.model.Position; import java.util.HashMap; import java.util.Map; @@ -27,10 +22,10 @@ public class LocationProviderTest { OpenCellIdLocationProvider locationProvider = new OpenCellIdLocationProvider("fake"); Map<String, Object> attributes = new HashMap<>(); - attributes.put(Event.KEY_MCC, 260); - attributes.put(Event.KEY_MNC, 2); - attributes.put(Event.KEY_LAC, 10250); - attributes.put(Event.KEY_CID, 26511); + attributes.put(Position.KEY_MCC, 260); + attributes.put(Position.KEY_MNC, 2); + attributes.put(Position.KEY_LAC, 10250); + attributes.put(Position.KEY_CID, 26511); locationProvider.getLocation(attributes, new LocationProvider.LocationProviderCallback() { @Override |