aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-09-27 23:51:37 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-09-27 23:51:37 +1300
commitf6fc3fb5431e0904bde0d3afe35d622b7bdbe935 (patch)
tree15c2dcffb0a9158671c4b5190ecfb9eee8fd916a /test/org/traccar
parentb24067b9faa17020d5018c1780d6bff236e5a91a (diff)
downloadtrackermap-server-f6fc3fb5431e0904bde0d3afe35d622b7bdbe935.tar.gz
trackermap-server-f6fc3fb5431e0904bde0d3afe35d622b7bdbe935.tar.bz2
trackermap-server-f6fc3fb5431e0904bde0d3afe35d622b7bdbe935.zip
Modify CalAmp decoder and add test cases
Diffstat (limited to 'test/org/traccar')
-rw-r--r--test/org/traccar/protocol/CalAmpProtocolDecoderTest.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/CalAmpProtocolDecoderTest.java b/test/org/traccar/protocol/CalAmpProtocolDecoderTest.java
index 9ed4c4a43..8d7d5f9fe 100644
--- a/test/org/traccar/protocol/CalAmpProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/CalAmpProtocolDecoderTest.java
@@ -11,6 +11,12 @@ public class CalAmpProtocolDecoderTest extends ProtocolTest {
CalAmpProtocolDecoder decoder = new CalAmpProtocolDecoder(new CalAmpProtocol());
verifyPosition(decoder, binary(
+ "8305133303910501010102004557E5AB2457E3B3E01FD828DBFE9E3465000028C90000004201310704001EFFA12F0B22081BCA05000000000000000F87000E8E2F00EA029E0000082D"));
+
+ verifyPosition(decoder, binary(
+ "8305313301481601010102045557ea2eba57ea2eba1ebf06db005f2e5e0000220c00000000000006200000ff8f000a00000bca06000000000000000f1b000f35ef00ea02900000087000000060"));
+
+ verifyPosition(decoder, binary(
"8305454205067001010102008157a9bddc57a96aaa17cdb98fccc1a457000056ac00000000000007250000ff8f000e00082711570000000000ffff101b00003148000010680000000000000000000000050000000000000000000005b0000000000000289600000000000000000000069b00000000000008e400000000000000000000000000000003000000010000070f"));
verifyPosition(decoder, binary(