diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-05-13 11:35:37 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2017-05-13 11:35:37 +1200 |
commit | 668377f71185c44c772ba3690b7c249063ddaafb (patch) | |
tree | 2c0d46b6c739e991c40b855e50909cdd3970d9a4 | |
parent | 17a023a62366ed4b85fd8f0f9cb41d591169c940 (diff) | |
download | traccar-server-668377f71185c44c772ba3690b7c249063ddaafb.tar.gz traccar-server-668377f71185c44c772ba3690b7c249063ddaafb.tar.bz2 traccar-server-668377f71185c44c772ba3690b7c249063ddaafb.zip |
Fix filter unit tests
-rw-r--r-- | src/org/traccar/FilterHandler.java | 8 | ||||
-rw-r--r-- | test/org/traccar/FilterHandlerTest.java | 3 |
2 files changed, 10 insertions, 1 deletions
diff --git a/src/org/traccar/FilterHandler.java b/src/org/traccar/FilterHandler.java index e01ee156f..5e1214aba 100644 --- a/src/org/traccar/FilterHandler.java +++ b/src/org/traccar/FilterHandler.java @@ -44,6 +44,10 @@ public class FilterHandler extends BaseDataHandler { this.filterDuplicate = filterDuplicate; } + public void setFilterFuture(long filterFuture) { + this.filterFuture = filterFuture; + } + public void setFilterApproximate(boolean filterApproximate) { this.filterApproximate = filterApproximate; } @@ -56,6 +60,10 @@ public class FilterHandler extends BaseDataHandler { this.filterDistance = filterDistance; } + public void setFilterMaxSpeed(int filterMaxSpeed) { + this.filterMaxSpeed = filterMaxSpeed; + } + public void setFilterLimit(long filterLimit) { this.filterLimit = filterLimit; } diff --git a/test/org/traccar/FilterHandlerTest.java b/test/org/traccar/FilterHandlerTest.java index 452592048..02023096e 100644 --- a/test/org/traccar/FilterHandlerTest.java +++ b/test/org/traccar/FilterHandlerTest.java @@ -22,11 +22,12 @@ public class FilterHandlerTest extends BaseTest { filtingHandler.setFilterInvalid(true); filtingHandler.setFilterZero(true); filtingHandler.setFilterDuplicate(true); + filtingHandler.setFilterFuture(5 * 60); filtingHandler.setFilterApproximate(true); filtingHandler.setFilterStatic(true); filtingHandler.setFilterDistance(10); + filtingHandler.setFilterMaxSpeed(500); filtingHandler.setFilterLimit(10); - filtingHandler.setFilterFuture(5 * 60); } @After |