aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-11-19 09:51:28 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-11-19 09:51:28 +1300
commitcc5d60ff499c39fb4db7e06b2e62fefe2a324f77 (patch)
treeb41a78043c05b2ca26b97aa024e9f8ad19b91181 /test/org/traccar
parent9b2b2da4d0568a50298cedfb07329f3eedb15d46 (diff)
downloadtrackermap-server-cc5d60ff499c39fb4db7e06b2e62fefe2a324f77.tar.gz
trackermap-server-cc5d60ff499c39fb4db7e06b2e62fefe2a324f77.tar.bz2
trackermap-server-cc5d60ff499c39fb4db7e06b2e62fefe2a324f77.zip
Add more Huabao decoder unit tests
Diffstat (limited to 'test/org/traccar')
-rw-r--r--test/org/traccar/protocol/HuabaoProtocolDecoderTest.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/HuabaoProtocolDecoderTest.java b/test/org/traccar/protocol/HuabaoProtocolDecoderTest.java
index 1e2290851..b24b844d9 100644
--- a/test/org/traccar/protocol/HuabaoProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/HuabaoProtocolDecoderTest.java
@@ -22,6 +22,18 @@ public class HuabaoProtocolDecoderTest extends ProtocolDecoderTest {
verifyPosition(decoder, binary(
"7E02000032013511221122000700000000000C000301578CC006CA3A5C00470000000014072317201501040000000030011631010BD07E"));
+ verifyNothing(decoder, binary(
+ "7E010200100940278494700084323031313131303831313333323139369F7E"));
+
+ verifyNothing(decoder, binary(
+ "7e010000190940278494700012000000000000000000000000000000000000094027849470000a7e"));
+
+ verifyPosition(decoder, binary(
+ "7e0200002e094027587492000a000000010000000a03083db7001329f3000000140000130412164952010400000012360a0002341502cb0c20085c107e"));
+
+ verifyPosition(decoder, binary(
+ "7e020000220014012499170007000000000000400e012af16f02cbd2ba000000000000150101194257010400000077a97e"));
+
}
}