aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-08-25 03:31:34 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2016-08-25 04:03:11 +1200
commitaec8f66aa1c1f0f8364ed4b59ddc196a939c6fed (patch)
treec7383b816cb8e578a4ae2e2730ef50d9122ec9d9 /test
parent43033e0bd19dc99d9e571881aadee3b0285f4574 (diff)
downloadtrackermap-server-aec8f66aa1c1f0f8364ed4b59ddc196a939c6fed.tar.gz
trackermap-server-aec8f66aa1c1f0f8364ed4b59ddc196a939c6fed.tar.bz2
trackermap-server-aec8f66aa1c1f0f8364ed4b59ddc196a939c6fed.zip
Modify Megastek new format pattern
Diffstat (limited to 'test')
-rw-r--r--test/org/traccar/protocol/MegastekProtocolDecoderTest.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/MegastekProtocolDecoderTest.java b/test/org/traccar/protocol/MegastekProtocolDecoderTest.java
index 57700d36a..d6056869b 100644
--- a/test/org/traccar/protocol/MegastekProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/MegastekProtocolDecoderTest.java
@@ -11,6 +11,9 @@ public class MegastekProtocolDecoderTest extends ProtocolTest {
MegastekProtocolDecoder decoder = new MegastekProtocolDecoder(new MegastekProtocol());
verifyPosition(decoder, text(
+ "$MGV002,869152024446923,869152024446923,S,240816,151631,A,5053.83335,N,00424.05702,E,00,10,00,0.88,2.645,76.09,22.7,,206,01,07D1,6600,28,,,,,,,,,01,100,Timer;!"));
+
+ verifyPosition(decoder, text(
"STX,013950007137061,$GPRMC,191959.000,A,5203.09602,N,00830.77057,E,5.73,255.27,240716,,,A*62,L,Belt Up,imei:013950007137061,0/5,,Battery=52%,,1,262,03,0084,B20E;FD"));
verifyPosition(decoder, text(