From 5ea4bf51645c37ab7046c7c8d4b5d090e02d5da4 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Fri, 10 Feb 2017 07:50:43 +1300 Subject: Implement Pricol communication protocol --- .../traccar/protocol/PricolProtocolDecoderTest.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 test/org/traccar/protocol/PricolProtocolDecoderTest.java (limited to 'test/org/traccar/protocol') diff --git a/test/org/traccar/protocol/PricolProtocolDecoderTest.java b/test/org/traccar/protocol/PricolProtocolDecoderTest.java new file mode 100644 index 000000000..6c7837f76 --- /dev/null +++ b/test/org/traccar/protocol/PricolProtocolDecoderTest.java @@ -0,0 +1,18 @@ +package org.traccar.protocol; + +import org.junit.Test; +import org.traccar.ProtocolTest; + +public class PricolProtocolDecoderTest extends ProtocolTest { + + @Test + public void testDecode() throws Exception { + + PricolProtocolDecoder decoder = new PricolProtocolDecoder(new PricolProtocol()); + + verifyPosition(decoder, binary( + "3c4944303030303150FFFFFFFF1C050C121D38045D09FA4e001DE815F4452FFFFFFFFFFF03FF03FF03FF03FF03FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF113e")); + + } + +} -- cgit v1.2.3