aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2014-03-20 22:41:50 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2014-03-20 22:41:50 +1300
commit43943e450f58501f61faecd466f88aa5d3eb4482 (patch)
tree809c1812b3e2aeb19274d2cb87ae736b5d5e9cb9 /test
parentc601456e84d2da9200815c07a8686b8f6f13142c (diff)
downloadtraccar-server-43943e450f58501f61faecd466f88aa5d3eb4482.tar.gz
traccar-server-43943e450f58501f61faecd466f88aa5d3eb4482.tar.bz2
traccar-server-43943e450f58501f61faecd466f88aa5d3eb4482.zip
Support new GT06 message type (fix #608)
Diffstat (limited to 'test')
-rw-r--r--test/org/traccar/protocol/Gt06ProtocolDecoderTest.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/Gt06ProtocolDecoderTest.java b/test/org/traccar/protocol/Gt06ProtocolDecoderTest.java
index 23fd29f39..85e4859cf 100644
--- a/test/org/traccar/protocol/Gt06ProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/Gt06ProtocolDecoderTest.java
@@ -45,6 +45,9 @@ public class Gt06ProtocolDecoderTest {
int[] buf10 = {0x78,0x78,0x19,0x10,0x0e,0x01,0x09,0x03,0x23,0x0e,0xc8,0x03,0xae,0x32,0xa6,0x06,0x53,0xcd,0xed,0x00,0x18,0x00,0x00,0x02,0x00,0x72,0xfe,0xb7,0x0d,0x0a};
verify(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ChannelBufferTools.convertArray(buf10))));
+ int[] buf11 = {0x78,0x78,0x47,0x1e,0x0e,0x03,0x11,0x0b,0x05,0x11,0xc5,0x01,0xc6,0x64,0xfd,0x07,0x4d,0xb7,0x3f,0x02,0x18,0xa6,0x02,0xe0,0x03,0x43,0x3a,0x00,0x2f,0xed,0x40,0x43,0x3a,0x00,0x56,0xe1,0x4e,0x43,0x3a,0x00,0x56,0x10,0x4e,0x43,0x3a,0x00,0x56,0xfd,0x53,0x43,0x3a,0x00,0x2e,0xed,0x55,0x43,0x3a,0x00,0x7e,0x4b,0x57,0x43,0x3a,0x00,0x2e,0xe2,0x5a,0xff,0x00,0x02,0x01,0x20,0xf6,0x72,0x0d,0x0a};
+ verify(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ChannelBufferTools.convertArray(buf11))));
+
}
}