aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/helper/TestDataManager.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/org/traccar/helper/TestDataManager.java')
-rw-r--r--test/org/traccar/helper/TestDataManager.java28
1 files changed, 28 insertions, 0 deletions
diff --git a/test/org/traccar/helper/TestDataManager.java b/test/org/traccar/helper/TestDataManager.java
new file mode 100644
index 000000000..8503791e7
--- /dev/null
+++ b/test/org/traccar/helper/TestDataManager.java
@@ -0,0 +1,28 @@
+package org.traccar.helper;
+
+import java.util.List;
+import org.traccar.model.DataManager;
+import org.traccar.model.Device;
+import org.traccar.model.Position;
+
+public class TestDataManager implements DataManager {
+
+ @Override
+ public List getDevices() {
+ return null;
+ }
+ @Override
+ public Device getDeviceByImei(String imei) {
+ Device device = new Device();
+ device.setId(new Long(1));
+ device.setImei("123456789012345");
+ return device;
+ }
+ @Override
+ public Long addPosition(Position position) {
+ return null;
+ }
+ @Override
+ public void updateLatestPosition(Long deviceId, Long positionId) throws Exception {
+ }
+}