aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-12-16 18:57:00 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-12-16 18:57:00 +1300
commit929f802ac6aa8f30dd3545f325924415d6628be3 (patch)
treefcc9d311ef2596cf551454940480abfe09395295 /test/org/traccar/protocol
parentde640f41f5a60b75edfac0ba7640aedd879450fb (diff)
downloadtraccar-server-929f802ac6aa8f30dd3545f325924415d6628be3.tar.gz
traccar-server-929f802ac6aa8f30dd3545f325924415d6628be3.tar.bz2
traccar-server-929f802ac6aa8f30dd3545f325924415d6628be3.zip
Add H02 protocol unit test
Diffstat (limited to 'test/org/traccar/protocol')
-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 d1b2d3198..62c4320e8 100644
--- a/test/org/traccar/protocol/H02ProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/H02ProtocolDecoderTest.java
@@ -10,6 +10,9 @@ public class H02ProtocolDecoderTest extends ProtocolTest {
H02ProtocolDecoder decoder = new H02ProtocolDecoder(new H02Protocol());
+ 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(
"*HQ,353588020068342,V1,084436,A,3257.01525,N,00655.03865,W,57.78,40,011216,FFFBFFFF,25c,a, 154,b04c#"));