From 7b37d4f85a5a2c751f26860ccdb700e3ba42644a Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 21 May 2014 21:20:45 +1200 Subject: Implement Haicom protocol --- .../traccar/protocol/HaicomProtocolDecoderTest.java | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 test/org/traccar/protocol/HaicomProtocolDecoderTest.java (limited to 'test/org') diff --git a/test/org/traccar/protocol/HaicomProtocolDecoderTest.java b/test/org/traccar/protocol/HaicomProtocolDecoderTest.java new file mode 100644 index 000000000..aca184b4a --- /dev/null +++ b/test/org/traccar/protocol/HaicomProtocolDecoderTest.java @@ -0,0 +1,20 @@ +package org.traccar.protocol; + +import org.traccar.helper.TestDataManager; +import static org.traccar.helper.DecoderVerifier.verify; +import org.junit.Test; + +public class HaicomProtocolDecoderTest { + + @Test + public void testDecode() throws Exception { + + HaicomProtocolDecoder decoder = new HaicomProtocolDecoder(null); + decoder.setDataManager(new TestDataManager()); + + verify(decoder.decode(null, null, + "$GPRS123456789012345,602S19A,100915,063515,7240649312041079,0019,3156,111000,10004,0000,11111,00LH#V037")); + + } + +} -- cgit v1.2.3