diff options
author | Ivan Muratov <binakot@gmail.com> | 2017-11-03 15:10:45 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-03 15:10:45 +0300 |
commit | 4e07d664cac49fcbb47376471ef9f4d770293ba9 (patch) | |
tree | 7eaa0886dcb6e44cf4d4aa549abbbaca6533f654 /test/org/traccar/protocol/RecodaProtocolDecoderTest.java | |
parent | 74cea90707321c775c11e9cfb91269f63ab4476f (diff) | |
parent | c62dd84c7ad4061c0c6d8a521c63857ccde461ba (diff) | |
download | trackermap-server-4e07d664cac49fcbb47376471ef9f4d770293ba9.tar.gz trackermap-server-4e07d664cac49fcbb47376471ef9f4d770293ba9.tar.bz2 trackermap-server-4e07d664cac49fcbb47376471ef9f4d770293ba9.zip |
Merge branch 'master' into master
Diffstat (limited to 'test/org/traccar/protocol/RecodaProtocolDecoderTest.java')
-rw-r--r-- | test/org/traccar/protocol/RecodaProtocolDecoderTest.java | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/RecodaProtocolDecoderTest.java b/test/org/traccar/protocol/RecodaProtocolDecoderTest.java new file mode 100644 index 000000000..69adb4905 --- /dev/null +++ b/test/org/traccar/protocol/RecodaProtocolDecoderTest.java @@ -0,0 +1,26 @@ +package org.traccar.protocol; + +import org.junit.Test; +import org.traccar.ProtocolTest; + +import java.nio.ByteOrder; + +public class RecodaProtocolDecoderTest extends ProtocolTest { + + @Test + public void testDecode() throws Exception { + + RecodaProtocolDecoder decoder = new RecodaProtocolDecoder(new RecodaProtocol()); + + verifyNull(decoder, binary(ByteOrder.LITTLE_ENDIAN, + "01100020480000000300000030393535360000000000000001000000303030303000000000000000000000000000000000000000006100004531313037353500ffffffffffff0000")); + + verifyNull(decoder, binary(ByteOrder.LITTLE_ENDIAN, + "01200020100000000300000002000000")); + + verifyNull(decoder, binary(ByteOrder.LITTLE_ENDIAN, + "0110000008000000")); + + } + +} |