From 51afca3c5f453601e849ebd4156be1f65adc1777 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 6 May 2012 09:00:41 +0000 Subject: --- test/org/traccar/protocol/TestDataManager.java | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 test/org/traccar/protocol/TestDataManager.java diff --git a/test/org/traccar/protocol/TestDataManager.java b/test/org/traccar/protocol/TestDataManager.java new file mode 100644 index 000000000..d825487c7 --- /dev/null +++ b/test/org/traccar/protocol/TestDataManager.java @@ -0,0 +1,23 @@ +package org.traccar.protocol; + +import java.util.List; +import org.traccar.model.DataManager; +import org.traccar.model.Device; +import org.traccar.model.Position; + +public class TestDataManager implements DataManager { + + public List getDevices() { return null; } + public void addDevice(Device device) {} + public void updateDevice(Device device) {} + public void removeDevice(Device device) {} + public Device getDeviceByImei(String imei) { + Device device = new Device(); + device.setId(new Long(1)); + device.setImei("123456789012345"); + return device; + } + public List getPositions(Long deviceId) { return null; } + public void addPosition(Position position) {} + +} -- cgit v1.2.3