aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-12-29 06:34:54 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-12-29 05:34:54 +1300
commit246045a3865ec01efeb9318adc1d0ec2539cd908 (patch)
treec64c8e3ce00a591f12ce5a36b7c25151d1df2393
parentc2bdb1c0af69739eb7ed3618e72687bc5e1275c4 (diff)
downloadtrackermap-server-246045a3865ec01efeb9318adc1d0ec2539cd908.tar.gz
trackermap-server-246045a3865ec01efeb9318adc1d0ec2539cd908.tar.bz2
trackermap-server-246045a3865ec01efeb9318adc1d0ec2539cd908.zip
Add H02 protocol unit test
-rw-r--r--test/org/traccar/protocol/H02ProtocolDecoderTest.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/H02ProtocolDecoderTest.java b/test/org/traccar/protocol/H02ProtocolDecoderTest.java
index 62c4320e8..91dfbc3ff 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,4208150188,NBR,210249,260,6,0,7,1014,50675,37,1014,50633,27,1014,17933,18,1014,17231,15,1014,50632,12,1014,13211,11,1014,17031,10,281216,FFFFFBFF,2#"));
+
+ verifyAttributes(decoder, buffer(
"*HQ,1600068812,NBR,141335,262,02,255,6,431,17003,26,431,11101,13,431,6353,13,431,22172,13,431,11093,13,431,60861,10,151216,FFFFFBFF#"));
verifyPosition(decoder, buffer(