aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/traccar/protocol/HuabaoFrameDecoderTest.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-07-16 20:25:20 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2020-07-16 20:25:20 -0700
commita92c5786ce74994ad20aee12affd75737a565ba2 (patch)
tree66f5e092b7712fb521e0bf7dcef0c2173b59251d /src/test/java/org/traccar/protocol/HuabaoFrameDecoderTest.java
parent90ddc7b95e3879c20d6d8f7e8b96df87e0ec1f66 (diff)
downloadtrackermap-server-a92c5786ce74994ad20aee12affd75737a565ba2.tar.gz
trackermap-server-a92c5786ce74994ad20aee12affd75737a565ba2.tar.bz2
trackermap-server-a92c5786ce74994ad20aee12affd75737a565ba2.zip
Decode more data
Diffstat (limited to 'src/test/java/org/traccar/protocol/HuabaoFrameDecoderTest.java')
-rw-r--r--src/test/java/org/traccar/protocol/HuabaoFrameDecoderTest.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/test/java/org/traccar/protocol/HuabaoFrameDecoderTest.java b/src/test/java/org/traccar/protocol/HuabaoFrameDecoderTest.java
index 2d3937903..3b32be8dd 100644
--- a/src/test/java/org/traccar/protocol/HuabaoFrameDecoderTest.java
+++ b/src/test/java/org/traccar/protocol/HuabaoFrameDecoderTest.java
@@ -3,8 +3,6 @@ package org.traccar.protocol;
import org.junit.Test;
import org.traccar.ProtocolTest;
-import static org.junit.Assert.assertEquals;
-
public class HuabaoFrameDecoderTest extends ProtocolTest {
@Test
@@ -12,7 +10,11 @@ public class HuabaoFrameDecoderTest extends ProtocolTest {
HuabaoFrameDecoder decoder = new HuabaoFrameDecoder();
- assertEquals(
+ verifyFrame(
+ binary("283734303139303331313138352c312c3030312c454c4f434b2c332c35323934333929"),
+ decoder.decode(null, null, binary("283734303139303331313138352c312c3030312c454c4f434b2c332c35323934333929")));
+
+ verifyFrame(
binary("7e307e087d557e"),
decoder.decode(null, null, binary("7e307d02087d01557e")));