aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-04-12 14:47:13 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2016-04-12 14:47:13 +1200
commitccd8cce3f0bfb06027a4185836f1c1f72fc234fb (patch)
tree9306da9059ae202eecd011894e60be133f438bfb /test/org/traccar
parent55d7ed16a9760e9582b6b8b838b2f97922638b18 (diff)
downloadtraccar-server-ccd8cce3f0bfb06027a4185836f1c1f72fc234fb.tar.gz
traccar-server-ccd8cce3f0bfb06027a4185836f1c1f72fc234fb.tar.bz2
traccar-server-ccd8cce3f0bfb06027a4185836f1c1f72fc234fb.zip
Implement Appello device protocol
Diffstat (limited to 'test/org/traccar')
-rw-r--r--test/org/traccar/protocol/AppelloProtocolDecoderTest.java21
1 files changed, 21 insertions, 0 deletions
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"));
+
+ }
+
+}