aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/traccar/protocol/TeltonikaProtocolDecoderTest.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-05-30 14:04:24 -0700
committerAnton Tananaev <anton@traccar.org>2022-05-30 14:04:24 -0700
commit014cf82a9e63a36e944e293932f9edf27e452919 (patch)
tree7ac5899f535fbf47e66dc1321738c951473a009b /src/test/java/org/traccar/protocol/TeltonikaProtocolDecoderTest.java
parentce661ec77a957b70c15509c6801e6f34b32ad11d (diff)
downloadtrackermap-server-014cf82a9e63a36e944e293932f9edf27e452919.tar.gz
trackermap-server-014cf82a9e63a36e944e293932f9edf27e452919.tar.bz2
trackermap-server-014cf82a9e63a36e944e293932f9edf27e452919.zip
No context dependency for decoder
Diffstat (limited to 'src/test/java/org/traccar/protocol/TeltonikaProtocolDecoderTest.java')
-rw-r--r--src/test/java/org/traccar/protocol/TeltonikaProtocolDecoderTest.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/java/org/traccar/protocol/TeltonikaProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/TeltonikaProtocolDecoderTest.java
index c3c32369c..0ae4bbfa4 100644
--- a/src/test/java/org/traccar/protocol/TeltonikaProtocolDecoderTest.java
+++ b/src/test/java/org/traccar/protocol/TeltonikaProtocolDecoderTest.java
@@ -9,7 +9,7 @@ public class TeltonikaProtocolDecoderTest extends ProtocolTest {
@Test
public void testDecode() throws Exception {
- var decoder = new TeltonikaProtocolDecoder(null, false);
+ var decoder = inject(new TeltonikaProtocolDecoder(null, false));
verifyNull(decoder, binary(
"000F313233343536373839303132333435"));
@@ -127,7 +127,7 @@ public class TeltonikaProtocolDecoderTest extends ProtocolTest {
@Test
public void testDecodePhoto() throws Exception {
- var decoder = new TeltonikaProtocolDecoder(null, false);
+ var decoder = inject(new TeltonikaProtocolDecoder(null, false));
verifyNull(decoder, binary(
"000F313233343536373839303132333435"));
@@ -147,7 +147,7 @@ public class TeltonikaProtocolDecoderTest extends ProtocolTest {
@Test
public void testDecodeConnectionless() throws Exception {
- var decoder = new TeltonikaProtocolDecoder(null, true);
+ var decoder = inject(new TeltonikaProtocolDecoder(null, true));
verifyPositions(decoder, false, binary(
"0049cafe0122000f33353734353430373237313339373508010000015d3766f6a800003eef961ec6215e0063006d09003100070401000200f001c8000242381c18003201c7000000e10001"));