aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar
diff options
context:
space:
mode:
Diffstat (limited to 'test/org/traccar')
-rw-r--r--test/org/traccar/handler/DistanceHandlerTest.java (renamed from test/org/traccar/DistanceHandlerTest.java)7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/org/traccar/DistanceHandlerTest.java b/test/org/traccar/handler/DistanceHandlerTest.java
index c97135074..f7c6e42cd 100644
--- a/test/org/traccar/DistanceHandlerTest.java
+++ b/test/org/traccar/handler/DistanceHandlerTest.java
@@ -1,6 +1,7 @@
-package org.traccar;
+package org.traccar.handler;
import org.junit.Test;
+import org.traccar.config.Config;
import org.traccar.model.Position;
import static org.junit.Assert.assertEquals;
@@ -8,9 +9,9 @@ import static org.junit.Assert.assertEquals;
public class DistanceHandlerTest {
@Test
- public void testCalculateDistance() throws Exception {
+ public void testCalculateDistance() {
- DistanceHandler distanceHandler = new DistanceHandler(false, 0, 0);
+ DistanceHandler distanceHandler = new DistanceHandler(new Config(), null);
Position position = distanceHandler.handlePosition(new Position());