diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-03-16 22:57:59 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-03-16 22:57:59 +1300 |
commit | 38c1ff9bccc1c417a0c2b412271aa7240a3b7db7 (patch) | |
tree | ddcfcc67df70499c7bfa82c4dab75fc9d8bede18 /test/org/traccar/protocol | |
parent | 34a5b8ceaff6617a8958ce04fb6c7f65d1d19979 (diff) | |
download | trackermap-server-38c1ff9bccc1c417a0c2b412271aa7240a3b7db7.tar.gz trackermap-server-38c1ff9bccc1c417a0c2b412271aa7240a3b7db7.tar.bz2 trackermap-server-38c1ff9bccc1c417a0c2b412271aa7240a3b7db7.zip |
Implement Continental RVS protocol
Diffstat (limited to 'test/org/traccar/protocol')
-rw-r--r-- | test/org/traccar/protocol/ContinentalProtocolDecoderTest.java | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/ContinentalProtocolDecoderTest.java b/test/org/traccar/protocol/ContinentalProtocolDecoderTest.java new file mode 100644 index 000000000..fbc7c3219 --- /dev/null +++ b/test/org/traccar/protocol/ContinentalProtocolDecoderTest.java @@ -0,0 +1,25 @@ +package org.traccar.protocol; + +import org.junit.Test; +import org.traccar.ProtocolTest; + +public class ContinentalProtocolDecoderTest extends ProtocolTest { + + @Test + public void testDecode() throws Exception { + + ContinentalProtocolDecoder decoder = new ContinentalProtocolDecoder(new ContinentalProtocol()); + + verifyPosition(decoder, binary( + "5356002A1100003039030243A68B5700FEB5AB00FD715F012700000143A68B57000E000000000C2F00000130"), + position("2005-12-19 10:28:39.000", true, -23.49027, -46.55138)); + + verifyPosition(decoder, binary( + "5356002a0d0010a12403025a9ea47f00feb48400fd6e63000c0000015a9ea480000e000100000c000000")); + + verifyPosition(decoder, binary( + "5356002a0d0010a1240302581b944100febed800fd9fa30139001300581c73fa000e000000000d000001")); + + } + +} |