aboutsummaryrefslogtreecommitdiff
path: root/src/test/java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-11-11 21:09:01 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2019-11-11 21:09:01 -0800
commit01b7edfdb45fc77b760b441627971d29af9ea60f (patch)
tree9b66c3d90010fd4853eeca94056ebe569f595181 /src/test/java
parenta681b0608a18416ad58bfeedacda0b036a856da4 (diff)
downloadtrackermap-server-01b7edfdb45fc77b760b441627971d29af9ea60f.tar.gz
trackermap-server-01b7edfdb45fc77b760b441627971d29af9ea60f.tar.bz2
trackermap-server-01b7edfdb45fc77b760b441627971d29af9ea60f.zip
Use correct decoder
Diffstat (limited to 'src/test/java')
-rw-r--r--src/test/java/org/traccar/protocol/OutsafeProtocolDecoderTest.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/OutsafeProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/OutsafeProtocolDecoderTest.java
index 82bc7dec7..12f0106f9 100644
--- a/src/test/java/org/traccar/protocol/OutsafeProtocolDecoderTest.java
+++ b/src/test/java/org/traccar/protocol/OutsafeProtocolDecoderTest.java
@@ -12,6 +12,9 @@ public class OutsafeProtocolDecoderTest extends ProtocolTest {
OutsafeProtocolDecoder decoder = new OutsafeProtocolDecoder(null);
verifyPosition(decoder, request(HttpMethod.POST, "/",
+ buffer("{\"device\":\"862061044762093\",\"owner\":\"\",\"data\":{\"cmd\":\"GEO\",\"ms1\":82,\"ms2\":80,\"ms3\":5266,\"ms4\":-68,\"observation\":\"$NMEA 323455\",\"content\":null},\"time\":null,\"origin\":\"TCP\",\"latitude\":19.334734,\"longitude\":-99.307236,\"altitude\":2000,\"heading\":0,\"rssi\":123}")));
+
+ verifyPosition(decoder, request(HttpMethod.POST, "/",
buffer("{\"device\":\"1e09d88a-fe8e-4dee-90b9-6297088ff3de\",\"owner\":\"\",\"data\":{\"cmd\":\"GEO\",\"ms1\":82,\"ms2\":80,\"ms3\":5266,\"ms4\":-68,\"observation\":\"$NMEA 323455\",\"content\":null},\"time\":null,\"origin\":\"TCP\",\"latitude\":19.334734,\"longitude\":-99.307236,\"altitude\":2000,\"heading\":0,\"rssi\":123}")));
}