aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-10-05 14:34:01 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2019-10-05 14:34:01 -0700
commit4ecca566c4faba5f526b92d5920f542a5b03cc95 (patch)
tree4e017e0528fbf1340f3715e215f62dc3139c8b1f /src/test
parent2e71806e6c6206acffc78f28101688963418aa6c (diff)
downloadtrackermap-server-4ecca566c4faba5f526b92d5920f542a5b03cc95.tar.gz
trackermap-server-4ecca566c4faba5f526b92d5920f542a5b03cc95.tar.bz2
trackermap-server-4ecca566c4faba5f526b92d5920f542a5b03cc95.zip
Fix frame decoding
Diffstat (limited to 'src/test')
-rw-r--r--src/test/java/org/traccar/protocol/Jt600FrameDecoderTest.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/Jt600FrameDecoderTest.java b/src/test/java/org/traccar/protocol/Jt600FrameDecoderTest.java
index ae0948987..e695624a9 100644
--- a/src/test/java/org/traccar/protocol/Jt600FrameDecoderTest.java
+++ b/src/test/java/org/traccar/protocol/Jt600FrameDecoderTest.java
@@ -11,6 +11,10 @@ public class Jt600FrameDecoderTest extends ProtocolTest {
Jt600FrameDecoder decoder = new Jt600FrameDecoder();
verifyFrame(
+ binary("2478905197081711003405101917164812492365028134847d0a1c000002640c0000000020c032759600731000000f0f0f0f0f0f0f0f0f0f000702850274"),
+ decoder.decode(null, null, binary("2478905197081711003405101917164812492365028134847d0a1c000002640c0000000020c032759600731000000f0f0f0f0f0f0f0f0f0f000702850274")));
+
+ verifyFrame(
binary("24315011626912001b21111718095900000000000000000e0000005c000000000000000000"),
decoder.decode(null, null, binary("24315011626912001b21111718095900000000000000000e0000005c00000000000000000024315011626912001b22111708130400000000000000000e0000005a00000000000000000024315011626912001b22111708140400000000000000000e0000005a000000723e18a61b01")));