diff options
author | Anton Tananaev <anton@traccar.org> | 2023-08-23 21:01:38 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2023-08-23 21:01:38 -0700 |
commit | 9aeedc90da24848ff97227d6f281eb4d1e1506ef (patch) | |
tree | f46e77071587a7c22ffcdfc2337f892128046a18 /src/test/java/org/traccar/handler | |
parent | 50e730c0cbbe253b68a2db0e57920ddc3a1b3814 (diff) | |
download | trackermap-server-9aeedc90da24848ff97227d6f281eb4d1e1506ef.tar.gz trackermap-server-9aeedc90da24848ff97227d6f281eb4d1e1506ef.tar.bz2 trackermap-server-9aeedc90da24848ff97227d6f281eb4d1e1506ef.zip |
Add speed limit multiplier (fix #5161)
Diffstat (limited to 'src/test/java/org/traccar/handler')
-rw-r--r-- | src/test/java/org/traccar/handler/events/OverspeedEventHandlerTest.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/test/java/org/traccar/handler/events/OverspeedEventHandlerTest.java b/src/test/java/org/traccar/handler/events/OverspeedEventHandlerTest.java index 25e9bd265..97d929551 100644 --- a/src/test/java/org/traccar/handler/events/OverspeedEventHandlerTest.java +++ b/src/test/java/org/traccar/handler/events/OverspeedEventHandlerTest.java @@ -35,14 +35,14 @@ public class OverspeedEventHandlerTest extends BaseTest { private void testOverspeedWithPosition(long geofenceId) throws ParseException { OverspeedState state = new OverspeedState(); - OverspeedProcessor.updateState(state, position("2017-01-01 00:00:00", 50), 40, 15000, geofenceId); + OverspeedProcessor.updateState(state, position("2017-01-01 00:00:00", 50), 40, 1, 15000, geofenceId); assertNull(state.getEvent()); verifyState(state, true, geofenceId); - OverspeedProcessor.updateState(state, position("2017-01-01 00:00:10", 55), 40, 15000, geofenceId); + OverspeedProcessor.updateState(state, position("2017-01-01 00:00:10", 55), 40, 1, 15000, geofenceId); assertNull(state.getEvent()); - OverspeedProcessor.updateState(state, position("2017-01-01 00:00:20", 55), 40, 15000, geofenceId); + OverspeedProcessor.updateState(state, position("2017-01-01 00:00:20", 55), 40, 1, 15000, geofenceId); assertNotNull(state.getEvent()); assertEquals(Event.TYPE_DEVICE_OVERSPEED, state.getEvent().getType()); assertEquals(55, state.getEvent().getDouble("speed"), 0.1); @@ -50,11 +50,11 @@ public class OverspeedEventHandlerTest extends BaseTest { assertEquals(geofenceId, state.getEvent().getGeofenceId()); verifyState(state, true, 0); - OverspeedProcessor.updateState(state, position("2017-01-01 00:00:30", 55), 40, 15000, geofenceId); + OverspeedProcessor.updateState(state, position("2017-01-01 00:00:30", 55), 40, 1, 15000, geofenceId); assertNull(state.getEvent()); verifyState(state, true, 0); - OverspeedProcessor.updateState(state, position("2017-01-01 00:00:30", 30), 40, 15000, geofenceId); + OverspeedProcessor.updateState(state, position("2017-01-01 00:00:30", 30), 40, 1, 15000, geofenceId); assertNull(state.getEvent()); verifyState(state, false, 0); } |