aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/events/MotionEventHandlerTest.java
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-09-21 10:53:55 +0500
committerAbyss777 <abyss@fox5.ru>2017-09-21 10:53:55 +0500
commit6aaa8dd3b3ffff7927325616efb9b9bdd8228a67 (patch)
treecaf0bc9b04df133a9751df5bc3996acb2f400db2 /test/org/traccar/events/MotionEventHandlerTest.java
parent06bdcf65a08b233f6c56ddf4774287c0c0232597 (diff)
downloadtrackermap-server-6aaa8dd3b3ffff7927325616efb9b9bdd8228a67.tar.gz
trackermap-server-6aaa8dd3b3ffff7927325616efb9b9bdd8228a67.tar.bz2
trackermap-server-6aaa8dd3b3ffff7927325616efb9b9bdd8228a67.zip
Make check for valid in MotionEventHandler optional
Diffstat (limited to 'test/org/traccar/events/MotionEventHandlerTest.java')
-rw-r--r--test/org/traccar/events/MotionEventHandlerTest.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/org/traccar/events/MotionEventHandlerTest.java b/test/org/traccar/events/MotionEventHandlerTest.java
index b88328e58..a2e5cf651 100644
--- a/test/org/traccar/events/MotionEventHandlerTest.java
+++ b/test/org/traccar/events/MotionEventHandlerTest.java
@@ -31,7 +31,7 @@ public class MotionEventHandlerTest extends BaseTest {
@Test
public void testMotionWithPosition() throws Exception {
MotionEventHandler motionEventHandler = new MotionEventHandler(
- new TripsConfig(500, 300 * 1000, 300 * 1000, 0, false));
+ new TripsConfig(500, 300 * 1000, 300 * 1000, 0, false, false));
Position position = new Position();
position.setTime(date("2017-01-01 00:00:00"));
@@ -72,7 +72,7 @@ public class MotionEventHandlerTest extends BaseTest {
@Test
public void testMotionWithStatus() throws Exception {
MotionEventHandler motionEventHandler = new MotionEventHandler(
- new TripsConfig(500, 300 * 1000, 300 * 1000, 0, false));
+ new TripsConfig(500, 300 * 1000, 300 * 1000, 0, false, false));
Position position = new Position();
position.setTime(new Date(System.currentTimeMillis() - 360000));
@@ -93,7 +93,7 @@ public class MotionEventHandlerTest extends BaseTest {
@Test
public void testStopWithPositionIgnition() throws Exception {
MotionEventHandler motionEventHandler = new MotionEventHandler(
- new TripsConfig(500, 300 * 1000, 300 * 1000, 0, true));
+ new TripsConfig(500, 300 * 1000, 300 * 1000, 0, true, false));
Position position = new Position();
position.setTime(date("2017-01-01 00:00:00"));