aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2022-01-10 23:58:30 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2022-01-10 23:58:30 -0800
commit847960abb40e37c598af082e96a742ca745a7ff5 (patch)
tree2991bfdf66dbdb936dbad10ad38469b82ba21504 /src/test/java/org
parent8ceefb941be5109a402ec55cda5a65f3555fd204 (diff)
downloadtrackermap-server-847960abb40e37c598af082e96a742ca745a7ff5.tar.gz
trackermap-server-847960abb40e37c598af082e96a742ca745a7ff5.tar.bz2
trackermap-server-847960abb40e37c598af082e96a742ca745a7ff5.zip
Implement ARTE Armoli protocol
Diffstat (limited to 'src/test/java/org')
-rw-r--r--src/test/java/org/traccar/protocol/ArmoliProtocolDecoderTest.java24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/ArmoliProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/ArmoliProtocolDecoderTest.java
new file mode 100644
index 000000000..0851b1e05
--- /dev/null
+++ b/src/test/java/org/traccar/protocol/ArmoliProtocolDecoderTest.java
@@ -0,0 +1,24 @@
+package org.traccar.protocol;
+
+import org.junit.Test;
+import org.traccar.ProtocolTest;
+
+public class ArmoliProtocolDecoderTest extends ProtocolTest {
+
+ @Test
+ public void testDecode() throws Exception {
+
+ var decoder = new ArmoliProtocolDecoder(null);
+
+ verifyNull(decoder, text(
+ "[Q010001088610010024363698990011101070608200,05XXXXXXXXX,10.49.182.53,C,1,20,19,0];"));
+
+ verifyPosition(decoder, text(
+ "[M860906041293587100122061310N40.792751E029.4313092801143000000010003513209FFGC18080H8DA#E209C4];"));
+
+ verifyNull(decoder, text(
+ "[L866104027971681];"));
+
+ }
+
+}