aboutsummaryrefslogtreecommitdiff
path: root/test/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-11-07 11:16:53 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-11-07 11:16:53 +1300
commit1261fb0bc31be9b89740f7e9799179d57118d127 (patch)
tree5c61ffe5cf2a6cabef40c33fe8c97cecc55b3203 /test/org
parentc55ecff2f0d6b83973953b3ae4f86e14a923b6c7 (diff)
downloadtrackermap-server-1261fb0bc31be9b89740f7e9799179d57118d127.tar.gz
trackermap-server-1261fb0bc31be9b89740f7e9799179d57118d127.tar.bz2
trackermap-server-1261fb0bc31be9b89740f7e9799179d57118d127.zip
Implement Huabao frame decoder
Diffstat (limited to 'test/org')
-rw-r--r--test/org/traccar/protocol/HuabaoFrameDecoderTest.java20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/HuabaoFrameDecoderTest.java b/test/org/traccar/protocol/HuabaoFrameDecoderTest.java
new file mode 100644
index 000000000..923096f50
--- /dev/null
+++ b/test/org/traccar/protocol/HuabaoFrameDecoderTest.java
@@ -0,0 +1,20 @@
+package org.traccar.protocol;
+
+import org.junit.Assert;
+import org.junit.Test;
+import org.traccar.ProtocolDecoderTest;
+
+public class HuabaoFrameDecoderTest extends ProtocolDecoderTest {
+
+ @Test
+ public void testDecode() throws Exception {
+
+ HuabaoFrameDecoder decoder = new HuabaoFrameDecoder();
+
+ Assert.assertEquals(
+ binary("7e307e087d557e"),
+ decoder.decode(null, null, binary("7e307d02087d01557e")));
+
+ }
+
+}