aboutsummaryrefslogtreecommitdiff
path: root/test/org
diff options
context:
space:
mode:
authorJed <Jed@192.168.1.100>2014-09-08 19:14:20 +0800
committerJed <Jed@192.168.1.100>2014-09-08 19:14:20 +0800
commit6a26740a4e74b2a627ad2de4b764a0c7dfdf6ca2 (patch)
treefa42ea40d2330d5ff0ba2acc2d1657655accf4b8 /test/org
parent9bad8efca5f64b60d5525b3858f42ac6cd6be272 (diff)
downloadtrackermap-server-6a26740a4e74b2a627ad2de4b764a0c7dfdf6ca2.tar.gz
trackermap-server-6a26740a4e74b2a627ad2de4b764a0c7dfdf6ca2.tar.bz2
trackermap-server-6a26740a4e74b2a627ad2de4b764a0c7dfdf6ca2.zip
Updated TrackerEventHandler to only trigger UpdateLatestPosition on the last record processed and pass the position object to the function
Added database property to Device class Updated DatabaseDataManager to allow the use of placeholder _database_ in queries
Diffstat (limited to 'test/org')
-rw-r--r--test/org/traccar/helper/TestDataManager.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/org/traccar/helper/TestDataManager.java b/test/org/traccar/helper/TestDataManager.java
index 8503791e7..000b7196d 100644
--- a/test/org/traccar/helper/TestDataManager.java
+++ b/test/org/traccar/helper/TestDataManager.java
@@ -19,10 +19,17 @@ public class TestDataManager implements DataManager {
return device;
}
@Override
+ public Device getDeviceById(Long id) {
+ 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 {
+ public void updateLatestPosition(Position position, Long positionId) throws Exception {
}
}