From ccd8cce3f0bfb06027a4185836f1c1f72fc234fb Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 12 Apr 2016 14:47:13 +1200 Subject: Implement Appello device protocol --- .../protocol/AppelloProtocolDecoderTest.java | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 test/org/traccar/protocol/AppelloProtocolDecoderTest.java (limited to 'test/org/traccar') diff --git a/test/org/traccar/protocol/AppelloProtocolDecoderTest.java b/test/org/traccar/protocol/AppelloProtocolDecoderTest.java new file mode 100644 index 000000000..69fa9b52e --- /dev/null +++ b/test/org/traccar/protocol/AppelloProtocolDecoderTest.java @@ -0,0 +1,21 @@ +package org.traccar.protocol; + +import org.junit.Test; +import org.traccar.ProtocolTest; + +public class AppelloProtocolDecoderTest extends ProtocolTest { + + @Test + public void testDecode() throws Exception { + + AppelloProtocolDecoder decoder = new AppelloProtocolDecoder(new AppelloProtocol()); + + verifyPosition(decoder, text( + "FOLLOWIT,860719028336968,160211221959,-12.112660,-77.045258,1,0,6,116,F,716,17,4E85,050C,29,,4.22,,39,999/00/00,,,,,,46206,")); + + verifyPosition(decoder, text( + "FOLLOWIT,359586019278139,130809160321,22.340218,114.030737,60,120,05,152,F,460,01,2533,720B,31,out,3.90,1,192,20/00/00,12.5,100%,80,45,1CFA68BB754E:60|2CFA68BB754E:100|3CFA68BB754E:100|4CFA68BB754E:100|5CFA68BB754E:100|,46672")); + + } + +} -- cgit v1.2.3