aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-04-15 23:40:57 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-04-15 23:40:57 +1200
commit04ae68b69bc6d7c5f92f9b3323745300ecb12e2e (patch)
treee0f03fe7e093156783b6890373429687426577ae
parent401eb799f3294f219c2a806655d27a1c496bde0a (diff)
downloadtraccar-server-04ae68b69bc6d7c5f92f9b3323745300ecb12e2e.tar.gz
traccar-server-04ae68b69bc6d7c5f92f9b3323745300ecb12e2e.tar.bz2
traccar-server-04ae68b69bc6d7c5f92f9b3323745300ecb12e2e.zip
Add one more CalAmp test
-rw-r--r--test/org/traccar/protocol/CalAmpProtocolDecoderTest.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/CalAmpProtocolDecoderTest.java b/test/org/traccar/protocol/CalAmpProtocolDecoderTest.java
index 02ceed36a..5e72fdf26 100644
--- a/test/org/traccar/protocol/CalAmpProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/CalAmpProtocolDecoderTest.java
@@ -15,6 +15,9 @@ public class CalAmpProtocolDecoderTest {
CalAmpProtocolDecoder decoder = new CalAmpProtocolDecoder(new TestDataManager(), null, null);
+ assertNull(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ChannelBufferTools.convertHexString(
+ "830545321041830101010300010000333862000023c301000000004532104183ffffff353816051610691f420040163953294fffffffffffffffff8996604211639032949f4f54413a317c303b302c317c343b302c34004f5441535441543a302c302c302c302c302c222200564255533a342c322e302e302c343533323130343138332c5630312e30332e30312e34302c5630312e30332e30312e33312c2c0056494e2d494e464f3a56494e3d31464d5a5537324539355a4137303032362c4445562d5245474e3d55532c535256522d5245474e3d555300")), null));
+
verify(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ChannelBufferTools.convertHexString(
"8308353301059723580f01020102088952d994c352d994c4134fa767c4c482e20000c12700000d29006e1002019affc90f061d00060c0000")), null));