diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2014-10-09 13:24:47 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2014-10-09 13:24:47 +1300 |
commit | 4f5f815f88e81000510ef2544e3e392fd7465d8e (patch) | |
tree | 3e36831dacd62eb36242973517ff41fa069b272a /test/org/traccar | |
parent | 21d69f45cd5badf52e175fc234c5c7bd3c2aeb35 (diff) | |
download | trackermap-server-4f5f815f88e81000510ef2544e3e392fd7465d8e.tar.gz trackermap-server-4f5f815f88e81000510ef2544e3e392fd7465d8e.tar.bz2 trackermap-server-4f5f815f88e81000510ef2544e3e392fd7465d8e.zip |
Integrate c3p0 database library
Diffstat (limited to 'test/org/traccar')
-rw-r--r-- | test/org/traccar/helper/TestDataManager.java | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/test/org/traccar/helper/TestDataManager.java b/test/org/traccar/helper/TestDataManager.java index 9e8147b05..a54c1f7a3 100644 --- a/test/org/traccar/helper/TestDataManager.java +++ b/test/org/traccar/helper/TestDataManager.java @@ -1,16 +1,16 @@ package org.traccar.helper; import java.util.List; -import org.traccar.model.DataManager; +import org.traccar.database.DataManager; import org.traccar.model.Device; import org.traccar.model.Position; -public class TestDataManager implements DataManager { +public class TestDataManager extends DataManager { - @Override - public List getDevices() { - return null; + public TestDataManager() throws Exception { + super(null); } + @Override public Device getDeviceByImei(String imei) { Device device = new Device(); @@ -18,11 +18,5 @@ public class TestDataManager implements DataManager { device.setImei("123456789012345"); return device; } - @Override - public Long addPosition(Position position) { - return null; - } - @Override - public void updateLatestPosition(Position position, Long positionId) throws Exception { - } + } |