aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol/KhdProtocolEncoderTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/org/traccar/protocol/KhdProtocolEncoderTest.java')
-rw-r--r--test/org/traccar/protocol/KhdProtocolEncoderTest.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/org/traccar/protocol/KhdProtocolEncoderTest.java b/test/org/traccar/protocol/KhdProtocolEncoderTest.java
index 2a3fb524b..e453deaf5 100644
--- a/test/org/traccar/protocol/KhdProtocolEncoderTest.java
+++ b/test/org/traccar/protocol/KhdProtocolEncoderTest.java
@@ -3,12 +3,13 @@ package org.traccar.protocol;
import org.jboss.netty.buffer.ChannelBuffers;
import org.junit.Assert;
import org.junit.Test;
+import org.traccar.ProtocolTest;
import org.traccar.helper.ChannelBufferTools;
import org.traccar.model.Command;
import javax.xml.bind.DatatypeConverter;
-public class KhdProtocolEncoderTest {
+public class KhdProtocolEncoderTest extends ProtocolTest {
@Test
public void testEncode() throws Exception {
@@ -19,8 +20,7 @@ public class KhdProtocolEncoderTest {
command.setDeviceId(1);
command.setType(Command.TYPE_ENGINE_STOP);
- Assert.assertEquals(encoder.encodeCommand(command), ChannelBuffers.wrappedBuffer(
- DatatypeConverter.parseHexBinary("2929390006000000003F0D")));
+ verifyCommand(encoder, command, binary("2929390006000000003F0D"));
}