diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-08-16 23:14:36 +1200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-16 23:14:36 +1200 |
commit | e8739edc4e2b3a945c2b0eeec6286f7ef59037cf (patch) | |
tree | 4f804a49c612c38f73fab724e1ce982261238e78 /test/org/traccar/events/MotionEventHandlerTest.java | |
parent | 7820541530ea9891c001cbd8c53cc6340380a077 (diff) | |
parent | 5d3eb5136b96c8667021ef4d9452b4008ff40e42 (diff) | |
download | trackermap-server-e8739edc4e2b3a945c2b0eeec6286f7ef59037cf.tar.gz trackermap-server-e8739edc4e2b3a945c2b0eeec6286f7ef59037cf.tar.bz2 trackermap-server-e8739edc4e2b3a945c2b0eeec6286f7ef59037cf.zip |
Merge pull request #3447 from Abyss777/new_trips_detector
Reimplement trips detector using MotionEventHandler
Diffstat (limited to 'test/org/traccar/events/MotionEventHandlerTest.java')
-rw-r--r-- | test/org/traccar/events/MotionEventHandlerTest.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/org/traccar/events/MotionEventHandlerTest.java b/test/org/traccar/events/MotionEventHandlerTest.java index 826f4c4e5..902be8b87 100644 --- a/test/org/traccar/events/MotionEventHandlerTest.java +++ b/test/org/traccar/events/MotionEventHandlerTest.java @@ -30,7 +30,7 @@ public class MotionEventHandlerTest extends BaseTest { @Test public void testMotionWithPosition() throws Exception { MotionEventHandler motionEventHandler = new MotionEventHandler( - new TripsConfig(500, 300 * 1000, 300 * 1000, false, 0, false)); + new TripsConfig(500, 300 * 1000, 300 * 1000, 0, false)); Position position = new Position(); position.setTime(date("2017-01-01 00:00:00")); @@ -69,7 +69,7 @@ public class MotionEventHandlerTest extends BaseTest { @Test public void testMotionWithStatus() throws Exception { MotionEventHandler motionEventHandler = new MotionEventHandler( - new TripsConfig(500, 300 * 1000, 300 * 1000, false, 0, false)); + new TripsConfig(500, 300 * 1000, 300 * 1000, 0, false)); Position position = new Position(); position.setTime(new Date(System.currentTimeMillis() - 360000)); @@ -89,7 +89,7 @@ public class MotionEventHandlerTest extends BaseTest { @Test public void testStopWithPositionIgnition() throws Exception { MotionEventHandler motionEventHandler = new MotionEventHandler( - new TripsConfig(500, 300 * 1000, 300 * 1000, false, 0, true)); + new TripsConfig(500, 300 * 1000, 300 * 1000, 0, true)); Position position = new Position(); position.setTime(date("2017-01-01 00:00:00")); |