aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol/RitiProtocolDecoderTest.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2014-10-22 09:43:19 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2014-10-22 09:43:19 +1300
commit91395e9ac0dd5de366b87bb5d082990b15a946e9 (patch)
tree57aea8c58bbd8d197d61e6b7013937c44f950de7 /test/org/traccar/protocol/RitiProtocolDecoderTest.java
parent8876e964cf26a090d11fd855642c95bc02a17c7f (diff)
parent0d59336ac1fbe9934260e56811c3bcafa0aeaeca (diff)
downloadtrackermap-server-91395e9ac0dd5de366b87bb5d082990b15a946e9.tar.gz
trackermap-server-91395e9ac0dd5de366b87bb5d082990b15a946e9.tar.bz2
trackermap-server-91395e9ac0dd5de366b87bb5d082990b15a946e9.zip
Merge pull request #918 from jon-stumpf/enhancement-eliminate-hardcoded-protocol-names
Eliminate hardcoded protocol names
Diffstat (limited to 'test/org/traccar/protocol/RitiProtocolDecoderTest.java')
-rw-r--r--test/org/traccar/protocol/RitiProtocolDecoderTest.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/org/traccar/protocol/RitiProtocolDecoderTest.java b/test/org/traccar/protocol/RitiProtocolDecoderTest.java
index 2f77a4fc1..e006689b5 100644
--- a/test/org/traccar/protocol/RitiProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/RitiProtocolDecoderTest.java
@@ -13,8 +13,7 @@ public class RitiProtocolDecoderTest {
@Test
public void testDecode() throws Exception {
- RitiProtocolDecoder decoder = new RitiProtocolDecoder(null);
- decoder.setDataManager(new TestDataManager());
+ RitiProtocolDecoder decoder = new RitiProtocolDecoder(new TestDataManager(), null, null);
verify(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ByteOrder.LITTLE_ENDIAN, ChannelBufferTools.convertArray(
new int[] {0x3b,0x28,0x64,0xa3,0x05,0x63,0x00,0x00,0x6d,0x40,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x24,0x47,0x50,0x52,0x4d,0x43,0x2c,0x32,0x31,0x31,0x37,0x34,0x33,0x2e,0x30,0x30,0x30,0x2c,0x41,0x2c,0x31,0x33,0x35,0x37,0x2e,0x33,0x36,0x37,0x35,0x2c,0x4e,0x2c,0x31,0x30,0x30,0x33,0x36,0x2e,0x36,0x39,0x39,0x32,0x2c,0x45,0x2c,0x30,0x2e,0x30,0x30,0x2c,0x2c,0x30,0x31,0x30,0x39,0x31,0x34,0x2c,0x2c,0x2c,0x41,0x2a,0x37,0x38,0x0d,0x0a,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x04,0x04}))));