From f0790eba6f3194daf4677c27e8259f783aae3207 Mon Sep 17 00:00:00 2001 From: jon-stumpf Date: Fri, 10 Oct 2014 22:25:02 -0400 Subject: Made BaseProtocolDecoder members "final" as they should not change after construction. --- test/org/traccar/protocol/M2mProtocolDecoderTest.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'test/org/traccar/protocol/M2mProtocolDecoderTest.java') diff --git a/test/org/traccar/protocol/M2mProtocolDecoderTest.java b/test/org/traccar/protocol/M2mProtocolDecoderTest.java index 097a783bc..bfe6f0df9 100644 --- a/test/org/traccar/protocol/M2mProtocolDecoderTest.java +++ b/test/org/traccar/protocol/M2mProtocolDecoderTest.java @@ -12,8 +12,7 @@ public class M2mProtocolDecoderTest { @Test public void testDecode() throws Exception { - M2mProtocolDecoder decoder = new M2mProtocolDecoder(null); - decoder.setDataManager(new TestDataManager()); + M2mProtocolDecoder decoder = new M2mProtocolDecoder(new TestDataManager()); int[] buf1 = {0x23,0x5A,0x3C,0x2A,0x26,0x24,0x21,0x5C,0x28,0x7D,0x70,0x21,0x2A,0x21,0x25,0x4C,0x7C,0x64,0x21,0x22,0x0B,0x0B,0x0B}; assertNull(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ChannelBufferTools.convertArray(buf1)))); -- cgit v1.2.3