From 90c2f67629064126834450aafcaffdc4187fe55a Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 13 Apr 2021 20:24:53 -0700 Subject: Support Mictrack command results --- .../java/org/traccar/protocol/MictrackProtocolDecoderTest.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/test/java/org/traccar') 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"), -- cgit v1.2.3