aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2024-08-02 06:47:34 -0700
committerAnton Tananaev <anton@traccar.org>2024-08-02 06:47:34 -0700
commitc289b5f90b93c2b55f1e0cedba0e0c04e0ecc7e1 (patch)
treec8b3654a9e2eb946dd2b2454d355995e59b4d285 /src/test/java/org/traccar
parentdedf5f179205c03cae27072c9ab3c30c2a91de4c (diff)
downloadtrackermap-server-c289b5f90b93c2b55f1e0cedba0e0c04e0ecc7e1.tar.gz
trackermap-server-c289b5f90b93c2b55f1e0cedba0e0c04e0ecc7e1.tar.bz2
trackermap-server-c289b5f90b93c2b55f1e0cedba0e0c04e0ecc7e1.zip
Add Megastek unit test
Diffstat (limited to 'src/test/java/org/traccar')
-rw-r--r--src/test/java/org/traccar/protocol/MegastekProtocolDecoderTest.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/MegastekProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/MegastekProtocolDecoderTest.java
index 227fb20e0..bdfe712c5 100644
--- a/src/test/java/org/traccar/protocol/MegastekProtocolDecoderTest.java
+++ b/src/test/java/org/traccar/protocol/MegastekProtocolDecoderTest.java
@@ -10,6 +10,9 @@ public class MegastekProtocolDecoderTest extends ProtocolTest {
public void testDecode() throws Exception {
var decoder = inject(new MegastekProtocolDecoder(null));
+
+ verifyNull(decoder, text(
+ "0226$MGV002,860537065044539,,S,020824,120719,V,5339.11529,N,01011.15575,E,00,00,00,99.9,3.255,,52.1,,262,01,FFFE,277A602,14,000,0000,0000,0,,,,,01000,078,Timer,dc15c8984804:65|50e63698d1d5:70|44053fdacd6e:73|e0516314f2a7:88,,0,,;!"));
verifyPosition(decoder, text(
"$MGV002,860719020193193,,S,070521,160748,V,2255.09165,N,11404.01322,E,00,00,00,,,,,,,,,,,,,,,,,,,10,015,Restart;!"));