aboutsummaryrefslogtreecommitdiff
path: root/src/test/java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-11-21 20:54:16 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2019-11-21 20:54:16 -0800
commita87b9f3d9ba75b12d70a1d62640edcf64bd59072 (patch)
treefd4f5394719349bcf6d610920aaa5f311613cb31 /src/test/java
parent2bccfa2bff73a5e44503c3fae14c83b21008d339 (diff)
downloadtrackermap-server-a87b9f3d9ba75b12d70a1d62640edcf64bd59072.tar.gz
trackermap-server-a87b9f3d9ba75b12d70a1d62640edcf64bd59072.tar.bz2
trackermap-server-a87b9f3d9ba75b12d70a1d62640edcf64bd59072.zip
More flexible JSON format
Diffstat (limited to 'src/test/java')
-rw-r--r--src/test/java/org/traccar/protocol/SigfoxProtocolDecoderTest.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/SigfoxProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/SigfoxProtocolDecoderTest.java
index a2cb021ef..4ab343876 100644
--- a/src/test/java/org/traccar/protocol/SigfoxProtocolDecoderTest.java
+++ b/src/test/java/org/traccar/protocol/SigfoxProtocolDecoderTest.java
@@ -13,6 +13,9 @@ public class SigfoxProtocolDecoderTest extends ProtocolTest {
SigfoxProtocolDecoder decoder = new SigfoxProtocolDecoder(null);
verifyPosition(decoder, request(HttpMethod.POST, "/",
+ buffer("{ \"device\" : \"33827B\", \"data\" : \"1f03198e63807f08836402ff\", \"time\" : \"1574346702\", \"snr\" : \"8.82\", \"station\" : \"140A\", \"avgSnr\" : \"11.28\", \"lat\" : \"52.0\", \"lng\" : \"-8.0\", \"rssi\" : \"-141.00\", \"seqNumber\" : \"3662\"}")));
+
+ verifyPosition(decoder, request(HttpMethod.POST, "/",
buffer("{ \"device\": \"49F941\", \"location\": {\"lat\":19.48954345634299,\"lng\":-99.09340606338463,\"radius\":1983,\"source\":2,\"status\":1} }")));
verifyAttribute(decoder, request(HttpMethod.POST, "/",