aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/helper/TestIdentityManager.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-07-05 11:59:04 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-07-05 11:59:04 +1200
commitb1b22e5339d53f8b6eadb190432f4761f0380ff7 (patch)
tree06cfd5dd52ed59d89346341cad4b6fd21e37d7ec /test/org/traccar/helper/TestIdentityManager.java
parentccd93309bdcd282abb14e68b462c97960ccf2f96 (diff)
downloadtrackermap-server-b1b22e5339d53f8b6eadb190432f4761f0380ff7.tar.gz
trackermap-server-b1b22e5339d53f8b6eadb190432f4761f0380ff7.tar.bz2
trackermap-server-b1b22e5339d53f8b6eadb190432f4761f0380ff7.zip
Separate identity manager interface
Diffstat (limited to 'test/org/traccar/helper/TestIdentityManager.java')
-rw-r--r--test/org/traccar/helper/TestIdentityManager.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/org/traccar/helper/TestIdentityManager.java b/test/org/traccar/helper/TestIdentityManager.java
new file mode 100644
index 000000000..0cc1e786c
--- /dev/null
+++ b/test/org/traccar/helper/TestIdentityManager.java
@@ -0,0 +1,16 @@
+package org.traccar.helper;
+
+import org.traccar.database.IdentityManager;
+import org.traccar.model.Device;
+
+public class TestIdentityManager implements IdentityManager {
+
+ @Override
+ public Device getDeviceByUniqueId(String imei) {
+ Device device = new Device();
+ device.setId(new Long(1));
+ device.setUniqueId("123456789012345");
+ return device;
+ }
+
+}