diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-30 18:06:09 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-30 18:06:09 +1300 |
commit | ea342be81728290bb529bcecfd9a68874c8b46a6 (patch) | |
tree | a2c5392b652c10cc0830b54cef3aa7a295cbb722 /test/org/traccar/ProtocolDecoderTest.java | |
parent | 6cec14dfbbf59e14efd43ab147e70b9f5803aec5 (diff) | |
download | trackermap-server-ea342be81728290bb529bcecfd9a68874c8b46a6.tar.gz trackermap-server-ea342be81728290bb529bcecfd9a68874c8b46a6.tar.bz2 trackermap-server-ea342be81728290bb529bcecfd9a68874c8b46a6.zip |
Implement new CastelCom protocol
Diffstat (limited to 'test/org/traccar/ProtocolDecoderTest.java')
-rw-r--r-- | test/org/traccar/ProtocolDecoderTest.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/org/traccar/ProtocolDecoderTest.java b/test/org/traccar/ProtocolDecoderTest.java index df8eb4e10..95f00e5d1 100644 --- a/test/org/traccar/ProtocolDecoderTest.java +++ b/test/org/traccar/ProtocolDecoderTest.java @@ -68,7 +68,7 @@ public class ProtocolDecoderTest { protected void verifyPositions(BaseProtocolDecoder decoder, Object object) throws Exception { Object decodedObject = decoder.decode(null, null, object); Assert.assertNotNull(decodedObject); - Assert.assertTrue(decodedObject instanceof List); + Assert.assertTrue("not a list", decodedObject instanceof List); Assert.assertFalse("list if empty", ((List) decodedObject).isEmpty()); for (Object item : (List) decodedObject) { verifyDecodedPosition(item); @@ -78,7 +78,7 @@ public class ProtocolDecoderTest { protected void verifyPositions(BaseProtocolDecoder decoder, Object object, Position position) throws Exception { Object decodedObject = decoder.decode(null, null, object); Assert.assertNotNull(decodedObject); - Assert.assertTrue(decodedObject instanceof List); + Assert.assertTrue("not a list", decodedObject instanceof List); Assert.assertFalse("list if empty", ((List) decodedObject).isEmpty()); for (Object item : (List) decodedObject) { verifyDecodedPosition(item, position); |