aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol/TeltonikaProtocolDecoderTest.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-10-17 17:08:59 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2018-10-17 17:08:59 +1300
commit61d4c1f15b645aa06c84905933108437e1ade92a (patch)
tree33ca5e2e7d262c6941d66a6c23ff37c2c32e7a8f /test/org/traccar/protocol/TeltonikaProtocolDecoderTest.java
parentae32084f88df4436e1a2cdcb346ff1e7e286e369 (diff)
downloadtrackermap-server-61d4c1f15b645aa06c84905933108437e1ade92a.tar.gz
trackermap-server-61d4c1f15b645aa06c84905933108437e1ade92a.tar.bz2
trackermap-server-61d4c1f15b645aa06c84905933108437e1ade92a.zip
Move server init into constructor
Diffstat (limited to 'test/org/traccar/protocol/TeltonikaProtocolDecoderTest.java')
-rw-r--r--test/org/traccar/protocol/TeltonikaProtocolDecoderTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/org/traccar/protocol/TeltonikaProtocolDecoderTest.java b/test/org/traccar/protocol/TeltonikaProtocolDecoderTest.java
index 12eb57f35..802cae877 100644
--- a/test/org/traccar/protocol/TeltonikaProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/TeltonikaProtocolDecoderTest.java
@@ -9,7 +9,7 @@ public class TeltonikaProtocolDecoderTest extends ProtocolTest {
@Test
public void testDecode() throws Exception {
- TeltonikaProtocolDecoder decoder = new TeltonikaProtocolDecoder(new TeltonikaProtocol(), false);
+ TeltonikaProtocolDecoder decoder = new TeltonikaProtocolDecoder(null, false);
verifyNull(decoder, binary(
"000F313233343536373839303132333435"));
@@ -97,7 +97,7 @@ public class TeltonikaProtocolDecoderTest extends ProtocolTest {
@Test
public void testDecodeConnectionless() throws Exception {
- TeltonikaProtocolDecoder decoder = new TeltonikaProtocolDecoder(new TeltonikaProtocol(), true);
+ TeltonikaProtocolDecoder decoder = new TeltonikaProtocolDecoder(null, true);
verifyPositions(decoder, false, binary(
"0049cafe0122000f33353734353430373237313339373508010000015d3766f6a800003eef961ec6215e0063006d09003100070401000200f001c8000242381c18003201c7000000e10001"));