aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/ProtocolTest.java
diff options
context:
space:
mode:
authornamo <namo@gurtam.com>2017-10-24 12:26:29 +0300
committernamo <namo@gurtam.com>2017-10-24 12:26:29 +0300
commit4b8095a1c91ae2fc9bcd6cfc6e291c7b63af3cd1 (patch)
tree5ada29ae0b4c92abaa336ecb396df1dc11cd51ed /test/org/traccar/ProtocolTest.java
parentad8ee1702e02e02533e9f20e06af960b2cf3c647 (diff)
downloadtrackermap-server-4b8095a1c91ae2fc9bcd6cfc6e291c7b63af3cd1.tar.gz
trackermap-server-4b8095a1c91ae2fc9bcd6cfc6e291c7b63af3cd1.tar.bz2
trackermap-server-4b8095a1c91ae2fc9bcd6cfc6e291c7b63af3cd1.zip
Revert "flespi integration: listening messages (rev.5): unit test added"
This reverts commit ad8ee1702e02e02533e9f20e06af960b2cf3c647.
Diffstat (limited to 'test/org/traccar/ProtocolTest.java')
-rw-r--r--test/org/traccar/ProtocolTest.java14
1 files changed, 5 insertions, 9 deletions
diff --git a/test/org/traccar/ProtocolTest.java b/test/org/traccar/ProtocolTest.java
index daff777a6..1daefabd6 100644
--- a/test/org/traccar/ProtocolTest.java
+++ b/test/org/traccar/ProtocolTest.java
@@ -98,10 +98,6 @@ public class ProtocolTest extends BaseTest {
verifyDecodedPosition(decoder.decode(null, null, object), false, true, null);
}
- protected void verifyAttributesList(BaseProtocolDecoder decoder, Object object) throws Exception {
- verifyDecodedList(decoder.decode(null, null, object), false, true, null);
- }
-
protected void verifyPosition(BaseProtocolDecoder decoder, Object object) throws Exception {
verifyDecodedPosition(decoder.decode(null, null, object), true, false, null);
}
@@ -111,25 +107,25 @@ public class ProtocolTest extends BaseTest {
}
protected void verifyPositions(BaseProtocolDecoder decoder, Object object) throws Exception {
- verifyDecodedList(decoder.decode(null, null, object), true, false, null);
+ verifyDecodedList(decoder.decode(null, null, object), true, null);
}
protected void verifyPositions(BaseProtocolDecoder decoder, boolean checkLocation, Object object) throws Exception {
- verifyDecodedList(decoder.decode(null, null, object), checkLocation, false, null);
+ verifyDecodedList(decoder.decode(null, null, object), checkLocation, null);
}
protected void verifyPositions(BaseProtocolDecoder decoder, Object object, Position position) throws Exception {
- verifyDecodedList(decoder.decode(null, null, object), true, false, position);
+ verifyDecodedList(decoder.decode(null, null, object), true, position);
}
- private void verifyDecodedList(Object decodedObject, boolean checkLocation, boolean checkAttributes, Position expected) {
+ private void verifyDecodedList(Object decodedObject, boolean checkLocation, Position expected) {
Assert.assertNotNull("list is null", decodedObject);
Assert.assertTrue("not a list", decodedObject instanceof List);
Assert.assertFalse("list is empty", ((List) decodedObject).isEmpty());
for (Object item : (List) decodedObject) {
- verifyDecodedPosition(item, checkLocation, checkAttributes, expected);
+ verifyDecodedPosition(item, checkLocation, false, expected);
}
}