From 6a26740a4e74b2a627ad2de4b764a0c7dfdf6ca2 Mon Sep 17 00:00:00 2001 From: Jed Date: Mon, 8 Sep 2014 19:14:20 +0800 Subject: 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 --- test/org/traccar/helper/TestDataManager.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'test/org/traccar/helper') 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 { } } -- cgit v1.2.3