diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-07-05 11:59:04 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-07-05 11:59:04 +1200 |
commit | b1b22e5339d53f8b6eadb190432f4761f0380ff7 (patch) | |
tree | 06cfd5dd52ed59d89346341cad4b6fd21e37d7ec /test/org/traccar/helper/TestIdentityManager.java | |
parent | ccd93309bdcd282abb14e68b462c97960ccf2f96 (diff) | |
download | trackermap-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.java | 16 |
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; + } + +} |