aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/traccar/protocol/KhdProtocolEncoderTest.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-02-28 16:40:39 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2021-02-28 16:40:39 -0800
commitb2f389803ffaed47082a6f770c5b19df98cecac2 (patch)
treedaa6023b153cc2e7625e0a884ea2ee4c524393e8 /src/test/java/org/traccar/protocol/KhdProtocolEncoderTest.java
parent166852601ab6b4f0e7917ae7c53a216ce3ffb054 (diff)
downloadtrackermap-server-b2f389803ffaed47082a6f770c5b19df98cecac2.tar.gz
trackermap-server-b2f389803ffaed47082a6f770c5b19df98cecac2.tar.bz2
trackermap-server-b2f389803ffaed47082a6f770c5b19df98cecac2.zip
Commands and result support
Diffstat (limited to 'src/test/java/org/traccar/protocol/KhdProtocolEncoderTest.java')
-rw-r--r--src/test/java/org/traccar/protocol/KhdProtocolEncoderTest.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/test/java/org/traccar/protocol/KhdProtocolEncoderTest.java b/src/test/java/org/traccar/protocol/KhdProtocolEncoderTest.java
index 390defe6f..043bf4d9a 100644
--- a/src/test/java/org/traccar/protocol/KhdProtocolEncoderTest.java
+++ b/src/test/java/org/traccar/protocol/KhdProtocolEncoderTest.java
@@ -13,10 +13,13 @@ public class KhdProtocolEncoderTest extends ProtocolTest {
Command command = new Command();
command.setDeviceId(1);
- command.setType(Command.TYPE_ENGINE_STOP);
+ command.setType(Command.TYPE_ENGINE_STOP);
verifyCommand(encoder, command, binary("29293900065981972d5d0d"));
+ command.setType(Command.TYPE_POSITION_SINGLE);
+ verifyCommand(encoder, command, binary("29293000065981972d540d"));
+
}
}