aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/traccar/protocol/Tr20ProtocolDecoderTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/java/org/traccar/protocol/Tr20ProtocolDecoderTest.java')
-rw-r--r--src/test/java/org/traccar/protocol/Tr20ProtocolDecoderTest.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/test/java/org/traccar/protocol/Tr20ProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/Tr20ProtocolDecoderTest.java
index def280b04..1323691c6 100644
--- a/src/test/java/org/traccar/protocol/Tr20ProtocolDecoderTest.java
+++ b/src/test/java/org/traccar/protocol/Tr20ProtocolDecoderTest.java
@@ -1,6 +1,6 @@
package org.traccar.protocol;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import org.traccar.ProtocolTest;
public class Tr20ProtocolDecoderTest extends ProtocolTest {
@@ -8,7 +8,10 @@ public class Tr20ProtocolDecoderTest extends ProtocolTest {
@Test
public void testDecode() throws Exception {
- var decoder = new Tr20ProtocolDecoder(null);
+ var decoder = inject(new Tr20ProtocolDecoder(null));
+
+ verifyPosition(decoder, text(
+ "%%m13,L,221221103115,N1237.2271W00801.9500,000,000,B13.1:F0.0,04020000,253,CFG:133.00|"));
verifyPosition(decoder, text(
"%%TR20GRANT,L,210602170135,N0951.1733W08356.7672,000,000,C80:F0,00020008,108,CFG:6980.00|"));