aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-04-14 17:53:34 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2019-04-14 17:53:34 -0700
commitd25d3810621cda6bb7df2c060e8a7856784e789f (patch)
tree2f7dcc75b41016179e78e2ebb86da5658060cbb7 /src/test
parentf84c9bc81691c25c8715e900dd276cbd26d3fab8 (diff)
downloadtraccar-server-d25d3810621cda6bb7df2c060e8a7856784e789f.tar.gz
traccar-server-d25d3810621cda6bb7df2c060e8a7856784e789f.tar.bz2
traccar-server-d25d3810621cda6bb7df2c060e8a7856784e789f.zip
Implement Sanul protocol
Diffstat (limited to 'src/test')
-rw-r--r--src/test/java/org/traccar/protocol/SanulProtocolDecoderTest.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/SanulProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/SanulProtocolDecoderTest.java
new file mode 100644
index 000000000..be0ccc460
--- /dev/null
+++ b/src/test/java/org/traccar/protocol/SanulProtocolDecoderTest.java
@@ -0,0 +1,19 @@
+package org.traccar.protocol;
+
+import org.junit.Test;
+import org.traccar.ProtocolTest;
+
+public class SanulProtocolDecoderTest extends ProtocolTest {
+
+ @Test
+ public void testDecode() throws Exception {
+
+ SanulProtocolDecoder decoder = new SanulProtocolDecoder(null);
+
+ verifyNull(decoder, binary(
+ "aa007020000100000000000033353333353830313831353431313700000000000000000000"));
+ // aa00000f00010500000000000000000000000000
+
+ }
+
+}