aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/traccar/protocol/SuntechFrameDecoderTest.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-10-26 17:05:46 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2019-10-26 17:05:46 -0700
commit3e36fcdb303f4c7af2df8e859f8fc6b1c7ba3fd0 (patch)
treee43ba14f871b0ad4249d7f3ad079f09b8c989686 /src/test/java/org/traccar/protocol/SuntechFrameDecoderTest.java
parent73c676e4faa3a8d71c9e8880417bd387eed20c7e (diff)
downloadtrackermap-server-3e36fcdb303f4c7af2df8e859f8fc6b1c7ba3fd0.tar.gz
trackermap-server-3e36fcdb303f4c7af2df8e859f8fc6b1c7ba3fd0.tar.bz2
trackermap-server-3e36fcdb303f4c7af2df8e859f8fc6b1c7ba3fd0.zip
Support binary Suntech protocol
Diffstat (limited to 'src/test/java/org/traccar/protocol/SuntechFrameDecoderTest.java')
-rw-r--r--src/test/java/org/traccar/protocol/SuntechFrameDecoderTest.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/SuntechFrameDecoderTest.java b/src/test/java/org/traccar/protocol/SuntechFrameDecoderTest.java
index ccd9139f4..1c84b5c89 100644
--- a/src/test/java/org/traccar/protocol/SuntechFrameDecoderTest.java
+++ b/src/test/java/org/traccar/protocol/SuntechFrameDecoderTest.java
@@ -11,6 +11,10 @@ public class SuntechFrameDecoderTest extends ProtocolTest {
SuntechFrameDecoder decoder = new SuntechFrameDecoder();
verifyFrame(
+ binary("81004e05200013383fffff3401000301130a0512080400000000000000000000000047f9d5846a06810072225214010100020300a8002604c1000004b000000470000025a100000000000025c4000000a6"),
+ decoder.decode(null, null, binary("81004e05200013383fffff3401000301130a0512080400000000000000000000000047f9d5846a06810072225214010100020300a8002604c1000004b000000470000025a100000000000025c4000000a6")));
+
+ verifyFrame(
binary("5354363030414c563b303038373238333237"),
decoder.decode(null, null, binary("5354363030414c563b3030383732383332370d")));