From 9d523680556de75b59c5c7ad52a38df68ac67434 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 16 Aug 2020 17:47:16 -0700 Subject: Implement Icomera Moovbox protocol --- .../traccar/protocol/MoovboxProtocolDecoderTest.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/test/java/org/traccar/protocol/MoovboxProtocolDecoderTest.java (limited to 'src/test/java/org/traccar') diff --git a/src/test/java/org/traccar/protocol/MoovboxProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/MoovboxProtocolDecoderTest.java new file mode 100644 index 000000000..c0090e9f2 --- /dev/null +++ b/src/test/java/org/traccar/protocol/MoovboxProtocolDecoderTest.java @@ -0,0 +1,19 @@ +package org.traccar.protocol; + +import io.netty.handler.codec.http.HttpMethod; +import org.junit.Test; +import org.traccar.ProtocolTest; + +public class MoovboxProtocolDecoderTest extends ProtocolTest { + + @Test + public void testDecode() throws Exception { + + MoovboxProtocolDecoder decoder = new MoovboxProtocolDecoder(null); + + verifyPositions(decoder, request(HttpMethod.POST, "/", + buffer("\n\n3\n\n80.726257\n13.821351\n9.500000\n0.000000\n0.064000\n-27.300000\n0.000000\n9\n\n"))); + + } + +} -- cgit v1.2.3