aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol/AnytrekProtocolDecoderTest.java
blob: dbb4d46d6738b18b95b70499fd3466d3984ed43a (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.protocol;

import org.junit.Test;
import org.traccar.ProtocolTest;

public class AnytrekProtocolDecoderTest extends ProtocolTest {

    @Test
    public void testDecode() throws Exception {

        AnytrekProtocolDecoder decoder = new AnytrekProtocolDecoder(new AnytrekProtocol());

        verifyPosition(decoder, binary(
                "78783500300086428703204121160085015111050C0A0D20C6FD24A102FF8EAC0C01001404000000FFFFFFFF131702210000000000000000000D0A"));

        verifyPosition(decoder, binary(
                "787835003000867279033457792c009801001209080a3408c81b2a7d0305b88b0c00001ccb0000000f00000002b90174f30b000000000000000d0a"));

    }

}