aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol/H02ProtocolDecoderTest.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-05-29 07:42:14 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2017-05-29 07:42:14 +1200
commit6d34331b2de7515bf8a448a8224992409e988a67 (patch)
treee2634d627a3a64565b0eeb929f2b40c5e4cd766b /test/org/traccar/protocol/H02ProtocolDecoderTest.java
parent8e85055a38ed46d6f4d29f5e96adc8af4252bc7b (diff)
downloadtrackermap-server-6d34331b2de7515bf8a448a8224992409e988a67.tar.gz
trackermap-server-6d34331b2de7515bf8a448a8224992409e988a67.tar.bz2
trackermap-server-6d34331b2de7515bf8a448a8224992409e988a67.zip
Support H02 LINK message type
Diffstat (limited to 'test/org/traccar/protocol/H02ProtocolDecoderTest.java')
-rw-r--r--test/org/traccar/protocol/H02ProtocolDecoderTest.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/org/traccar/protocol/H02ProtocolDecoderTest.java b/test/org/traccar/protocol/H02ProtocolDecoderTest.java
index 5779853d8..f1bc069c2 100644
--- a/test/org/traccar/protocol/H02ProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/H02ProtocolDecoderTest.java
@@ -11,6 +11,9 @@ public class H02ProtocolDecoderTest extends ProtocolTest {
H02ProtocolDecoder decoder = new H02ProtocolDecoder(new H02Protocol());
+ verifyAttributes(decoder, buffer(
+ "*HQ,1700086468,LINK,180902,15,0,84,0,0,240517,FFFFFBFF#"));
+
verifyNull(decoder, buffer(
"*HQ,355488020882405,V3,095426,74001,01,010278,045142,128,-92,02DE,0,X,090517,FFFFFBFF#"));
@@ -68,7 +71,7 @@ public class H02ProtocolDecoderTest extends ProtocolTest {
verifyAttributes(decoder, buffer(
"*HQ,1600068860,NBR,110326,262,03,255,6,802,23152,23,812,49449,14,802,35382,13,802,35402,11,812,56622,09,802,23132,04,081116,FFFFFBFF#"));
- verifyNull(decoder, buffer(
+ verifyAttributes(decoder, buffer(
"*HQ,1600068860,LINK,112137,20,8,67,0,0,081116,FFFFFBFF#"));
verifyNull(decoder, buffer(