diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-06-15 18:28:28 +1200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-15 18:28:28 +1200 |
commit | f4b7d595334a12bd612575e36c8e2ebf7253c8a4 (patch) | |
tree | f15ba4c96dcb9f8bdcb515f3bfb64c17dd3799ac /test/org/traccar/protocol | |
parent | f06a4a99f0457cb385dd3465b5be592551a3530b (diff) | |
parent | bb9dac7fb639788cb210c27274a9481d37374eed (diff) | |
download | traccar-server-f4b7d595334a12bd612575e36c8e2ebf7253c8a4.tar.gz traccar-server-f4b7d595334a12bd612575e36c8e2ebf7253c8a4.tar.bz2 traccar-server-f4b7d595334a12bd612575e36c8e2ebf7253c8a4.zip |
Merge pull request #3249 from jpmens/owntracks2
Solidify OwnTracks protocol decoder
Diffstat (limited to 'test/org/traccar/protocol')
-rw-r--r-- | test/org/traccar/protocol/OwnTracksProtocolDecoderTest.java | 2 |
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..89b994fbe 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("{\"lat\":48.85,\"lon\":2.295,\"_type\":\"location\",\"tid\":\"JJ\",\"tst\":1497476456}"))); } } |