diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-01 10:16:42 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-01 10:16:42 +1300 |
commit | 9034cd07e95320a37a0f788ee6eaa546af5f4df1 (patch) | |
tree | 1e991b7b3682a07d22d9f1e138608024af963e66 /test/org/traccar | |
parent | f16ce106253ce3a857efbe4cd7b65f76c77d6364 (diff) | |
download | traccar-server-9034cd07e95320a37a0f788ee6eaa546af5f4df1.tar.gz traccar-server-9034cd07e95320a37a0f788ee6eaa546af5f4df1.tar.bz2 traccar-server-9034cd07e95320a37a0f788ee6eaa546af5f4df1.zip |
Implemenet future message filtering
Diffstat (limited to 'test/org/traccar')
-rw-r--r-- | test/org/traccar/FilterHandlerTest.java | 9 |
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)); |