aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-06-14 21:04:15 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2017-06-14 21:04:15 +1200
commit94794f9fc02256a0e4a7a6a37c5fc669277af58b (patch)
treec8462fddd4671ca8d8a1c643cf83cf088c2484fd /test/org/traccar
parente10e10fee9c96cbcd4e79d8616632654df2eed97 (diff)
downloadtraccar-server-94794f9fc02256a0e4a7a6a37c5fc669277af58b.tar.gz
traccar-server-94794f9fc02256a0e4a7a6a37c5fc669277af58b.tar.bz2
traccar-server-94794f9fc02256a0e4a7a6a37c5fc669277af58b.zip
Minor modifications to OwnTracks code
Diffstat (limited to 'test/org/traccar')
-rw-r--r--test/org/traccar/protocol/OwnTracksProtocolDecoderTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/org/traccar/protocol/OwnTracksProtocolDecoderTest.java b/test/org/traccar/protocol/OwnTracksProtocolDecoderTest.java
index 1eb188421..75d9af041 100644
--- a/test/org/traccar/protocol/OwnTracksProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/OwnTracksProtocolDecoderTest.java
@@ -12,10 +12,10 @@ public class OwnTracksProtocolDecoderTest extends ProtocolTest {
OwnTracksProtocolDecoder decoder = new OwnTracksProtocolDecoder(new OwnTracksProtocol());
verifyPosition(decoder, request(HttpMethod.POST, "/",
- buffer(text("{\"lon\":2.29513,\"lat\":48.85833,\"tst\":1497349316,\"_type\":\"location\",\"tid\":\"JJ\"}"))));
+ buffer("{\"lon\":2.29513,\"lat\":48.85833,\"tst\":1497349316,\"_type\":\"location\",\"tid\":\"JJ\"}")));
verifyPosition(decoder, request(HttpMethod.POST, "/",
- buffer(text("{\"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}"))));
+ 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}")));
}