aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2022-01-21 18:59:49 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2022-01-21 18:59:49 -0800
commitcb07c34f3b79d82d85ab6c0df8f64c3c3facc3a0 (patch)
tree3830f47a8a06d60863faffdeee7cef6064f22032 /src/test/java/org
parent2284044f7e9e00935e6ec5020e68ef2492326dda (diff)
downloadtrackermap-server-cb07c34f3b79d82d85ab6c0df8f64c3c3facc3a0.tar.gz
trackermap-server-cb07c34f3b79d82d85ab6c0df8f64c3c3facc3a0.tar.bz2
trackermap-server-cb07c34f3b79d82d85ab6c0df8f64c3c3facc3a0.zip
Update Armoli protocol
Diffstat (limited to 'src/test/java/org')
-rw-r--r--src/test/java/org/traccar/protocol/ArmoliProtocolDecoderTest.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/ArmoliProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/ArmoliProtocolDecoderTest.java
index 0851b1e05..9b5aa4125 100644
--- a/src/test/java/org/traccar/protocol/ArmoliProtocolDecoderTest.java
+++ b/src/test/java/org/traccar/protocol/ArmoliProtocolDecoderTest.java
@@ -2,6 +2,7 @@ package org.traccar.protocol;
import org.junit.Test;
import org.traccar.ProtocolTest;
+import org.traccar.model.Position;
public class ArmoliProtocolDecoderTest extends ProtocolTest {
@@ -10,6 +11,13 @@ public class ArmoliProtocolDecoderTest extends ProtocolTest {
var decoder = new ArmoliProtocolDecoder(null);
+ verifyAttribute(decoder, text(
+ "[W869867038698074,O,1234,2657,1];"),
+ Position.KEY_RESULT, "O,1234,2657,1");
+
+ verifyPosition(decoder, text(
+ "[M869867038698074210122125205N38.735641E035.4727751E003340000000C00000E9E07FF:106AG505283H60E];"));
+
verifyNull(decoder, text(
"[Q010001088610010024363698990011101070608200,05XXXXXXXXX,10.49.182.53,C,1,20,19,0];"));