aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/ProtocolTest.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-04-16 14:53:05 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2017-04-16 14:53:05 +1200
commit1498b5c5a00c575ba67dce2dcfac0d77a8b4964a (patch)
tree5a3746b585e524b1f2a306b1009b30988fe314ea /test/org/traccar/ProtocolTest.java
parent5c127eee77815eabc5c99ee45b2767a0e61553a9 (diff)
downloadtrackermap-server-1498b5c5a00c575ba67dce2dcfac0d77a8b4964a.tar.gz
trackermap-server-1498b5c5a00c575ba67dce2dcfac0d77a8b4964a.tar.bz2
trackermap-server-1498b5c5a00c575ba67dce2dcfac0d77a8b4964a.zip
Fix H02 status code decoding
Diffstat (limited to 'test/org/traccar/ProtocolTest.java')
-rw-r--r--test/org/traccar/ProtocolTest.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/org/traccar/ProtocolTest.java b/test/org/traccar/ProtocolTest.java
index faf27071d..502fa6284 100644
--- a/test/org/traccar/ProtocolTest.java
+++ b/test/org/traccar/ProtocolTest.java
@@ -86,6 +86,10 @@ public class ProtocolTest extends BaseTest {
Assert.assertNull(decoder.decode(null, null, object));
}
+ protected void verifyAttribute(BaseProtocolDecoder decoder, Object object, String key, Object expected) throws Exception {
+ Assert.assertEquals(expected, ((Position) decoder.decode(null, null, object)).getAttributes().get(key));
+ }
+
protected void verifyAttributes(BaseProtocolDecoder decoder, Object object) throws Exception {
verifyDecodedPosition(decoder.decode(null, null, object), false, true, null);
}