aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol/KenjiProtocolDecoderTest.java
blob: dcb5aea0110c4198d099ace945dae55c7d7196cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package org.traccar.protocol;

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

public class KenjiProtocolDecoderTest extends ProtocolTest {

    @Test
    public void testDecode() throws Exception {

        KenjiProtocolDecoder decoder = new KenjiProtocolDecoder(new KenjiProtocol());

        verifyPosition(decoder, text(
                ">C800000,M005004,O0000,I0002,D124057,A,S3137.2783,W05830.2978,T000.0,H254.3,Y240116,G06*17"),
                position("2016-01-24 12:40:57.000", true, -31.62131, -58.50496));
    }    

}