diff options
Diffstat (limited to 'test/org/traccar/protocol/Tr20ProtocolDecoderTest.java')
-rw-r--r-- | test/org/traccar/protocol/Tr20ProtocolDecoderTest.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/org/traccar/protocol/Tr20ProtocolDecoderTest.java b/test/org/traccar/protocol/Tr20ProtocolDecoderTest.java index aa978655b..ecb814708 100644 --- a/test/org/traccar/protocol/Tr20ProtocolDecoderTest.java +++ b/test/org/traccar/protocol/Tr20ProtocolDecoderTest.java @@ -8,9 +8,10 @@ public class Tr20ProtocolDecoderTest { @Test public void testDecode() throws Exception { - - Tr20ProtocolDecoder decoder = new Tr20ProtocolDecoder(new TestDataManager()); - + + Tr20ProtocolDecoder decoder = new Tr20ProtocolDecoder(null); + decoder.setDataManager(new TestDataManager()); + assertNull(decoder.decode(null, null, "%%TRACKPRO01,1")); assertNotNull(decoder.decode(null, null, |