aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/ProtocolDecoderTest.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-11-12 16:49:27 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-11-12 16:49:27 +1300
commite696169bf6731d03e1840f39cc56c0e48b3359c6 (patch)
tree5f5b7dab3637f9cff298f7b9feed49f4bd386a2b /test/org/traccar/ProtocolDecoderTest.java
parent2df9a104d8ff5023f45a13b01f3cf498b7ea7e68 (diff)
downloadtrackermap-server-e696169bf6731d03e1840f39cc56c0e48b3359c6.tar.gz
trackermap-server-e696169bf6731d03e1840f39cc56c0e48b3359c6.tar.bz2
trackermap-server-e696169bf6731d03e1840f39cc56c0e48b3359c6.zip
Improve unit testing messages
Diffstat (limited to 'test/org/traccar/ProtocolDecoderTest.java')
-rw-r--r--test/org/traccar/ProtocolDecoderTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/org/traccar/ProtocolDecoderTest.java b/test/org/traccar/ProtocolDecoderTest.java
index 12964049c..b5efa7c29 100644
--- a/test/org/traccar/ProtocolDecoderTest.java
+++ b/test/org/traccar/ProtocolDecoderTest.java
@@ -67,7 +67,7 @@ public class ProtocolDecoderTest {
protected void verifyPositions(BaseProtocolDecoder decoder, Object object) throws Exception {
Object decodedObject = decoder.decode(null, null, object);
- Assert.assertNotNull(decodedObject);
+ Assert.assertNotNull("list is null", decodedObject);
Assert.assertTrue("not a list", decodedObject instanceof List);
Assert.assertFalse("list if empty", ((List) decodedObject).isEmpty());
for (Object item : (List) decodedObject) {
@@ -77,7 +77,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.assertNotNull("list is null", decodedObject);
Assert.assertTrue("not a list", decodedObject instanceof List);
Assert.assertFalse("list if empty", ((List) decodedObject).isEmpty());
for (Object item : (List) decodedObject) {