Skip to content

Commit

Permalink
Avoid protocol classes in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tananaev committed Oct 17, 2018
1 parent 6f707c4 commit ae32084
Show file tree
Hide file tree
Showing 177 changed files with 188 additions and 186 deletions.
4 changes: 3 additions & 1 deletion src/org/traccar/BaseProtocolDecoder.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ public abstract class BaseProtocolDecoder extends ExtendedObjectDecoder {

private static final Logger LOGGER = LoggerFactory.getLogger(BaseProtocolDecoder.class);

private static final String PROTOCOL_UNKNOWN = "unknown";

private final Config config = Context.getConfig();
private final IdentityManager identityManager = Context.getIdentityManager();
private final ConnectionManager connectionManager = Context.getConnectionManager();
Expand All @@ -50,7 +52,7 @@ public BaseProtocolDecoder(Protocol protocol) {
}

public String getProtocolName() {
return protocol != null ? protocol.getName() : null;
return protocol != null ? protocol.getName() : PROTOCOL_UNKNOWN;
}

public String getServer(Channel channel) {
Expand Down
2 changes: 1 addition & 1 deletion test/org/traccar/protocol/AdmProtocolDecoderTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class AdmProtocolDecoderTest extends ProtocolTest {
@Test
public void testDecode() throws Exception {

AdmProtocolDecoder decoder = new AdmProtocolDecoder(new AdmProtocol());
AdmProtocolDecoder decoder = new AdmProtocolDecoder(null);

verifyNull(decoder, binary(
"010042033836313331313030323639343838320501000000000000000000000000000000000000000000000000000000000000000000000000000000000000000073"));
Expand Down
2 changes: 1 addition & 1 deletion test/org/traccar/protocol/AisProtocolDecoderTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class AisProtocolDecoderTest extends ProtocolTest {
@Test
public void testDecode() throws Exception {

AisProtocolDecoder decoder = new AisProtocolDecoder(new AisProtocol());
AisProtocolDecoder decoder = new AisProtocolDecoder(null);

verifyPositions(decoder, text(
"!AIVDM,2,1,8,A,53UlSb01l>Ei=H4KF218PTpv222222222222221?8h=766gB0<Ck11DTp888,0*14s:MTb827ebc7686b,c:1481688227737*4d\\\r\n" +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class AlematicsProtocolDecoderTest extends ProtocolTest {
@Test
public void testDecode() throws Exception {

AlematicsProtocolDecoder decoder = new AlematicsProtocolDecoder(new AlematicsProtocol());
AlematicsProtocolDecoder decoder = new AlematicsProtocolDecoder(null);

verifyPosition(decoder, text(
"$T,2,64,866050035975497,20180726103446,20180726103514,23.033305,72.558032,0,0,41,5.4,4,0,0,0.000,12.960,0,"));
Expand Down
2 changes: 1 addition & 1 deletion test/org/traccar/protocol/AnytrekProtocolDecoderTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class AnytrekProtocolDecoderTest extends ProtocolTest {
@Test
public void testDecode() throws Exception {

AnytrekProtocolDecoder decoder = new AnytrekProtocolDecoder(new AnytrekProtocol());
AnytrekProtocolDecoder decoder = new AnytrekProtocolDecoder(null);

verifyPosition(decoder, binary(
"78783500300086428703204121160085015111050C0A0D20C6FD24A102FF8EAC0C01001404000000FFFFFFFF131702210000000000000000000D0A"));
Expand Down
2 changes: 1 addition & 1 deletion test/org/traccar/protocol/ApelProtocolDecoderTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class ApelProtocolDecoderTest extends ProtocolTest {
@Test
public void testDecode() throws Exception {

ApelProtocolDecoder decoder = new ApelProtocolDecoder(new ApelProtocol());
ApelProtocolDecoder decoder = new ApelProtocolDecoder(null);

/*byte[] buf1 = {0x40,0x4E,0x54,0x43,0x01,0x00,0x00,0x00,0x7B,0x00,0x00,0x00,0x13,0x00,0x44,0x34,0x2A,0x3E,0x53,0x3A,0x38,0x36,0x31,0x37,0x38,0x35,0x30,0x30,0x35,0x32,0x30,0x35,0x30,0x37,0x39};
verifyNull(decoder, text( ChannelBuffers.wrappedBuffer(ByteOrder.LITTLE_ENDIAN, buf1)));*/
Expand Down
2 changes: 1 addition & 1 deletion test/org/traccar/protocol/AplicomProtocolDecoderTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class AplicomProtocolDecoderTest extends ProtocolTest {
@Test
public void testDecode() throws Exception {

AplicomProtocolDecoder decoder = new AplicomProtocolDecoder(new AplicomProtocol());
AplicomProtocolDecoder decoder = new AplicomProtocolDecoder(null);

verifyAttributes(decoder, binary(
"44c30144f667c0e462019800b05f7700005b7d3bdd00000000000000000000000000000000805e420fd60a0d57fffffb002141100000011001000c0932200000000000000a18136fcafefffffb002141100000011001000c0932200000000000000a1812e6dbfefffffb002141100000011001000c746578746167204e000008e3980bfefffffb002141100000011001000ce2009000170400890310f290e873fefffffb002141100000011001000ce2009000170400890290f28e409afefffffb002141100000011001000c0932200000000000000a1812e6dbfefffffb002141100000011001000ce2009000170400890280f28d4e2dfefffffb002141100000011001000c0001460000000000000021427a6cfefffffb002141100000011001000c0001460000000000000021606a6efefffffb002141100000011001000c746578746167204e000008badcc4fefffffb002141100000011001000c00014600000000000000218c0843fefffffb002141100000011001000ce2009000170400890270f6d45e09fefffffb002141100000011001000ce2801160600002053cd57a16549efe"));
Expand Down
2 changes: 1 addition & 1 deletion test/org/traccar/protocol/AppelloProtocolDecoderTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class AppelloProtocolDecoderTest extends ProtocolTest {
@Test
public void testDecode() throws Exception {

AppelloProtocolDecoder decoder = new AppelloProtocolDecoder(new AppelloProtocol());
AppelloProtocolDecoder decoder = new AppelloProtocolDecoder(null);

verifyAttributes(decoder, text(
"FOLLOWIT,867273024233699,UTCTIME,0.000000,0.000000,0,0,0,0,L,262:3:c703:4bf8:64:255|262:3:c703:9a18:45|262:3:c703:e838:33|262:3:c703:7190:20|262:3:c704:d896:17|,02,44,,31,,4.20,0,0,86/44/24,,,,26,02264DFF6E16:69|4C09D408554E:79|4C09D408554F:79|E0885DE705E5:81|E2885DE705E7:81|246511122CCC:83|,34925"));
Expand Down
2 changes: 1 addition & 1 deletion test/org/traccar/protocol/AppletProtocolDecoderTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class AppletProtocolDecoderTest extends ProtocolTest {
@Test
public void testDecode() throws Exception {

AppletProtocolDecoder decoder = new AppletProtocolDecoder(new AppletProtocol());
AppletProtocolDecoder decoder = new AppletProtocolDecoder(null);

DefaultHttpHeaders headers = new DefaultHttpHeaders();

Expand Down
4 changes: 2 additions & 2 deletions test/org/traccar/protocol/AquilaProtocolDecoderTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class AquilaProtocolDecoderTest extends ProtocolTest {
@Test
public void testDecodeA() throws Exception {

AquilaProtocolDecoder decoder = new AquilaProtocolDecoder(new AquilaProtocol());
AquilaProtocolDecoder decoder = new AquilaProtocolDecoder(null);

verifyPosition(decoder, text(
"$$CLIENT_1ZF,170215089,20,18.462809,73.824188,170613182744,A,01,123456,*37"));
Expand Down Expand Up @@ -54,7 +54,7 @@ public void testDecodeA() throws Exception {
@Test
public void testDecodeB() throws Exception {

AquilaProtocolDecoder decoder = new AquilaProtocolDecoder(new AquilaProtocol());
AquilaProtocolDecoder decoder = new AquilaProtocolDecoder(null);

verifyPosition(decoder, text(
"$Header,nliven,EMR,861693034634154,NM,09112017155133,A,12.976495,N,77.549713,E,906.0,0.0,23,G,KA01I2000,+919844098440*4B"));
Expand Down
2 changes: 1 addition & 1 deletion test/org/traccar/protocol/Ardi01ProtocolDecoderTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class Ardi01ProtocolDecoderTest extends ProtocolTest {
@Test
public void testDecode() throws Exception {

Ardi01ProtocolDecoder decoder = new Ardi01ProtocolDecoder(new Ardi01Protocol());
Ardi01ProtocolDecoder decoder = new Ardi01ProtocolDecoder(null);

verifyPosition(decoder, text(
"013227003054776,20141010052719,24.4736042,56.8445807,110,289,40,7,5,78,-1"),
Expand Down
2 changes: 1 addition & 1 deletion test/org/traccar/protocol/ArknavProtocolDecoderTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class ArknavProtocolDecoderTest extends ProtocolTest {
@Test
public void testDecode() throws Exception {

ArknavProtocolDecoder decoder = new ArknavProtocolDecoder(new ArknavProtocol());
ArknavProtocolDecoder decoder = new ArknavProtocolDecoder(null);

verifyPosition(decoder, text(
"358266016278447,05*827,000,L001,V,4821.6584,N,01053.8650,E,000.0,000.0,00.0,08:46:04 17-03-16,9.5A,D7,0,79,0,,,,"),
Expand Down
2 changes: 1 addition & 1 deletion test/org/traccar/protocol/ArknavX8ProtocolDecoderTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class ArknavX8ProtocolDecoderTest extends ProtocolTest {
@Test
public void testDecode() throws Exception {

ArknavX8ProtocolDecoder decoder = new ArknavX8ProtocolDecoder(new ArknavX8Protocol());
ArknavX8ProtocolDecoder decoder = new ArknavX8ProtocolDecoder(null);

verifyNull(decoder, text(
"351856045213782,241111"));
Expand Down
2 changes: 1 addition & 1 deletion test/org/traccar/protocol/ArnaviProtocolDecoderTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class ArnaviProtocolDecoderTest extends ProtocolTest {
@Test
public void testDecode() throws Exception {

ArnaviProtocolDecoder decoder = new ArnaviProtocolDecoder(new ArnaviProtocol());
ArnaviProtocolDecoder decoder = new ArnaviProtocolDecoder(null);

verifyPosition(decoder, text(
"$AV,V2,32768,12487,2277,203,-1,0,0,193,0,0,1,13,200741,5950.6773N,03029.1043E,0.0,0.0,121012,*6E"));
Expand Down
2 changes: 1 addition & 1 deletion test/org/traccar/protocol/AstraProtocolDecoderTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class AstraProtocolDecoderTest extends ProtocolTest {
@Test
public void testDecode() throws Exception {

AstraProtocolDecoder decoder = new AstraProtocolDecoder(new AstraProtocol());
AstraProtocolDecoder decoder = new AstraProtocolDecoder(null);

verifyPositions(decoder, binary(
"4b00700529c0c265976b8202cba9ff00676d864554a9c30000000020073401006436000300030008000000000000a0000100001920c43d00009600428302cba9ff00676d864554aa3e000000002007240100643b000300020008000000000000b0000100001920c43d00009600420f0e"));
Expand Down
10 changes: 5 additions & 5 deletions test/org/traccar/protocol/At2000ProtocolDecoderTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,39 +14,39 @@ public void testDecode() throws Exception {

At2000ProtocolDecoder decoder;

decoder = new At2000ProtocolDecoder(new At2000Protocol());
decoder = new At2000ProtocolDecoder(null);

verifyNull(decoder, binary(
"01012f00000000000000000000000000003335373435343037313632373539388b57ec3a6ec7e3310a1ceb0a70fd751b8f2e7be6df1d6dcd80129f66fff0ea1c"));

verifyNull(decoder, binary(
"89000000000000000000000000000000"));

decoder = new At2000ProtocolDecoder(new At2000Protocol());
decoder = new At2000ProtocolDecoder(null);

verifyNull(decoder, binary(
"01012f0000000000000000000000000000333537343534303731363036313936ddf189075add9a32d97b54073025963e65849a3a59940d05fd8db655fc84bc6d"));

verifyPositions(decoder, binary(
"893b01000000000000000000000000003b40bcdab6387d829146701d8cb53daaa87b84d24b40cb24fd86da5d3f5f02b0f6f603c43c5a513418a0b2bdcaba603dbe737687cfe9082c57668eb6789d2b029a35aeac6a609558b96de5d7ad37917c902efc878ca9aff474f9d5d2417191285b8d5749bd3ffa86cc99096ce24c1f6ac350ae9adf3d5c788f80b4e3d3dc2dbb8abc1414ea1b52fdb55b2bb8af223ec528245f99d451b715e5774c5397db645d9ae441e645f8dae70230b728e81f51240868712d6f426fd694dbad8026fcf487c268939f04593ad86391cc829b1a1bdac8804ff7507544a69dc0b1b3927d7344e8a5b26fa56825283b3e476330b36d15011e1647ebd9f2ef71844ed32c0dc050457bfbd79160e6d1d8cda00a0927c8957631770e98eb20735aa46b0b18502baf4c45d2623ee51a4320cf3018010e7bbf8bc0dd79eb28e88b727ea67e980b8a91"));

decoder = new At2000ProtocolDecoder(new At2000Protocol());
decoder = new At2000ProtocolDecoder(null);

verifyNull(decoder, binary(
"01012f000000000000000000000000000033353734353430373136303631393637f5441a9862260117858237fe3160388490f0df7d46c09112ee087235a92101"));

verifyPositions(decoder, binary(
"89043203000000000000000000000000d01ff1df1b56ba9185bb741ddc253f3cee093b1f8193100cd95777b5288a6f29d1b343a952f882ce8825679f7e27ad88ed7898bff92f716acadfc3c17fa8c1a6b9d0934e8f042433a183776c06c1acd73efb4b9f19030debb4dceb161fb3e6630757d25c3e995b7cf5f446318dcc1677eb215d1af49f11cd7300598bcdc40cc25466ed2391d836c782e44bc04a332e902b2b34f5597a542af4ca670cdfc18d87ce2a225c3e6f2f32359d4914c6df09aa5ee306c229260d4a56da53f93398bc8a6e77095305ee214cf605de20d3876a993fb810486f75bcd514c12442bf4dc3fbe7963b20d5100b5ecff1c1aef4c4b3736a04e245d50f538327db21d55270b279db5ac5a9658876bae3d9b5026b8975bb2bf4d100b8492760d66ae31f27bf9c525c2d794860eabca9c788b91152dbce79f336daaf6a7a9547bf1dd8e3334c891f4548fd6d112ebf45125c2a8abd3a786ebbcfdd03101b524bbf465f14a9a424305ce7de56ffca85b4657fc8c03e4349c0ca6be64d1cf595ee91f8173678ef2267dae54dd00028450c48d9b74c925af0f245d409d8773238dce5832747587f53a12155869c1d464eb0630f94cf8dceb76aa39995411d4ce7743b1501692425afec498535526067e79f568b7f71ee47d8b4929118d57b13d56cdbfd26582d579dee"));

decoder = new At2000ProtocolDecoder(new At2000Protocol());
decoder = new At2000ProtocolDecoder(null);

verifyNull(decoder, binary(
"01012f0000000000000000000000000000333537343534303731363035353033dd529a1eb5df9f3b6d320b38250e03306692957e8c2127d8e381a717f639b4c9"));

verifyPositions(decoder, binary(
"89898701000000000000000000000000ae99e38f13d44f536769eb4930a6826dfebe5b98a6048941e89b17c9cdcb276be4af7c0d188d07c90d6e94aa9efcb465fe7aeaff4d85caf837483b4e9b32fbbacfbc4e175eebf57a27f552a64fc3419565d2dfbea668511a08d5a526342fad0e93b20c4449ad8defab4a9ac68cf7dad86971eb2cd96810d9d6a9c56e07fd90e4c28cfc53a069b63efe37a0523a69b607a2dc011ba17b177c5332c04be1faeeabed24539b3b790fa8a8610ab3633e0140ed79690fcae9dea43c7daad780d95a511d8f4875e621bcfe7516a03b80eb3c473ffd4bc1eda298dfa7d994a2cfeaa5d24c190d52d72fd90975a2e6f9ed3b95017133952262f91787c46839738a80c333dc53ee4d8afe75315d801efe17bc7309f30cfce64906bf70e6844c835781cbb64b49e9315ca3c2cd39d00a03cc7178a4ebc5df230dcdfd44ec588791d488f96bb6ff4007a753f552bda4d1766632aa3ec5eb38feb23ed6efb8f382a7f22b70adc9cb533c09bf749190c36d63b572c1acfc3a59138d51273835ab13c4689df01e3d2c2dd1829e00aac5c56b5d51e60d6731833f82c7464d88df663ca28a20eedeecb60f3704ae78281838caa116184e414db459768321bbfa1e83ad59fe168eb81f3b41cfe0e39c8aa78cbbe5825620bf053a1cb62e04d4cdf17ca2dc9305d47c"));

decoder = new At2000ProtocolDecoder(new At2000Protocol());
decoder = new At2000ProtocolDecoder(null);

verifyNull(decoder, binary(
"01012f00000000000000000000000000003335363137333036343430373439320fad981997ae8e031fe10c0ea7641903ca32c0331df467233d2a9cd886fbeef8"));
Expand Down
2 changes: 1 addition & 1 deletion test/org/traccar/protocol/AtrackProtocolDecoderTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class AtrackProtocolDecoderTest extends ProtocolTest {
@Test
public void testDecode() throws Exception {

AtrackProtocolDecoder decoder = new AtrackProtocolDecoder(new AtrackProtocol());
AtrackProtocolDecoder decoder = new AtrackProtocolDecoder(null);

verifyPositions(decoder, buffer(
"@P,3A34,146,41431,353816057242284,20180622015809,20180622015809,20180622015809,9720689,4014230,61,2,0,20,1,0,0,0,0,2000,2000,12160,42,624,002,20009,20014,\r\n"));
Expand Down
2 changes: 1 addition & 1 deletion test/org/traccar/protocol/AuroProtocolDecoderTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class AuroProtocolDecoderTest extends ProtocolTest {
@Test
public void testDecode() throws Exception {

AuroProtocolDecoder decoder = new AuroProtocolDecoder(new AuroProtocol());
AuroProtocolDecoder decoder = new AuroProtocolDecoder(null);

verifyPosition(decoder, text(
"M0028T0000816398975I357325031465123E00001W*****110620150437000068DA#RD01DA240000000001+100408425+013756121100620152137231112240330004400"));
Expand Down
2 changes: 1 addition & 1 deletion test/org/traccar/protocol/AustinNbProtocolDecoderTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class AustinNbProtocolDecoderTest extends ProtocolTest {
@Test
public void testDecode() throws Exception {

AustinNbProtocolDecoder decoder = new AustinNbProtocolDecoder(new AustinNbProtocol());
AustinNbProtocolDecoder decoder = new AustinNbProtocolDecoder(null);

verifyPosition(decoder, text(
"48666666666;2017-01-01 16:31:01;52,1133308410645;21,1000003814697;310;120;2292;1;ORANGE"));
Expand Down
2 changes: 1 addition & 1 deletion test/org/traccar/protocol/AutoFonProtocolDecoderTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class AutoFonProtocolDecoderTest extends ProtocolTest {
@Test
public void testDecode() throws Exception {

AutoFonProtocolDecoder decoder = new AutoFonProtocolDecoder(new AutoFonProtocol());
AutoFonProtocolDecoder decoder = new AutoFonProtocolDecoder(null);

verifyNull(decoder, binary(
"10556103592310314825728F"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class AutoGradeProtocolDecoderTest extends ProtocolTest {
@Test
public void testDecode() throws Exception {

AutoGradeProtocolDecoder decoder = new AutoGradeProtocolDecoder(new AutoGradeProtocol());
AutoGradeProtocolDecoder decoder = new AutoGradeProtocolDecoder(null);

verifyPosition(decoder, text(
"(000000001637868324027912356171116A2250.7611N07556.9425E000.9024427197.36\u008eA0000B0000C0000D0000E0000K0000L0000M0000N0000O0000)"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class AutoTrackProtocolDecoderTest extends ProtocolTest {
@Test
public void testDecode() throws Exception {

AutoTrackProtocolDecoder decoder = new AutoTrackProtocolDecoder(new AutoTrackProtocol());
AutoTrackProtocolDecoder decoder = new AutoTrackProtocolDecoder(null);

verifyNull(decoder, binary(
"f1f1f1f1330c00201007090006de7200000000daa3"));
Expand Down
2 changes: 1 addition & 1 deletion test/org/traccar/protocol/AvemaProtocolDecoderTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class AvemaProtocolDecoderTest extends ProtocolTest {
@Test
public void testDecode() throws Exception {

AvemaProtocolDecoder decoder = new AvemaProtocolDecoder(new AvemaProtocol());
AvemaProtocolDecoder decoder = new AvemaProtocolDecoder(null);

verifyPosition(decoder, text(
"1130048939,20120224000129,121.447487,25.168025,0,0,0,0,3,0.0,1,0.02V,14.88V,0,1,24,4,46608,F8BC,F9AD,CID0000028"));
Expand Down
2 changes: 1 addition & 1 deletion test/org/traccar/protocol/Avl301ProtocolDecoderTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class Avl301ProtocolDecoderTest extends ProtocolTest {
@Test
public void testDecode() throws Exception {

Avl301ProtocolDecoder decoder = new Avl301ProtocolDecoder(new Avl301Protocol());
Avl301ProtocolDecoder decoder = new Avl301ProtocolDecoder(null);

verifyNull(decoder, binary(
"244c0f086058500087335500010d0a"));
Expand Down
2 changes: 1 addition & 1 deletion test/org/traccar/protocol/BceProtocolDecoderTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class BceProtocolDecoderTest extends ProtocolTest {
@Test
public void testDecode() throws Exception {

BceProtocolDecoder decoder = new BceProtocolDecoder(new BceProtocol());
BceProtocolDecoder decoder = new BceProtocolDecoder(null);

verifyPositions(decoder, binary(
"789622d1cb1303003401a53365b70f4a9babc0ffd700c04400f0b6c741e63933428f1c431c015468de43f18221341b007e0ae20001430a698f003f008d000000000031f85900000000f0831c018400000000000000000000000000000000000209000000000000000000000000000000030065f70f4a9babc0ffd700c0440069bcc741e73733427f1c431a01a9378343f1829c391b00a80be2000170056da7003e007c000000000031c04e00000000f0831c01810000000000000000000000000000000000060100000000000000000000000000000003006537104a9babc0ffd700c0440051c1c74129363342721c421801e4809543f18210341b00710ae2000170056da7003e0072000000000031c04800000000b8841c017e00000000000000000000000000000000000306000000000000000000000000000000030069"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class BlackKiteProtocolDecoderTest extends ProtocolTest {
@Test
public void testDecode() throws Exception {

BlackKiteProtocolDecoder decoder = new BlackKiteProtocolDecoder(new BlackKiteProtocol());
BlackKiteProtocolDecoder decoder = new BlackKiteProtocolDecoder(null);

verifyNull(decoder, binary(
"01150003313131313131313131313131313131209836055605BA"));
Expand Down
2 changes: 1 addition & 1 deletion test/org/traccar/protocol/BoxProtocolDecoderTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class BoxProtocolDecoderTest extends ProtocolTest {
@Test
public void testDecode() throws Exception {

BoxProtocolDecoder decoder = new BoxProtocolDecoder(new BoxProtocol());
BoxProtocolDecoder decoder = new BoxProtocolDecoder(null);

verifyNull(decoder, text(
"H,BT,358281002435893,081028142432,F5813D19,6D6E6DC2"));
Expand Down
2 changes: 1 addition & 1 deletion test/org/traccar/protocol/CalAmpProtocolDecoderTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class CalAmpProtocolDecoderTest extends ProtocolTest {
@Test
public void testDecode() throws Exception {

CalAmpProtocolDecoder decoder = new CalAmpProtocolDecoder(new CalAmpProtocol());
CalAmpProtocolDecoder decoder = new CalAmpProtocolDecoder(null);

verifyPosition(decoder, binary(
"83051633033459010101028afd59ae7c1459ae7c140b06bbce2c01520e0000d916000001b900450900005affa50f091f00260d040000000f24000001b90000000000003714"));
Expand Down
2 changes: 1 addition & 1 deletion test/org/traccar/protocol/CarTrackProtocolDecoderTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class CarTrackProtocolDecoderTest extends ProtocolTest {
@Test
public void testDecode() throws Exception {

CarTrackProtocolDecoder decoder = new CarTrackProtocolDecoder(new CarTrackProtocol());
CarTrackProtocolDecoder decoder = new CarTrackProtocolDecoder(null);

verifyNull(decoder, text(
"$$020040????????&A0000"));
Expand Down
2 changes: 1 addition & 1 deletion test/org/traccar/protocol/CarscopProtocolDecoderTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class CarscopProtocolDecoderTest extends ProtocolTest {
@Test
public void testDecode() throws Exception {

CarscopProtocolDecoder decoder = new CarscopProtocolDecoder(new CarscopProtocol());
CarscopProtocolDecoder decoder = new CarscopProtocolDecoder(null);

verifyNull(decoder, text(
"*170821223045UB00HSO"));
Expand Down
Loading

0 comments on commit ae32084

Please sign in to comment.