aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-09-17 21:26:11 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2019-09-17 21:26:11 -0700
commit3d2a761f1df457ab5112300aaa410efd2c2cbcf2 (patch)
treed86359e28c9409f1f0af1e842c4e1071f5df03ae /src/test/java/org/traccar
parenta0db98120af45c33994428f69c2018cf5a459a02 (diff)
downloadtrackermap-server-3d2a761f1df457ab5112300aaa410efd2c2cbcf2.tar.gz
trackermap-server-3d2a761f1df457ab5112300aaa410efd2c2cbcf2.tar.bz2
trackermap-server-3d2a761f1df457ab5112300aaa410efd2c2cbcf2.zip
Support SigFox JSON location
Diffstat (limited to 'src/test/java/org/traccar')
-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 fdd780073..a2cb021ef 100644
--- a/src/test/java/org/traccar/protocol/SigfoxProtocolDecoderTest.java
+++ b/src/test/java/org/traccar/protocol/SigfoxProtocolDecoderTest.java
@@ -12,6 +12,9 @@ public class SigfoxProtocolDecoderTest extends ProtocolTest {
SigfoxProtocolDecoder decoder = new SigfoxProtocolDecoder(null);
+ 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, "/",
buffer("{ \"device\": \"40D310\", \"payload\": \"62\", \"time\": 1563043532, \"seqNumber\": 1076 }")),
Position.KEY_ALARM, Position.ALARM_SOS);