aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-11-22 17:01:51 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2018-11-22 17:01:51 +1300
commit65d0cdf1a38861ac4a53b9c7fa6489c20c179df6 (patch)
treeec5f98e1b1ff6a52161bad7628c4b53f59839524 /test/org/traccar
parent8eb7ced3563809046d0b569247db490201f7ac98 (diff)
downloadtraccar-server-65d0cdf1a38861ac4a53b9c7fa6489c20c179df6.tar.gz
traccar-server-65d0cdf1a38861ac4a53b9c7fa6489c20c179df6.tar.bz2
traccar-server-65d0cdf1a38861ac4a53b9c7fa6489c20c179df6.zip
Support H002 protocol
Diffstat (limited to 'test/org/traccar')
-rw-r--r--test/org/traccar/protocol/Pt60ProtocolDecoderTest.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/Pt60ProtocolDecoderTest.java b/test/org/traccar/protocol/Pt60ProtocolDecoderTest.java
index f150c61a6..d2e06b193 100644
--- a/test/org/traccar/protocol/Pt60ProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/Pt60ProtocolDecoderTest.java
@@ -10,6 +10,15 @@ public class Pt60ProtocolDecoderTest extends ProtocolTest {
Pt60ProtocolDecoder decoder = new Pt60ProtocolDecoder(null);
+ verifyNull(decoder, text(
+ "@B#@|01|033|864891030184954|9425010450971470|0|4|20181120151744|"));
+
+ verifyPosition(decoder, text(
+ "@B#@|01|001|111112222233333|8888888888888888|1|55|20160715150323|125.48276|37.615124|111.059279|49.346383|1|"));
+
+ verifyPosition(decoder, text(
+ "@B#@|01|001|111112222233333|8888888888888888|1|55|20160715150323|125.48276|37.615124|1|"));
+
verifyAttributes(decoder, text(
"@G#@,V01,14,357653051059785,9404223001501310,20180419165604,101,26,"));