From 041c2b897c28dc316e8613c9ea38dee48dd64482 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 24 Feb 2019 18:06:39 -0800 Subject: Refactor motion handler --- test/org/traccar/MotionHandlerTest.java | 21 --------------------- test/org/traccar/handler/MotionHandlerTest.java | 21 +++++++++++++++++++++ 2 files changed, 21 insertions(+), 21 deletions(-) delete mode 100644 test/org/traccar/MotionHandlerTest.java create mode 100644 test/org/traccar/handler/MotionHandlerTest.java (limited to 'test/org/traccar') diff --git a/test/org/traccar/MotionHandlerTest.java b/test/org/traccar/MotionHandlerTest.java deleted file mode 100644 index fc6dce033..000000000 --- a/test/org/traccar/MotionHandlerTest.java +++ /dev/null @@ -1,21 +0,0 @@ -package org.traccar; - -import static org.junit.Assert.assertEquals; - -import org.junit.Test; -import org.traccar.model.Position; - -public class MotionHandlerTest { - - @Test - public void testCalculateMotion() throws Exception { - - MotionHandler motionHandler = new MotionHandler(0.01); - - Position position = motionHandler.handlePosition(new Position()); - - assertEquals(false, position.getAttributes().get(Position.KEY_MOTION)); - - } - -} diff --git a/test/org/traccar/handler/MotionHandlerTest.java b/test/org/traccar/handler/MotionHandlerTest.java new file mode 100644 index 000000000..9e0859664 --- /dev/null +++ b/test/org/traccar/handler/MotionHandlerTest.java @@ -0,0 +1,21 @@ +package org.traccar.handler; + +import static org.junit.Assert.assertEquals; + +import org.junit.Test; +import org.traccar.model.Position; + +public class MotionHandlerTest { + + @Test + public void testCalculateMotion() { + + MotionHandler motionHandler = new MotionHandler(0.01); + + Position position = motionHandler.handlePosition(new Position()); + + assertEquals(false, position.getAttributes().get(Position.KEY_MOTION)); + + } + +} -- cgit v1.2.3