aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol/Gt06ProtocolDecoderTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/org/traccar/protocol/Gt06ProtocolDecoderTest.java')
-rw-r--r--test/org/traccar/protocol/Gt06ProtocolDecoderTest.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/org/traccar/protocol/Gt06ProtocolDecoderTest.java b/test/org/traccar/protocol/Gt06ProtocolDecoderTest.java
index ae4416435..c738cd79d 100644
--- a/test/org/traccar/protocol/Gt06ProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/Gt06ProtocolDecoderTest.java
@@ -10,7 +10,8 @@ public class Gt06ProtocolDecoderTest {
@Test
public void testDecode() throws Exception {
- Gt06ProtocolDecoder decoder = new Gt06ProtocolDecoder(new TestDataManager());
+ Gt06ProtocolDecoder decoder = new Gt06ProtocolDecoder(null);
+ decoder.setDataManager(new TestDataManager());
byte[] buf1 = {0x78,0x78,0x0d,0x01,0x03,0x53,0x41,(byte)0x90,0x36,0x06,0x60,0x61,0x00,0x03,(byte)0xc3,(byte)0xdf,0x0d,0x0a};
assertNull(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(buf1)));