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/Gt06ProtocolDecoderTest.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'test/org/traccar/protocol/Gt06ProtocolDecoderTest.java') diff --git a/test/org/traccar/protocol/Gt06ProtocolDecoderTest.java b/test/org/traccar/protocol/Gt06ProtocolDecoderTest.java index a910cb618..de52dce1f 100644 --- a/test/org/traccar/protocol/Gt06ProtocolDecoderTest.java +++ b/test/org/traccar/protocol/Gt06ProtocolDecoderTest.java @@ -12,8 +12,7 @@ public class Gt06ProtocolDecoderTest { @Test public void testDecode() throws Exception { - Gt06ProtocolDecoder decoder = new Gt06ProtocolDecoder(null); - decoder.setDataManager(new TestDataManager()); + Gt06ProtocolDecoder decoder = new Gt06ProtocolDecoder(new TestDataManager()); assertNull(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ChannelBufferTools.convertArray( new int[] {0x78,0x78,0x11,0x01,0x01,0x23,0x45,0x67,0x89,0x01,0x23,0x45,0x10,0x0B,0x32,0x01,0x00,0x01,0x71,0x93,0x0D,0x0A})))); -- cgit v1.2.3