aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol/WristbandProtocolDecoderTest.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-12-31 10:49:08 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2018-12-31 10:49:08 -0800
commitb8353006ba89aa67eefc6c06f423812d9c06432a (patch)
treec928fd470f57debef0a173b8ba23bc85880dd4f1 /test/org/traccar/protocol/WristbandProtocolDecoderTest.java
parentff6a7b59b84dbb648f35e08f013f8852060e321d (diff)
downloadtrackermap-server-b8353006ba89aa67eefc6c06f423812d9c06432a.tar.gz
trackermap-server-b8353006ba89aa67eefc6c06f423812d9c06432a.tar.bz2
trackermap-server-b8353006ba89aa67eefc6c06f423812d9c06432a.zip
Decode additional Wristband data
Diffstat (limited to 'test/org/traccar/protocol/WristbandProtocolDecoderTest.java')
-rw-r--r--test/org/traccar/protocol/WristbandProtocolDecoderTest.java11
1 files changed, 10 insertions, 1 deletions
diff --git a/test/org/traccar/protocol/WristbandProtocolDecoderTest.java b/test/org/traccar/protocol/WristbandProtocolDecoderTest.java
index 1c094d075..5635ce3d4 100644
--- a/test/org/traccar/protocol/WristbandProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/WristbandProtocolDecoderTest.java
@@ -10,6 +10,15 @@ public class WristbandProtocolDecoderTest extends ProtocolTest {
WristbandProtocolDecoder decoder = new WristbandProtocolDecoder(null);
+ verifyNotNull(decoder, binary(
+ "000102004459583836383730343034343735303035357c56312e307c317c7b4630342331382c30372c332c3539303139322c33303a31382c30372c332c3539303139322c33307d0d0afffefc"));
+
+ verifyNotNull(decoder, binary(
+ "000102009c59583836383730343034343735303035357c56312e307c317c7b4630332330383a30353a38313a64383a31383a38372c2d37365f30303a37663a32383a63373a62613a63312c2d37375f39633a33643a63663a65643a62643a36622c2d36335f64383a65623a39373a65653a37373a32342c2d38327c31382c30372c332c3539303735342c33303a31382c30372c332c3539303735342c33307d0d0afffefc"));
+
+ verifyNull(decoder, binary(
+ "000102002259583836383730343034343735303035357c56312e307c307c7b46363423317d0d0afffefc"));
+
verifyPositions(decoder, binary(
"00010200bc59583836383730343034343735303035357c56312e307c317c7b4630322337372e3437373831372c2d33382e3839363239322c3230313831323239313235352c302e35387c37372e3437373739362c2d33382e3839363234352c3230313831323239313235352c302e30307c37372e3437373738392c2d33382e3839363233322c3230313831323239313235352c302e30307c37372e3437373737362c2d33382e3839363232322c3230313831323239313235352c302e30307d0d0afffefc"));
@@ -19,7 +28,7 @@ public class WristbandProtocolDecoderTest extends ProtocolTest {
verifyNull(decoder, binary(
"000102004159583336373535313631303030303934347c56312e307c317c7b4639312330317c30307c30307c33475f7065745f323031382f30352f31362031313a30307d0d0afffefc"));
- verifyNull(decoder, binary(
+ verifyPositions(decoder, false, binary(
"000102003559583836383730343034343735303035357c56312e307c317c7b4630312339342c312c3130302c302c33313030302c3930307d0d0afffefc"));
}