aboutsummaryrefslogtreecommitdiff
path: root/test/org
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-08-28 16:59:18 +0500
committerAbyss777 <abyss@fox5.ru>2017-08-28 17:16:00 +0500
commit8d489fd4290bd93b394f0066983611f25e2e103b (patch)
tree1a88091185128dd1f2769d54f0036937ee97d9ed /test/org
parent879a25f09033068eb8cb174c1cb3150df594f2e4 (diff)
downloadtrackermap-server-8d489fd4290bd93b394f0066983611f25e2e103b.tar.gz
trackermap-server-8d489fd4290bd93b394f0066983611f25e2e103b.tar.bz2
trackermap-server-8d489fd4290bd93b394f0066983611f25e2e103b.zip
- Do not filter alarms
- Fix division
Diffstat (limited to 'test/org')
-rw-r--r--test/org/traccar/FilterHandlerTest.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/org/traccar/FilterHandlerTest.java b/test/org/traccar/FilterHandlerTest.java
index 02023096e..86b84f91f 100644
--- a/test/org/traccar/FilterHandlerTest.java
+++ b/test/org/traccar/FilterHandlerTest.java
@@ -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.setAllowAlarms(true);
+ assertNotNull(filtingHandler.decode(null, null, position));
}
}