aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-04-11 10:24:07 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-04-11 10:24:07 +1200
commit1f2c8ab848ac2b9d80440d8cdad8c1c293088bae (patch)
treee5a0c4a84b7a614ef8039c78347568edaf19be59 /test/org/traccar/protocol
parent662b552ba75c874ca1f1d67310f7004eb5da1991 (diff)
downloadtraccar-server-1f2c8ab848ac2b9d80440d8cdad8c1c293088bae.tar.gz
traccar-server-1f2c8ab848ac2b9d80440d8cdad8c1c293088bae.tar.bz2
traccar-server-1f2c8ab848ac2b9d80440d8cdad8c1c293088bae.zip
Add more CalAmp unit tests
Diffstat (limited to 'test/org/traccar/protocol')
-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 31336a66c..02ceed36a 100644
--- a/test/org/traccar/protocol/CalAmpProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/CalAmpProtocolDecoderTest.java
@@ -16,6 +16,12 @@ public class CalAmpProtocolDecoderTest {
CalAmpProtocolDecoder decoder = new CalAmpProtocolDecoder(new TestDataManager(), null, null);
verify(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ChannelBufferTools.convertHexString(
+ "8308353301059723580f01020102088952d994c352d994c4134fa767c4c482e20000c12700000d29006e1002019affc90f061d00060c0000")), null));
+
+ verify(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ChannelBufferTools.convertHexString(
+ "8308355233050116134f01020102445652d993e152d993e1124c728cc68f0647000023c00000000000000e02019affc90f071c0015020000")), null));
+
+ verify(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ChannelBufferTools.convertHexString(
"830545420185450101010200075517fb335516c5c40fb1aea4cf4cbf250000000000000000008900260015ffb10f001108110a0000")), null));
verify(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ChannelBufferTools.convertHexString(