aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol/TelikProtocolDecoderTest.java
blob: 180ab1b3d956ca6cea63d6244b0732cc0194bc15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package org.traccar.protocol;

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

public class TelikProtocolDecoderTest extends ProtocolTest {

    @Test
    public void testDecode() throws Exception {

        TelikProtocolDecoder decoder = new TelikProtocolDecoder(new TelikProtocol());

        verifyNothing(decoder, text(
                "0026436729|232|01|003002030"));

        verifyPosition(decoder, text(
                "182043672999,010100001301,0,270613041652,166653,475341,3,0,355,6,2,1,231,8112432,23201,01,00,217,0,0,0,0,7"),
                position("2013-06-27 04:16:52.000", true, 47.53410, 16.66530));

        verifyPosition(decoder, text(
                "182043672999,010100001301,0,270613041652,166653,475341,3,0,355,6,2,1,231,8112432,23201,01,00,217,0,0,0,0,7"));

    }

}