aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2012-05-06 09:00:41 +0000
committerAnton Tananaev <anton.tananaev@gmail.com>2012-05-06 09:00:41 +0000
commit51afca3c5f453601e849ebd4156be1f65adc1777 (patch)
tree4384e76ef776350bec570b726ed9aaf5239fef82 /test/org/traccar
parent131152712d834b39f44ae94ab5d2db04520d3125 (diff)
downloadtrackermap-server-51afca3c5f453601e849ebd4156be1f65adc1777.tar.gz
trackermap-server-51afca3c5f453601e849ebd4156be1f65adc1777.tar.bz2
trackermap-server-51afca3c5f453601e849ebd4156be1f65adc1777.zip
Diffstat (limited to 'test/org/traccar')
-rw-r--r--test/org/traccar/protocol/TestDataManager.java23
1 files changed, 23 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/TestDataManager.java b/test/org/traccar/protocol/TestDataManager.java
new file mode 100644
index 000000000..d825487c7
--- /dev/null
+++ b/test/org/traccar/protocol/TestDataManager.java
@@ -0,0 +1,23 @@
+package org.traccar.protocol;
+
+import java.util.List;
+import org.traccar.model.DataManager;
+import org.traccar.model.Device;
+import org.traccar.model.Position;
+
+public class TestDataManager implements DataManager {
+
+ public List getDevices() { return null; }
+ public void addDevice(Device device) {}
+ public void updateDevice(Device device) {}
+ public void removeDevice(Device device) {}
+ public Device getDeviceByImei(String imei) {
+ Device device = new Device();
+ device.setId(new Long(1));
+ device.setImei("123456789012345");
+ return device;
+ }
+ public List getPositions(Long deviceId) { return null; }
+ public void addPosition(Position position) {}
+
+}