aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/ProtocolDecoderTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/org/traccar/ProtocolDecoderTest.java')
-rw-r--r--test/org/traccar/ProtocolDecoderTest.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/org/traccar/ProtocolDecoderTest.java b/test/org/traccar/ProtocolDecoderTest.java
index e6d5270e8..925f457a1 100644
--- a/test/org/traccar/ProtocolDecoderTest.java
+++ b/test/org/traccar/ProtocolDecoderTest.java
@@ -69,6 +69,7 @@ public class ProtocolDecoderTest {
Object decodedObject = decoder.decode(null, null, object);
Assert.assertNotNull(decodedObject);
Assert.assertTrue(decodedObject instanceof List);
+ Assert.assertFalse("list if empty", ((List) decodedObject).isEmpty());
for (Object item : (List) decodedObject) {
verifyDecodedPosition(item);
}
@@ -78,6 +79,7 @@ public class ProtocolDecoderTest {
Object decodedObject = decoder.decode(null, null, object);
Assert.assertNotNull(decodedObject);
Assert.assertTrue(decodedObject instanceof List);
+ Assert.assertFalse("list if empty", ((List) decodedObject).isEmpty());
for (Object item : (List) decodedObject) {
verifyDecodedPosition(item, position);
}