aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2014-09-03 00:09:42 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2014-09-03 00:09:42 +1200
commit66b62de750e75e1081ac8eeccca17f11b297d01a (patch)
tree080e3748138f31e5dd8ab9fba6a61993256acb27 /test/org/traccar
parent1f56f881365fbe31736c26c3b5ba848c2fda4f64 (diff)
downloadtrackermap-server-66b62de750e75e1081ac8eeccca17f11b297d01a.tar.gz
trackermap-server-66b62de750e75e1081ac8eeccca17f11b297d01a.tar.bz2
trackermap-server-66b62de750e75e1081ac8eeccca17f11b297d01a.zip
Implement position filtering (fix #259)
Diffstat (limited to 'test/org/traccar')
-rw-r--r--test/org/traccar/helper/DIstanceCalculatorTest.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/org/traccar/helper/DIstanceCalculatorTest.java b/test/org/traccar/helper/DIstanceCalculatorTest.java
new file mode 100644
index 000000000..293cbb114
--- /dev/null
+++ b/test/org/traccar/helper/DIstanceCalculatorTest.java
@@ -0,0 +1,14 @@
+package org.traccar.helper;
+
+import org.junit.Assert;
+import org.junit.Test;
+
+public class DIstanceCalculatorTest {
+
+ @Test
+ public void testDistance() {
+ Assert.assertEquals(
+ DistanceCalculator.distance(0.0, 0.0, 0.05, 0.05), 7863.0, 10.0);
+ }
+
+}