aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-12-16 20:30:55 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-12-16 22:16:45 +1300
commit1253934d826bd64e12fd0a40cc283f89006b2509 (patch)
tree6638fac13cd6d05e126379e73b6d9c0ecee5ea2f /test
parent94997c733c597174681a3f5d980c594917d47fd7 (diff)
downloadtraccar-server-1253934d826bd64e12fd0a40cc283f89006b2509.tar.gz
traccar-server-1253934d826bd64e12fd0a40cc283f89006b2509.tar.bz2
traccar-server-1253934d826bd64e12fd0a40cc283f89006b2509.zip
Implement PathAway communication protocol
Diffstat (limited to 'test')
-rw-r--r--test/org/traccar/protocol/PathAwayProtocolDecoderTest.java18
1 files changed, 18 insertions, 0 deletions
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"));
+
+ }
+
+}