diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2021-02-28 16:40:39 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2021-02-28 16:40:39 -0800 |
commit | b2f389803ffaed47082a6f770c5b19df98cecac2 (patch) | |
tree | daa6023b153cc2e7625e0a884ea2ee4c524393e8 /src/test | |
parent | 166852601ab6b4f0e7917ae7c53a216ce3ffb054 (diff) | |
download | trackermap-server-b2f389803ffaed47082a6f770c5b19df98cecac2.tar.gz trackermap-server-b2f389803ffaed47082a6f770c5b19df98cecac2.tar.bz2 trackermap-server-b2f389803ffaed47082a6f770c5b19df98cecac2.zip |
Commands and result support
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/java/org/traccar/protocol/KhdProtocolEncoderTest.java | 5 |
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")); + } } |