aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-01-25 23:05:30 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2019-01-25 23:05:30 -0800
commit7291f66746f9d18387afb523818906a2ee635b82 (patch)
treeffa1f3014a9301002d8a6475eedc787e93b14ead /test/org/traccar/protocol
parent2d77b422cedd90190df1fe39cceda71677add03e (diff)
downloadtraccar-server-7291f66746f9d18387afb523818906a2ee635b82.tar.gz
traccar-server-7291f66746f9d18387afb523818906a2ee635b82.tar.bz2
traccar-server-7291f66746f9d18387afb523818906a2ee635b82.zip
Implement Satsol Sat-Lite protocol
Diffstat (limited to 'test/org/traccar/protocol')
-rw-r--r--test/org/traccar/protocol/SatsolProtocolDecoderTest.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/SatsolProtocolDecoderTest.java b/test/org/traccar/protocol/SatsolProtocolDecoderTest.java
new file mode 100644
index 000000000..acdb5a084
--- /dev/null
+++ b/test/org/traccar/protocol/SatsolProtocolDecoderTest.java
@@ -0,0 +1,18 @@
+package org.traccar.protocol;
+
+import org.junit.Test;
+import org.traccar.ProtocolTest;
+
+public class SatsolProtocolDecoderTest extends ProtocolTest {
+
+ @Test
+ public void testDecode() throws Exception {
+
+ SatsolProtocolDecoder decoder = new SatsolProtocolDecoder(null);
+
+ verifyPositions(decoder, binary(
+ "22b5bf4cb2ec1600500122b37ba020001500cb5d2f5c68c24a0310aecd016200b1003d000004000177042700a501000000000000000101020100011e00a1657ca020001500cf5d2f5c68c24a03dbadcd013501b10097000004030177042700a501000000000000000101020101011e00816e7da003004800b95e2f5c89c24a03fbadcd010000aa00000000040601011038363133353930333632333039323600383933373530323730313030323335343836363000323537303237303132333534383636004d5453000000000066640101005700e515cf047ea001000000295f2f5c89c24a03fbadcd0100009a0000000106020106dc30a8030048006bc13e5c19c24a03bfadcd010000ad00000000050600011338363133353930333632333039323600383933373530323730313030323335343836363000323537303237303132333534383636004d5453000000000066640101005700e515"));
+
+ }
+
+}