From b5e9d84cfeb8d4e6a4e1133a2e0510652be1de6b Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 3 Aug 2019 23:16:11 -0700 Subject: Implement Naviset protocol --- .../org/traccar/protocol/NavisetFrameDecoderTest.java | 19 +++++++++++++++++++ .../traccar/protocol/NavisetProtocolDecoderTest.java | 18 ++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 src/test/java/org/traccar/protocol/NavisetFrameDecoderTest.java create mode 100644 src/test/java/org/traccar/protocol/NavisetProtocolDecoderTest.java (limited to 'src/test') diff --git a/src/test/java/org/traccar/protocol/NavisetFrameDecoderTest.java b/src/test/java/org/traccar/protocol/NavisetFrameDecoderTest.java new file mode 100644 index 000000000..450f77144 --- /dev/null +++ b/src/test/java/org/traccar/protocol/NavisetFrameDecoderTest.java @@ -0,0 +1,19 @@ +package org.traccar.protocol; + +import org.junit.Test; +import org.traccar.ProtocolTest; + +public class NavisetFrameDecoderTest extends ProtocolTest { + + @Test + public void testDecode() throws Exception { + + NavisetFrameDecoder decoder = new NavisetFrameDecoder(); + + verifyFrame( + binary("1310e4073836383230343030353935383436362a060716"), + decoder.decode(null, null, binary("1310e4073836383230343030353935383436362a060716"))); + + } + +} diff --git a/src/test/java/org/traccar/protocol/NavisetProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/NavisetProtocolDecoderTest.java new file mode 100644 index 000000000..a17f9d1e3 --- /dev/null +++ b/src/test/java/org/traccar/protocol/NavisetProtocolDecoderTest.java @@ -0,0 +1,18 @@ +package org.traccar.protocol; + +import org.junit.Test; +import org.traccar.ProtocolTest; + +public class NavisetProtocolDecoderTest extends ProtocolTest { + + @Test + public void testDecode() throws Exception { + + NavisetProtocolDecoder decoder = new NavisetProtocolDecoder(null); + + verifyNull(decoder, binary( + "1310e4073836383230343030353935383436362a060716")); + + } + +} -- cgit v1.2.3