aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-10-25 07:18:50 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-10-25 07:18:50 +1300
commit607d7229c7d6fee9e97fd1204016b6dda59f9be6 (patch)
treed1816c429300ebe26e3050061cd7bb111905f27d /test
parent45a0a7ff45edf661f6f9a78fafb63f31207fbf43 (diff)
downloadtrackermap-server-607d7229c7d6fee9e97fd1204016b6dda59f9be6.tar.gz
trackermap-server-607d7229c7d6fee9e97fd1204016b6dda59f9be6.tar.bz2
trackermap-server-607d7229c7d6fee9e97fd1204016b6dda59f9be6.zip
Add Bofan unit test cases
Diffstat (limited to 'test')
-rw-r--r--test/org/traccar/protocol/Pt502ProtocolDecoderTest.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/Pt502ProtocolDecoderTest.java b/test/org/traccar/protocol/Pt502ProtocolDecoderTest.java
index 3ea83ef60..8b1dd5ad6 100644
--- a/test/org/traccar/protocol/Pt502ProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/Pt502ProtocolDecoderTest.java
@@ -11,6 +11,15 @@ public class Pt502ProtocolDecoderTest extends ProtocolTest {
Pt502ProtocolDecoder decoder = new Pt502ProtocolDecoder(new Pt502Protocol());
verifyPosition(decoder, text(
+ "$HDA,20007,134657.000,A,0626.1607,N,00330.2245,E,33.38,81.79,041016,,,A/00010,00000/270,0,0,0/19948900//fa4//"));
+
+ verifyPosition(decoder, text(
+ "$HDB,20007,134708.000,A,0626.1759,N,00330.3192,E,26.55,80.37,041016,,,A/00010,00000/23b,0,0,0/19949100//fa4//"));
+
+ verifyPosition(decoder, text(
+ "$POS,20007,134704.000,A,0626.1698,N,00330.2870,E,31.23,79.58,041016,,,A/00010,00000/26c,0,0,0/19949100//fa4//#"));
+
+ verifyPosition(decoder, text(
"$PHO6608,115099,133140.000,A,1307.1238,N,05936.4194,W,0.00,21.50,290816,,,A/00010,00000/0,0,0,0/185100//f59/"));
verifyPosition(decoder, text(