From 1253934d826bd64e12fd0a40cc283f89006b2509 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 16 Dec 2015 20:30:55 +1300 Subject: Implement PathAway communication protocol --- .../traccar/protocol/PathAwayProtocolDecoderTest.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 test/org/traccar/protocol/PathAwayProtocolDecoderTest.java (limited to 'test') diff --git a/test/org/traccar/protocol/PathAwayProtocolDecoderTest.java b/test/org/traccar/protocol/PathAwayProtocolDecoderTest.java new file mode 100644 index 000000000..5515ca135 --- /dev/null +++ b/test/org/traccar/protocol/PathAwayProtocolDecoderTest.java @@ -0,0 +1,18 @@ +package org.traccar.protocol; + +import org.junit.Test; +import org.traccar.ProtocolTest; + +public class PathAwayProtocolDecoderTest extends ProtocolTest { + + @Test + public void testDecode() throws Exception { + + PathAwayProtocolDecoder decoder = new PathAwayProtocolDecoder(new PathAwayProtocol()); + + verifyPosition(decoder, request( + "?UserName=name&Password=pass&LOC=$PWS,1,\"Roger\",,,100107,122846,45.317270,-79.642219,45.00,42,1,\"Comment\",0*58")); + + } + +} -- cgit v1.2.3