aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol/C2stekProtocolDecoderTest.java
blob: 0a5690f76de8ce0cb401e94436e10cf71db54440 (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 C2stekProtocolDecoderTest extends ProtocolTest {

    @Test
    public void testDecode() throws Exception {

        C2stekProtocolDecoder decoder = new C2stekProtocolDecoder(null);

        verifyPosition(decoder, text(
                "PA$353990030327618$D#091117#020928#1#22.537222#114.020948#0.00#0.0#42.1#4183#011#1#101#Wsz-wl001#B0101940#C+3.0,-5.0,+2.0$AP"));

        verifyNull(decoder, text(
                "PA$863083030602124$20$AP"));

    }

}