aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol/SuntechProtocolDecoderTest.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-10-17 16:52:38 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2018-10-17 16:52:38 +1300
commitae32084f88df4436e1a2cdcb346ff1e7e286e369 (patch)
tree5ec96dcedf19aa0c435c0e4d38f2ba60f583f9f6 /test/org/traccar/protocol/SuntechProtocolDecoderTest.java
parent6f707c42d2798c93009e289a46d2faf918b75eea (diff)
downloadtrackermap-server-ae32084f88df4436e1a2cdcb346ff1e7e286e369.tar.gz
trackermap-server-ae32084f88df4436e1a2cdcb346ff1e7e286e369.tar.bz2
trackermap-server-ae32084f88df4436e1a2cdcb346ff1e7e286e369.zip
Avoid protocol classes in tests
Diffstat (limited to 'test/org/traccar/protocol/SuntechProtocolDecoderTest.java')
-rw-r--r--test/org/traccar/protocol/SuntechProtocolDecoderTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/org/traccar/protocol/SuntechProtocolDecoderTest.java b/test/org/traccar/protocol/SuntechProtocolDecoderTest.java
index 3b907e080..7e4de91d6 100644
--- a/test/org/traccar/protocol/SuntechProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/SuntechProtocolDecoderTest.java
@@ -8,7 +8,7 @@ public class SuntechProtocolDecoderTest extends ProtocolTest {
@Test
public void testDecodeTemperature() throws Exception {
- SuntechProtocolDecoder decoder = new SuntechProtocolDecoder(new SuntechProtocol());
+ SuntechProtocolDecoder decoder = new SuntechProtocolDecoder(null);
decoder.setHbm(true);
decoder.setIncludeAdc(true);
@@ -25,7 +25,7 @@ public class SuntechProtocolDecoderTest extends ProtocolTest {
@Test
public void testDecode() throws Exception {
- SuntechProtocolDecoder decoder = new SuntechProtocolDecoder(new SuntechProtocol());
+ SuntechProtocolDecoder decoder = new SuntechProtocolDecoder(null);
verifyPosition(decoder, text(
"ST410STT;007272376;408;01;21651;732;123;-65;1824;1;21654;732;123;1824;0;0;22542;732;123;1824;0;0;21656;732;123;1824;0;0;21655;732;123;1824;0;0;22541;732;123;1824;0;0;0;0;0;0;0;0;3.7;1;0156;1;20180816;05:18:52;+04.722322;-074.052776;000.074;000.00;10;1"));