From ae32084f88df4436e1a2cdcb346ff1e7e286e369 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 17 Oct 2018 16:52:38 +1300 Subject: Avoid protocol classes in tests --- test/org/traccar/protocol/H02ProtocolDecoderTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/org/traccar/protocol/H02ProtocolDecoderTest.java') diff --git a/test/org/traccar/protocol/H02ProtocolDecoderTest.java b/test/org/traccar/protocol/H02ProtocolDecoderTest.java index 1a49b4bfb..acfb96c82 100644 --- a/test/org/traccar/protocol/H02ProtocolDecoderTest.java +++ b/test/org/traccar/protocol/H02ProtocolDecoderTest.java @@ -9,7 +9,7 @@ public class H02ProtocolDecoderTest extends ProtocolTest { @Test public void testDecode() throws Exception { - H02ProtocolDecoder decoder = new H02ProtocolDecoder(new H02Protocol()); + H02ProtocolDecoder decoder = new H02ProtocolDecoder(null); verifyPosition(decoder, binary( "2435248308419329301047591808172627335900074412294E024138FEFFFFFFFF01120064BA73005ECC")); @@ -239,7 +239,7 @@ public class H02ProtocolDecoderTest extends ProtocolTest { @Test public void testDecodeStatus() throws Exception { - H02ProtocolDecoder decoder = new H02ProtocolDecoder(new H02Protocol()); + H02ProtocolDecoder decoder = new H02ProtocolDecoder(null); verifyAttribute(decoder, buffer( "*HQ,2705171109,V1,213324,A,5002.5849,N,01433.7822,E,0.00,000,140613,FFFFFFFF#"), -- cgit v1.2.3