diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-01-20 06:16:52 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2017-01-20 06:16:53 +1300 |
commit | e5c2ec3bd7f4b0433242cda3ca9a66c3d9dd2367 (patch) | |
tree | 04d4dca44e4c8a5dbf2207e342e63812bccc6cef /test/org/traccar/protocol | |
parent | 6d40b05fc95a14e2b6b21158d809fbebcc735d33 (diff) | |
download | traccar-server-e5c2ec3bd7f4b0433242cda3ca9a66c3d9dd2367.tar.gz traccar-server-e5c2ec3bd7f4b0433242cda3ca9a66c3d9dd2367.tar.bz2 traccar-server-e5c2ec3bd7f4b0433242cda3ca9a66c3d9dd2367.zip |
Implement Huabao protocol commands
Diffstat (limited to 'test/org/traccar/protocol')
-rw-r--r-- | test/org/traccar/protocol/HuabaoProtocolEncoderTest.java | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/HuabaoProtocolEncoderTest.java b/test/org/traccar/protocol/HuabaoProtocolEncoderTest.java new file mode 100644 index 000000000..c29147a26 --- /dev/null +++ b/test/org/traccar/protocol/HuabaoProtocolEncoderTest.java @@ -0,0 +1,24 @@ +package org.traccar.protocol; + +import org.junit.Ignore; +import org.junit.Test; +import org.traccar.ProtocolTest; +import org.traccar.model.Command; + +public class HuabaoProtocolEncoderTest extends ProtocolTest { + + @Ignore + @Test + public void testEncode() throws Exception { + + HuabaoProtocolEncoder encoder = new HuabaoProtocolEncoder(); + + Command command = new Command(); + command.setDeviceId(1); + command.setType(Command.TYPE_ENGINE_STOP); + + verifyCommand(encoder, command, binary("7EA0060007001403305278017701150424154610AD7E")); + + } + +} |