diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-10-17 17:08:59 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-10-17 17:08:59 +1300 |
commit | 61d4c1f15b645aa06c84905933108437e1ade92a (patch) | |
tree | 33ca5e2e7d262c6941d66a6c23ff37c2c32e7a8f /test | |
parent | ae32084f88df4436e1a2cdcb346ff1e7e286e369 (diff) | |
download | trackermap-server-61d4c1f15b645aa06c84905933108437e1ade92a.tar.gz trackermap-server-61d4c1f15b645aa06c84905933108437e1ade92a.tar.bz2 trackermap-server-61d4c1f15b645aa06c84905933108437e1ade92a.zip |
Move server init into constructor
Diffstat (limited to 'test')
-rw-r--r-- | test/org/traccar/protocol/TeltonikaProtocolDecoderTest.java | 4 | ||||
-rw-r--r-- | test/org/traccar/protocol/XexunProtocolDecoderTest.java | 4 |
2 files changed, 4 insertions, 4 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")); diff --git a/test/org/traccar/protocol/XexunProtocolDecoderTest.java b/test/org/traccar/protocol/XexunProtocolDecoderTest.java index 8587ee295..8b0f245a2 100644 --- a/test/org/traccar/protocol/XexunProtocolDecoderTest.java +++ b/test/org/traccar/protocol/XexunProtocolDecoderTest.java @@ -8,7 +8,7 @@ public class XexunProtocolDecoderTest extends ProtocolTest { @Test public void testDecode() throws Exception { - XexunProtocolDecoder decoder = new XexunProtocolDecoder(new XexunProtocol(), false); + XexunProtocolDecoder decoder = new XexunProtocolDecoder(null, false); verifyAttributes(decoder, text( "GPRMC,.000,A,0.000000,S,0.0000,W,0.00,0.00,,00,0000.0,A*55,L,,imei:353579010727036,")); @@ -53,7 +53,7 @@ public class XexunProtocolDecoderTest extends ProtocolTest { verifyPosition(decoder, text( "GPRMC,043435.000,A,811.299200,S,11339.9500,E,0.93,29.52,160313,00,0000.0,A*65,F,,imei:359585014597923,")); - decoder = new XexunProtocolDecoder(new XexunProtocol(), true); + decoder = new XexunProtocolDecoder(null, true); verifyPosition(decoder, text( "171007160505,,GPRMC,160505.000,A,5323.4680,N,00252.4202,W,000.0,129.7,071017,,,A*7A,F,ACCStart, imei:864504031916915,10,41.1,F:4.28V,1,135,19824,234,15,0062,B7D5")); |