package org.traccar.protocol;

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

public class Pt60ProtocolDecoderTest extends ProtocolTest {

    @Test
    public void testDecode() throws Exception {

        Pt60ProtocolDecoder decoder = new Pt60ProtocolDecoder(new Pt60Protocol());

        verifyPosition(decoder, text(
                "@G#@,V01,6,111112222233333,8888888888888888,20150312010203,23.2014050;104.235212,"));

        verifyNull(decoder, text(
                "@G#@,V01,1,353882080015633,9460025014649193,"));

    }

}

@@ -524,21 +524,573 @@
 49193,%22));%0A%0A
+        verifyNull(decoder, text(%0A                %22@G#@,V01,43,105681639001701,9460000412618231,20180410092923,5,460;0;9763;3852;-63%7C460;0;9763;3851;-26%7C460;0;9763;4080;-22%7C460;0;9763;3593;-18%7C460;0;9763;3591;-10,5,14:b8:37:26:64:88;004300680069006e0061004e00650074002d006e0047006e0058;-76%7C08:9b:4b:93:b5:b1;005400480049004e004b0052004100430045;-77%7Cec:3d:fd:c9:38:4a;004b00460052006f0075007400650072;-78%7Cb0:d5:9d:c6:f8:82;003300360030514d8d390057006900460069002d00380032;-81%7C02:fa:84:3b:fa:6a;00470075006500730074005f0032002e003400470048007a;-82,%22));%0A%0A
     %7D%0A%0A%7D%0A

Add PT60 test case