aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar
diff options
context:
space:
mode:
Diffstat (limited to 'test/org/traccar')
-rw-r--r--test/org/traccar/FilterHandlerTest.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/test/org/traccar/FilterHandlerTest.java b/test/org/traccar/FilterHandlerTest.java
index ee5ddd396..f860c489f 100644
--- a/test/org/traccar/FilterHandlerTest.java
+++ b/test/org/traccar/FilterHandlerTest.java
@@ -15,8 +15,8 @@ public class FilterHandlerTest {
@Before
public void setUp() {
- filtingHandler = new FilterHandler(true, true, true, 10, 10);
- passingHandler = new FilterHandler(false, false, false, 0, 0);
+ filtingHandler = new FilterHandler(true, true, true, true, 10, 10);
+ passingHandler = new FilterHandler(false, false, false, false, 0, 0);
}
@After
@@ -55,6 +55,11 @@ public class FilterHandlerTest {
assertNotNull(filtingHandler.decode(null, null, position));
assertNotNull(passingHandler.decode(null, null, position));
+ position = createPosition(0, new Date(Long.MAX_VALUE), true, 10, 10, 10, 10, 10);
+
+ assertNull(filtingHandler.decode(null, null, position));
+ assertNotNull(passingHandler.decode(null, null, position));
+
position = createPosition(0, new Date(), false, 10, 10, 10, 10, 10);
assertNull(filtingHandler.decode(null, null, position));