aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/helper
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-07-17 22:51:09 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-07-17 22:51:09 +1200
commit466e704934894ed44458bec798fa9fad0532bb4c (patch)
treeeaf48175234c9d4d1b0456a542887a90c1377d00 /test/org/traccar/helper
parent6bfaa4bdedcf6719de75afa905a309296aa1bd9d (diff)
parentff640cf8eb19cfeb3c8475ffd9b0aeccbd769f96 (diff)
downloadtrackermap-server-466e704934894ed44458bec798fa9fad0532bb4c.tar.gz
trackermap-server-466e704934894ed44458bec798fa9fad0532bb4c.tar.bz2
trackermap-server-466e704934894ed44458bec798fa9fad0532bb4c.zip
Merge commands implementation (fix #7)
Diffstat (limited to 'test/org/traccar/helper')
-rw-r--r--test/org/traccar/helper/TestIdentityManager.java13
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;
}