aboutsummaryrefslogtreecommitdiff
path: root/test/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-04-27 11:13:42 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-04-27 11:13:42 +1200
commit8e24c10cdc42fdece70d420b206bb6062edb589c (patch)
tree70a400433fad85a15751800ef8ec2300c46324e8 /test/org
parent6919dc98ea4d546aea56e815c22fecc3a6c164c8 (diff)
downloadtraccar-server-8e24c10cdc42fdece70d420b206bb6062edb589c.tar.gz
traccar-server-8e24c10cdc42fdece70d420b206bb6062edb589c.tar.bz2
traccar-server-8e24c10cdc42fdece70d420b206bb6062edb589c.zip
Decode Tytan extra data
Diffstat (limited to 'test/org')
-rw-r--r--test/org/traccar/protocol/TytanProtocolDecoderTest.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/org/traccar/protocol/TytanProtocolDecoderTest.java b/test/org/traccar/protocol/TytanProtocolDecoderTest.java
index 5fdb847b1..57a5b0bd5 100644
--- a/test/org/traccar/protocol/TytanProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/TytanProtocolDecoderTest.java
@@ -5,7 +5,6 @@ import static org.junit.Assert.assertNull;
import org.junit.Test;
import org.traccar.helper.ChannelBufferTools;
import static org.traccar.helper.DecoderVerifier.verify;
-import org.traccar.helper.TestDataManager;
public class TytanProtocolDecoderTest extends ProtocolDecoderTest {
@@ -13,6 +12,9 @@ public class TytanProtocolDecoderTest extends ProtocolDecoderTest {
public void testDecode() throws Exception {
TytanProtocolDecoder decoder = new TytanProtocolDecoder(null);
+
+ verify(decoder.decode(null, null, null, ChannelBuffers.wrappedBuffer(ChannelBufferTools.convertHexString(
+ "D5F0FF00001032552F9121D5325FCB8D11AFA0000205396504004C0602FB5B434118001765006603676B68006B80426C02E2C8206D2F9600"))));
verify(decoder.decode(null, null, null, ChannelBuffers.wrappedBuffer(ChannelBufferTools.convertHexString(
"D56000000AF20E4FA7C77AFF3282C68D2F890800"))));
@@ -21,9 +23,6 @@ public class TytanProtocolDecoderTest extends ProtocolDecoderTest {
"D56000000AF20e552e248007375bee8c02b3c002"))));
verify(decoder.decode(null, null, null, ChannelBuffers.wrappedBuffer(ChannelBufferTools.convertHexString(
- "D5F0FF00001032552F9121D5325FCB8D11AFA0000205396504004C0602FB5B434118001765006603676B68006B80426C02E2C8206D2F9600"))));
-
- verify(decoder.decode(null, null, null, ChannelBuffers.wrappedBuffer(ChannelBufferTools.convertHexString(
"D5C0FF00013D21552F9148D3325E8F8D11A80800060228816541061245FF674107C0001810130D21552F9148D3325E8F8D11A8080006022881654106121C46694107C0001810130D21552F9182D3325E8F8D11A8080006022881654106121C46694107C0001810140C"))));
verify(decoder.decode(null, null, null, ChannelBuffers.wrappedBuffer(ChannelBufferTools.convertHexString(