aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-04-13 20:24:53 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2021-04-13 20:24:53 -0700
commit90c2f67629064126834450aafcaffdc4187fe55a (patch)
tree8f574a40fa974e19473baaaa9042bd6f646fae2e /src/test
parent57b5aa9ada42f1c113dc0cef8f259b55b6f9ea69 (diff)
downloadtraccar-server-90c2f67629064126834450aafcaffdc4187fe55a.tar.gz
traccar-server-90c2f67629064126834450aafcaffdc4187fe55a.tar.bz2
traccar-server-90c2f67629064126834450aafcaffdc4187fe55a.zip
Support Mictrack command results
Diffstat (limited to 'src/test')
-rw-r--r--src/test/java/org/traccar/protocol/MictrackProtocolDecoderTest.java10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/test/java/org/traccar/protocol/MictrackProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/MictrackProtocolDecoderTest.java
index 3360d968b..5c9e74a2d 100644
--- a/src/test/java/org/traccar/protocol/MictrackProtocolDecoderTest.java
+++ b/src/test/java/org/traccar/protocol/MictrackProtocolDecoderTest.java
@@ -2,6 +2,7 @@ package org.traccar.protocol;
import org.junit.Test;
import org.traccar.ProtocolTest;
+import org.traccar.model.Position;
public class MictrackProtocolDecoderTest extends ProtocolTest {
@@ -10,8 +11,13 @@ public class MictrackProtocolDecoderTest extends ProtocolTest {
var decoder = new MictrackProtocolDecoder(null);
- verifyNull(decoder, text(
- "mode=Success!"));
+ verifyAttribute(decoder, text(
+ "867035041390699 netlock=Success!"),
+ Position.KEY_RESULT, "netlock=Success");
+
+ verifyAttribute(decoder, text(
+ "mode=Success!"),
+ Position.KEY_RESULT, "mode=Success");
verifyPosition(decoder, text(
"MT;6;866425031361423;R0;10+190109091803+22.63827+114.02922+2.14+69+2+3744+113"),