aboutsummaryrefslogtreecommitdiff
path: root/test/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-11-07 12:14:23 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-11-07 12:14:23 +1300
commitd3b747aa7b3e2471cac84e3c062107fc1bb63374 (patch)
tree163b527535a6ca79fdde65edfd6191bc1b0b3398 /test/org
parent1261fb0bc31be9b89740f7e9799179d57118d127 (diff)
downloadtrackermap-server-d3b747aa7b3e2471cac84e3c062107fc1bb63374.tar.gz
trackermap-server-d3b747aa7b3e2471cac84e3c062107fc1bb63374.tar.bz2
trackermap-server-d3b747aa7b3e2471cac84e3c062107fc1bb63374.zip
Start Huabao protocol implementation
Diffstat (limited to 'test/org')
-rw-r--r--test/org/traccar/protocol/HuabaoProtocolDecoderTest.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/HuabaoProtocolDecoderTest.java b/test/org/traccar/protocol/HuabaoProtocolDecoderTest.java
new file mode 100644
index 000000000..0968d6d9c
--- /dev/null
+++ b/test/org/traccar/protocol/HuabaoProtocolDecoderTest.java
@@ -0,0 +1,18 @@
+package org.traccar.protocol;
+
+import org.junit.Test;
+import org.traccar.ProtocolDecoderTest;
+
+public class HuabaoProtocolDecoderTest extends ProtocolDecoderTest {
+
+ @Test
+ public void testDecode() throws Exception {
+
+ HuabaoProtocolDecoder decoder = new HuabaoProtocolDecoder(new HuabaoProtocol());
+
+ verifyNothing(decoder, binary(
+ "7e0100002d007089994489002800000000000000000048422d523033474244000000000000000000000031393036373531024142433030303030d17e"));
+
+ }
+
+}