From f278d3ff3e7b17b458a512d7bb16131eb9d97b2b Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 14 Oct 2012 09:56:37 +1300 Subject: Add H02 support (fix #56) --- test/org/traccar/protocol/H02ProtocolDecoderTest.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 test/org/traccar/protocol/H02ProtocolDecoderTest.java (limited to 'test/org/traccar') diff --git a/test/org/traccar/protocol/H02ProtocolDecoderTest.java b/test/org/traccar/protocol/H02ProtocolDecoderTest.java new file mode 100644 index 000000000..25920e8dd --- /dev/null +++ b/test/org/traccar/protocol/H02ProtocolDecoderTest.java @@ -0,0 +1,19 @@ +package org.traccar.protocol; + +import static org.junit.Assert.assertNotNull; +import static org.junit.Assert.assertNull; +import org.junit.Test; + +public class H02ProtocolDecoderTest { + + @Test + public void testDecode() throws Exception { + + H02ProtocolDecoder decoder = new H02ProtocolDecoder(new TestDataManager(), 0); + + assertNotNull(decoder.decode(null, null, + "*HQ,123456789012345,V1,155850,A,5214.5346,N,2117.4683,E,0.00,270.90,131012,ffffffff,000000,000000,000000,000000")); + + } + +} -- cgit v1.2.3