diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-07-17 22:41:03 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-07-17 22:41:03 +1200 |
commit | faaf63abdd81d1d4b6e7c7a8ef36e049fdc8000a (patch) | |
tree | 66f1b1522dda364281824be8f35b899b3f36ee16 /test/org/traccar/helper | |
parent | 51d4e557703a0322b983a8b294f2a8c6920718c5 (diff) | |
download | traccar-server-faaf63abdd81d1d4b6e7c7a8ef36e049fdc8000a.tar.gz traccar-server-faaf63abdd81d1d4b6e7c7a8ef36e049fdc8000a.tar.bz2 traccar-server-faaf63abdd81d1d4b6e7c7a8ef36e049fdc8000a.zip |
Finish with GPS103 commands
Diffstat (limited to 'test/org/traccar/helper')
-rw-r--r-- | test/org/traccar/helper/TestIdentityManager.java | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/test/org/traccar/helper/TestIdentityManager.java b/test/org/traccar/helper/TestIdentityManager.java index a4ddeeb09..d279241e4 100644 --- a/test/org/traccar/helper/TestIdentityManager.java +++ b/test/org/traccar/helper/TestIdentityManager.java @@ -4,17 +4,22 @@ import org.traccar.database.IdentityManager; import org.traccar.model.Device; public class TestIdentityManager implements IdentityManager { + + private final Device device; + + public TestIdentityManager() { + device = new Device(); + device.setId(1); + device.setUniqueId("123456789012345"); + } @Override public Device getDeviceById(long id) { - return null; + return device; } @Override public Device getDeviceByUniqueId(String imei) { - Device device = new Device(); - device.setId(new Long(1)); - device.setUniqueId("123456789012345"); return device; } |