aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol/MxtProtocolDecoderTest.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-06-23 16:13:24 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-06-23 16:13:24 +1200
commit9e6506f2df372c9f29d7166da1080ed17c41fcdc (patch)
tree02702482d1e5f7d5426506c4354a37b8700559ac /test/org/traccar/protocol/MxtProtocolDecoderTest.java
parent332561a237acc11a89ce35a6503fda3e4de6eff3 (diff)
downloadtrackermap-server-9e6506f2df372c9f29d7166da1080ed17c41fcdc.tar.gz
trackermap-server-9e6506f2df372c9f29d7166da1080ed17c41fcdc.tar.bz2
trackermap-server-9e6506f2df372c9f29d7166da1080ed17c41fcdc.zip
Decode MXT GPS information
Diffstat (limited to 'test/org/traccar/protocol/MxtProtocolDecoderTest.java')
-rw-r--r--test/org/traccar/protocol/MxtProtocolDecoderTest.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/org/traccar/protocol/MxtProtocolDecoderTest.java b/test/org/traccar/protocol/MxtProtocolDecoderTest.java
index 291bed804..9c0a315d2 100644
--- a/test/org/traccar/protocol/MxtProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/MxtProtocolDecoderTest.java
@@ -15,12 +15,9 @@ public class MxtProtocolDecoderTest extends ProtocolDecoderTest {
public void testDecode() throws Exception {
MxtProtocolDecoder decoder = new MxtProtocolDecoder(null);
-
- /*verify(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ByteOrder.LITTLE_ENDIAN, ChannelBufferTools.convertHexString(
- "01a631e3f97e00087cf40a98151c2cc46898fee0ce3afd1021001030c0000006102116072e003829bb00000036102100001024000000062b0000f42730004b06a6384b4304"))));
verify(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ByteOrder.LITTLE_ENDIAN, ChannelBufferTools.convertHexString(
- "01a631e3f97e00087cfa0af3151c2c126798febace3afd1021801030c0000006102122082f003e29bb00000037102100001024000000ab2f0000f42730004b060000488c04"))));
+ "01a631e3f97e00087cf40a98151c2cc46898fee0ce3afd1021001030c0000006102116072e003829bb00000036102100001024000000062b0000f42730004b06a6384b4304"))));
verify(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ByteOrder.LITTLE_ENDIAN, ChannelBufferTools.convertHexString(
"01a63118787d00086468457a466a2bc26a97feac8a3afd10212010308000000000001fe1053d291024000000922f0000f4271021007b17553599bb04"))));
@@ -29,10 +26,13 @@ public class MxtProtocolDecoderTest extends ProtocolDecoderTest {
"01a63118787d0008648645ec486a2bc26a97feac8a3afd1021001030c0000000001419eb05372b1024000000982a0000f4271021007b17000010308c04"))));
verify(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ByteOrder.LITTLE_ENDIAN, ChannelBufferTools.convertHexString(
+ "01a631e3f97e00087cfa0af3151c2c126798febace3afd1021801030c0000006102122082f003e29bb00000037102100001024000000ab2f0000f42730004b060000488c04"))));
+
+ verify(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ByteOrder.LITTLE_ENDIAN, ChannelBufferTools.convertHexString(
"01a631e3f97e00087cfe0a4b161c2c126798febace3afd1021801030800000071021240731003e2abb00000038102100001024000000c12f0000f42730004b06a638633104"))));
verify(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ByteOrder.LITTLE_ENDIAN, ChannelBufferTools.convertHexString(
- "01a63118787d0008648645ec486a2bc26a97feac8a3afd1021001030c0000000001419eb05372b1024000000982a0000f4271021007b17000010308c04"))));*/
+ "01a63118787d0008648645ec486a2bc26a97feac8a3afd1021001030c0000000001419eb05372b1024000000982a0000f4271021007b17000010308c04"))));
}