aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/traccar/protocol/HuabaoFrameDecoderTest.java
diff options
context:
space:
mode:
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")));