aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol/SkypatrolProtocolDecoderTest.java
diff options
context:
space:
mode:
authorjon-stumpf <jon.stumpf@gmail.com>2014-10-10 22:25:02 -0400
committerjon-stumpf <jon.stumpf@gmail.com>2014-10-21 16:01:41 -0400
commitf0790eba6f3194daf4677c27e8259f783aae3207 (patch)
tree7e206023124d1e9f1705af1f11d0eaede08edab1 /test/org/traccar/protocol/SkypatrolProtocolDecoderTest.java
parent1948e0f63202dddca607dcb51fa9a92a83e49154 (diff)
downloadtrackermap-server-f0790eba6f3194daf4677c27e8259f783aae3207.tar.gz
trackermap-server-f0790eba6f3194daf4677c27e8259f783aae3207.tar.bz2
trackermap-server-f0790eba6f3194daf4677c27e8259f783aae3207.zip
Made BaseProtocolDecoder members "final" as they should not change after construction.
Diffstat (limited to 'test/org/traccar/protocol/SkypatrolProtocolDecoderTest.java')
-rw-r--r--test/org/traccar/protocol/SkypatrolProtocolDecoderTest.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/org/traccar/protocol/SkypatrolProtocolDecoderTest.java b/test/org/traccar/protocol/SkypatrolProtocolDecoderTest.java
index a2bf3c0ab..a1ad836e6 100644
--- a/test/org/traccar/protocol/SkypatrolProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/SkypatrolProtocolDecoderTest.java
@@ -11,8 +11,7 @@ public class SkypatrolProtocolDecoderTest {
@Test
public void testDecode() throws Exception {
- SkypatrolProtocolDecoder decoder = new SkypatrolProtocolDecoder(null);
- decoder.setDataManager(new TestDataManager());
+ SkypatrolProtocolDecoder decoder = new SkypatrolProtocolDecoder(new TestDataManager());
verify(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ChannelBufferTools.convertArray(
new int[]{0x00,0x05,0x02,0x10,0x04,0xFF,0xFF,0xFF,0xFF,0x00,0x00,0x00,0x0D,0x31,0x31,0x34,0x37,0x37,0x35,0x38,0x33,0x00,0xCB,0x00,0x00,0x00,0x00,0x0E,0x11,0x07,0x0C,0x01,0x01,0x84,0xD0,0x32,0xFB,0x38,0x41,0x37,0x00,0x00,0x00,0x00,0x16,0x07,0x2B,0x00,0x00,0x17,0x05,0x00,0x32,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x4E,0x0C,0x07,0x11,0x16,0x07,0x2C,0x10,0x59,0x00,0x05,0x00,0x00,0x00,0x00,0x00,0x05,0x00,0x00,0x00,0x00,0x00,0x05,0x00,0x00,0x00,0x00,0x03,0x10,0x02,0x60,0xB7,0x36,0x3B,0x63,0x06,0xC1,0x1A,0x00,0xB7,0x36,0x37,0xF2,0x06,0xBF,0x19,0xB7,0x36,0x37,0xF1,0x06,0xB5,0x0E,0xB7,0x36,0x38,0xB1,0x06,0xBB,0x0B,0xB7,0x36,0x3B,0x61,0x06,0xB8,0x0A,0xB7,0x36,0x37,0xF3,0x06,0xB7,0x09,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0C}))));