diff options
author | Valerii Vyshniak <valeravi@vi-soft.com.ua> | 2017-12-04 09:30:45 +0100 |
---|---|---|
committer | Valerii Vyshniak <valeravi@vi-soft.com.ua> | 2017-12-04 09:30:45 +0100 |
commit | b9c78ab2c6ac9f2e7598743114864aae04404ac1 (patch) | |
tree | 8b7d68fc325fe80765cfe69f59393ec168ee6c05 /test/org/traccar/protocol | |
parent | 8e60c4319f7931eabd98c88eeadfa1280c47974e (diff) | |
download | traccar-server-b9c78ab2c6ac9f2e7598743114864aae04404ac1.tar.gz traccar-server-b9c78ab2c6ac9f2e7598743114864aae04404ac1.tar.bz2 traccar-server-b9c78ab2c6ac9f2e7598743114864aae04404ac1.zip |
T580W: Parameter in constructor to force alternative tk103 encoder for tests
Diffstat (limited to 'test/org/traccar/protocol')
-rw-r--r-- | test/org/traccar/protocol/Tk103ProtocolEncoderTest.java | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/test/org/traccar/protocol/Tk103ProtocolEncoderTest.java b/test/org/traccar/protocol/Tk103ProtocolEncoderTest.java index c521d4d73..a99889e3b 100644 --- a/test/org/traccar/protocol/Tk103ProtocolEncoderTest.java +++ b/test/org/traccar/protocol/Tk103ProtocolEncoderTest.java @@ -104,7 +104,7 @@ public class Tk103ProtocolEncoderTest extends ProtocolTest { @Test public void testEncodePositionSingleAlternative() throws Exception { - Tk103ProtocolEncoderAlternative encoder = new Tk103ProtocolEncoderAlternative(); + Tk103ProtocolEncoder encoder = new Tk103ProtocolEncoder(true); Command command = new Command(); command.setDeviceId(1); @@ -117,7 +117,7 @@ public class Tk103ProtocolEncoderTest extends ProtocolTest { @Test public void testEncodePositionPeriodicAlternative() throws Exception { - Tk103ProtocolEncoderAlternative encoder = new Tk103ProtocolEncoderAlternative(); + Tk103ProtocolEncoder encoder = new Tk103ProtocolEncoder(true); Command command = new Command(); command.setDeviceId(1); @@ -130,7 +130,7 @@ public class Tk103ProtocolEncoderTest extends ProtocolTest { @Test public void testEncodePositionStopAlternative() throws Exception { - Tk103ProtocolEncoderAlternative encoder = new Tk103ProtocolEncoderAlternative(); + Tk103ProtocolEncoder encoder = new Tk103ProtocolEncoder(true); Command command = new Command(); command.setDeviceId(1); @@ -143,7 +143,7 @@ public class Tk103ProtocolEncoderTest extends ProtocolTest { @Test public void testEncodeGetVersionAlternative() throws Exception { - Tk103ProtocolEncoderAlternative encoder = new Tk103ProtocolEncoderAlternative(); + Tk103ProtocolEncoder encoder = new Tk103ProtocolEncoder(true); Command command = new Command(); command.setDeviceId(1); @@ -156,7 +156,7 @@ public class Tk103ProtocolEncoderTest extends ProtocolTest { @Test public void testEncodeRebootDeviceAlternative() throws Exception { - Tk103ProtocolEncoderAlternative encoder = new Tk103ProtocolEncoderAlternative(); + Tk103ProtocolEncoder encoder = new Tk103ProtocolEncoder(true); Command command = new Command(); command.setDeviceId(1); @@ -169,7 +169,7 @@ public class Tk103ProtocolEncoderTest extends ProtocolTest { @Test public void testEncodeIdentificationAlternative() throws Exception { - Tk103ProtocolEncoderAlternative encoder = new Tk103ProtocolEncoderAlternative(); + Tk103ProtocolEncoder encoder = new Tk103ProtocolEncoder(true); Command command = new Command(); command.setDeviceId(1); @@ -182,7 +182,7 @@ public class Tk103ProtocolEncoderTest extends ProtocolTest { @Test public void testEncodeSosOnAlternative() throws Exception { - Tk103ProtocolEncoderAlternative encoder = new Tk103ProtocolEncoderAlternative(); + Tk103ProtocolEncoder encoder = new Tk103ProtocolEncoder(true); Command command = new Command(); command.setDeviceId(1); @@ -196,7 +196,7 @@ public class Tk103ProtocolEncoderTest extends ProtocolTest { @Test public void testEncodeSosOffAlternative() throws Exception { - Tk103ProtocolEncoderAlternative encoder = new Tk103ProtocolEncoderAlternative(); + Tk103ProtocolEncoder encoder = new Tk103ProtocolEncoder(true); Command command = new Command(); command.setDeviceId(1); @@ -210,7 +210,7 @@ public class Tk103ProtocolEncoderTest extends ProtocolTest { @Test public void testEncodeCustomAlternative() throws Exception { - Tk103ProtocolEncoderAlternative encoder = new Tk103ProtocolEncoderAlternative(); + Tk103ProtocolEncoder encoder = new Tk103ProtocolEncoder(true); Command command = new Command(); command.setDeviceId(1); @@ -224,7 +224,7 @@ public class Tk103ProtocolEncoderTest extends ProtocolTest { @Test public void testEncodeSetConnectionAlternative() throws Exception { - Tk103ProtocolEncoderAlternative encoder = new Tk103ProtocolEncoderAlternative(); + Tk103ProtocolEncoder encoder = new Tk103ProtocolEncoder(true); Command command = new Command(); command.setDeviceId(1); @@ -239,7 +239,7 @@ public class Tk103ProtocolEncoderTest extends ProtocolTest { @Test public void testEncodeSosNumberAlternative() throws Exception { - Tk103ProtocolEncoderAlternative encoder = new Tk103ProtocolEncoderAlternative(); + Tk103ProtocolEncoder encoder = new Tk103ProtocolEncoder(true); Command command = new Command(); command.setDeviceId(1); |