aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar
diff options
context:
space:
mode:
authorJan-Piet Mens <jpmens@gmail.com>2017-06-14 17:11:04 +0200
committerJan-Piet Mens <jpmens@gmail.com>2017-06-14 22:58:09 +0200
commitc432acb0fbc43433c2ada22de50bfdb86c1dcb03 (patch)
tree7eb911c92b22c8168ab7e7ec51d5df2b1b409a8a /test/org/traccar
parentce9f1791ff8d10434392ea5853ccacf0cb2548f1 (diff)
downloadtrackermap-server-c432acb0fbc43433c2ada22de50bfdb86c1dcb03.tar.gz
trackermap-server-c432acb0fbc43433c2ada22de50bfdb86c1dcb03.tar.bz2
trackermap-server-c432acb0fbc43433c2ada22de50bfdb86c1dcb03.zip
Solidify owntracks protocol decoder
Diffstat (limited to 'test/org/traccar')
-rw-r--r--test/org/traccar/protocol/OwnTracksProtocolDecoderTest.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/OwnTracksProtocolDecoderTest.java b/test/org/traccar/protocol/OwnTracksProtocolDecoderTest.java
index 75d9af041..57e5d7eca 100644
--- a/test/org/traccar/protocol/OwnTracksProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/OwnTracksProtocolDecoderTest.java
@@ -17,6 +17,8 @@ public class OwnTracksProtocolDecoderTest extends ProtocolTest {
verifyPosition(decoder, request(HttpMethod.POST, "/",
buffer("{\"cog\":271,\"lon\":2.29513,\"acc\":5,\"vel\":61,\"vac\":21,\"lat\":48.85833,\"tst\":1497349316,\"alt\":167,\"_type\":\"location\",\"tid\":\"JJ\",\"t\":\"u\",\"batt\":67}")));
+ verifyPosition(decoder, request(HttpMethod.POST, "/",
+ buffer(text("{\"lat\":48.85,\"lon\":2.295,\"_type\":\"location\",\"tid\":\"JJ\"}"))));
}
}