aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/ProtocolDecoderTest.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-10-29 15:09:52 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-10-29 15:09:52 +1300
commit0d65586e0011f44d7597a0e332a0a1b83276607c (patch)
tree499ff94d48578eacf63451426f5d2380c32fa938 /test/org/traccar/ProtocolDecoderTest.java
parent9a72eea4bfe43dba9512cfef744d539d5f78ad49 (diff)
downloadtrackermap-server-0d65586e0011f44d7597a0e332a0a1b83276607c.tar.gz
trackermap-server-0d65586e0011f44d7597a0e332a0a1b83276607c.tar.bz2
trackermap-server-0d65586e0011f44d7597a0e332a0a1b83276607c.zip
Fix a problem in GoSafe decoder
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);
}