diff options
author | jon-stumpf <jon.stumpf@gmail.com> | 2014-10-10 22:25:02 -0400 |
---|---|---|
committer | jon-stumpf <jon.stumpf@gmail.com> | 2014-10-21 16:01:41 -0400 |
commit | f0790eba6f3194daf4677c27e8259f783aae3207 (patch) | |
tree | 7e206023124d1e9f1705af1f11d0eaede08edab1 /test/org/traccar/protocol/CellocatorProtocolDecoderTest.java | |
parent | 1948e0f63202dddca607dcb51fa9a92a83e49154 (diff) | |
download | trackermap-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/CellocatorProtocolDecoderTest.java')
-rw-r--r-- | test/org/traccar/protocol/CellocatorProtocolDecoderTest.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/org/traccar/protocol/CellocatorProtocolDecoderTest.java b/test/org/traccar/protocol/CellocatorProtocolDecoderTest.java index 2788e6ba1..054be2e0f 100644 --- a/test/org/traccar/protocol/CellocatorProtocolDecoderTest.java +++ b/test/org/traccar/protocol/CellocatorProtocolDecoderTest.java @@ -12,8 +12,7 @@ public class CellocatorProtocolDecoderTest { @Test public void testDecode() throws Exception { - CellocatorProtocolDecoder decoder = new CellocatorProtocolDecoder(null); - decoder.setDataManager(new TestDataManager()); + CellocatorProtocolDecoder decoder = new CellocatorProtocolDecoder(new TestDataManager()); int[] buf1 = {0x4D,0x43,0x47,0x50,0x00,0x06,0x00,0x00,0x00,0x08,0x1A,0x02,0x02,0x12,0x04,0x00,0x00,0x00,0x21,0x00,0x62,0x30,0x00,0x00,0x00,0x6B,0x00,0xE1,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE5,0xA1,0x00,0x04,0x02,0x06,0x61,0x4E,0xA3,0x03,0x18,0x1A,0x57,0x03,0x4E,0x12,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x15,0x25,0x07,0x14,0x03,0xD6,0x07,0x49}; verify(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ByteOrder.LITTLE_ENDIAN, ChannelBufferTools.convertArray(buf1)))); |