aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-10-01 08:48:34 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2017-10-01 08:48:34 +1300
commit8e137d15f3db64909f5bd6e1ceb4b6a0bef8bed1 (patch)
tree7386ea18c048f6b5163e22e76da68ca2e61505f8
parent36d09739e518f715800c924c90f0b598a9912433 (diff)
downloadtraccar-server-8e137d15f3db64909f5bd6e1ceb4b6a0bef8bed1.tar.gz
traccar-server-8e137d15f3db64909f5bd6e1ceb4b6a0bef8bed1.tar.bz2
traccar-server-8e137d15f3db64909f5bd6e1ceb4b6a0bef8bed1.zip
Add Megastek test case
-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 a20a0b69b..106baff98 100644
--- a/test/org/traccar/protocol/MegastekProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/MegastekProtocolDecoderTest.java
@@ -10,6 +10,9 @@ public class MegastekProtocolDecoderTest extends ProtocolTest {
MegastekProtocolDecoder decoder = new MegastekProtocolDecoder(new MegastekProtocol());
+ verifyNull(decoder, text(
+ "0140$MGV002,354550056642321,GVT900-3,S,300917,071731,V,,,,,00,00,00,99.9,0.000,0.00,,0.0,457,01,0741,00CD,,0000,0000,20,10,0, , ,,1-1,94,PW ON;!"));
+
verifyPosition(decoder, text(
"$MGV002,869152024446923,,S,290816,200627,V,5056.21059,N,00439.25034,E,00,00,00,99.9,,,-25.1,,206,01,0BBB,4418,28,,,,,,,,,01,093,Timer;"));