aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-11-09 03:36:54 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-11-09 03:36:54 +1300
commit2a312faf02efc0130c419d31abd6169b6da30806 (patch)
tree83a13c2e60b35ff70cac9d6bdcd172251633dee9 /test/org/traccar/protocol
parent504c0dbc6e77c35041f0f1237bb0325ab1c0bd24 (diff)
downloadtrackermap-server-2a312faf02efc0130c419d31abd6169b6da30806.tar.gz
trackermap-server-2a312faf02efc0130c419d31abd6169b6da30806.tar.bz2
trackermap-server-2a312faf02efc0130c419d31abd6169b6da30806.zip
Extend upro protocol decoder
Diffstat (limited to 'test/org/traccar/protocol')
-rw-r--r--test/org/traccar/protocol/UproProtocolDecoderTest.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/UproProtocolDecoderTest.java b/test/org/traccar/protocol/UproProtocolDecoderTest.java
index aab31ba26..d553d5f52 100644
--- a/test/org/traccar/protocol/UproProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/UproProtocolDecoderTest.java
@@ -10,6 +10,15 @@ public class UproProtocolDecoderTest extends ProtocolTest {
UproProtocolDecoder decoder = new UproProtocolDecoder(new UproProtocol());
+ verifyNothing(decoder, text(
+ "*MG20113800138000,AH#"));
+
+ verifyPosition(decoder, text(
+ "*MG201693502000034964,AB&A0200183324418107033792800009051116&B0000000000&N15&Z94&U_P\0\0\0\0\0\0\0\0\0\0\0\0\0\0#"));
+
+ verifyPosition(decoder, text(
+ "*MG201693502000034964,AB&A0200543324412007033805910000051116&P0730000032d66785&B0000000000&N15&Z92&U_P\0\0\0\0\0\0\0\0\0\0\0\0\0\0#"));
+
verifyPosition(decoder, text(
"*AI2000905447674,BA&A2003064913201201845107561627121016&B0100000000&C05>8=961&F0333&K023101002154A7#"));