package org.traccar.protocol; import org.junit.Test; import org.traccar.ProtocolTest; public class Vt200ProtocolDecoderTest extends ProtocolTest { @Test public void testDecode() throws Exception { Vt200ProtocolDecoder decoder = new Vt200ProtocolDecoder(new Vt200Protocol()); verifyNull(decoder, binary( "28631037309456008e000801042307171804584229")); verifyNull(decoder, binary( "28631037309456108800002e29")); verifyPosition(decoder, binary( "28631037309456208200210103302307171805444417097301147188170198090f0000073a002000007e00074429")); verifyNull(decoder, binary( "286310373094563089001200032f2107171740144417075001147188872c29")); verifyNull(decoder, binary( "2863103730945630880062032f862631037309456f222014604362936f21071717373221071717401400a100000cd700000004020d3c8e0000000000000000000000000000000000000000000000000000000000000000000a000000040000000e009700000cc9000000000000e929")); verifyPosition(decoder, binary( "28631037309456208400340102dc0906171616454415760201144494473f920a0c0000030500200100417c1f383a9d1090510000006a00007000000e00180ee129")); verifyPosition(decoder, binary( "28631037309456208400340102dc090617161654441577230114439597368c0a0c0000030500200100417c1baa349d3290510000006a00007000003d15004c11c629")); } }