aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/traccar/protocol/TechtoCruzProtocolDecoderTest.java
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2021-12-27 18:22:07 -0600
committerIván Ávalos <avalos@disroot.org>2021-12-27 18:22:07 -0600
commitf03b999d6d17e53c1c1e1aa2f9271d03f12f2264 (patch)
treea16d409887e65e4211e0f8ea4fc73a86e637a032 /src/test/java/org/traccar/protocol/TechtoCruzProtocolDecoderTest.java
parent3a528ddc88f72f39ff9566cf5e0f54938b1584ef (diff)
parent790db6295f130e64c8346f13985dd0c15f938b40 (diff)
downloadtraccar-server-f03b999d6d17e53c1c1e1aa2f9271d03f12f2264.tar.gz
traccar-server-f03b999d6d17e53c1c1e1aa2f9271d03f12f2264.tar.bz2
traccar-server-f03b999d6d17e53c1c1e1aa2f9271d03f12f2264.zip
Merge branch 'master' into suntech-fixes
Diffstat (limited to 'src/test/java/org/traccar/protocol/TechtoCruzProtocolDecoderTest.java')
-rw-r--r--src/test/java/org/traccar/protocol/TechtoCruzProtocolDecoderTest.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/TechtoCruzProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/TechtoCruzProtocolDecoderTest.java
new file mode 100644
index 000000000..4cef682b4
--- /dev/null
+++ b/src/test/java/org/traccar/protocol/TechtoCruzProtocolDecoderTest.java
@@ -0,0 +1,21 @@
+package org.traccar.protocol;
+
+import org.junit.Test;
+import org.traccar.ProtocolTest;
+
+public class TechtoCruzProtocolDecoderTest extends ProtocolTest {
+
+ @Test
+ public void testDecode() throws Exception {
+
+ var decoder = new TechtoCruzProtocolDecoder(null);
+
+ verifyPosition(decoder, text(
+ "$$A120,8612345678910,211005105836,A,FLEX,KCB 947C,000.0,0,-1.38047,S,36.93951,E,1648.4,243.140,21,28,12.1,3.7,0,1,0,0,0,*F6"));
+
+ verifyNull(decoder, text(
+ "$$A35,RESPO|G33|8612345678910|CRUZ,*E3"));
+
+ }
+
+}