aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/MotionHandlerTest.java
blob: fc6dce033cd4f22c3abfb6813d4db1a1c29dc134 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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));

    }

}