aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-08-29 17:11:18 +1200
committerGitHub <noreply@github.com>2017-08-29 17:11:18 +1200
commit6285adfbc85ada862b4d2d3f8a0621a2f32cb29f (patch)
tree0bef7dace465adfaf7016f5cf4484c5805cb42b8 /test/org/traccar
parentff949b7ee233cd343f1fb5bb5ef7db7f24991df0 (diff)
parente1925a35ce309a3cf99c47c8cea599cd53d22b5c (diff)
downloadtrackermap-server-6285adfbc85ada862b4d2d3f8a0621a2f32cb29f.tar.gz
trackermap-server-6285adfbc85ada862b4d2d3f8a0621a2f32cb29f.tar.bz2
trackermap-server-6285adfbc85ada862b4d2d3f8a0621a2f32cb29f.zip
Merge pull request #3484 from Abyss777/not_filter_alarms
Do not filter alarms
Diffstat (limited to 'test/org/traccar')
-rw-r--r--test/org/traccar/FilterHandlerTest.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/org/traccar/FilterHandlerTest.java b/test/org/traccar/FilterHandlerTest.java
index 02023096e..e91566635 100644
--- a/test/org/traccar/FilterHandlerTest.java
+++ b/test/org/traccar/FilterHandlerTest.java
@@ -27,7 +27,7 @@ public class FilterHandlerTest extends BaseTest {
filtingHandler.setFilterStatic(true);
filtingHandler.setFilterDistance(10);
filtingHandler.setFilterMaxSpeed(500);
- filtingHandler.setFilterLimit(10);
+ filtingHandler.setSkipLimit(10);
}
@After
@@ -75,6 +75,10 @@ public class FilterHandlerTest extends BaseTest {
assertNull(filtingHandler.decode(null, null, position));
assertNotNull(passingHandler.decode(null, null, position));
+
+ position.set(Position.KEY_ALARM, Position.ALARM_GENERAL);
+ filtingHandler.setSkipAlarms(true);
+ assertNotNull(filtingHandler.decode(null, null, position));
}
}