aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2022-02-14 19:45:41 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2022-02-14 19:45:41 -0800
commitec889246f2d052f1878027cbf8f2e24435f09586 (patch)
tree2116af0201227153a5c4b1e95da50f07440668e7 /src/test/java/org
parent7c6b8e8754c5bd687b50349eb1ff8d651577d6cb (diff)
downloadtrackermap-server-ec889246f2d052f1878027cbf8f2e24435f09586.tar.gz
trackermap-server-ec889246f2d052f1878027cbf8f2e24435f09586.tar.bz2
trackermap-server-ec889246f2d052f1878027cbf8f2e24435f09586.zip
Add test case
Diffstat (limited to 'src/test/java/org')
-rw-r--r--src/test/java/org/traccar/protocol/HoopoProtocolDecoderTest.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/HoopoProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/HoopoProtocolDecoderTest.java
index 35d0f1423..3ee0a5e01 100644
--- a/src/test/java/org/traccar/protocol/HoopoProtocolDecoderTest.java
+++ b/src/test/java/org/traccar/protocol/HoopoProtocolDecoderTest.java
@@ -13,6 +13,9 @@ public class HoopoProtocolDecoderTest extends ProtocolTest {
verifyPosition(decoder, text(
"{ \"deviceId\": \"BCCD0654\", \"assetName\": \"BCCD0654\", \"assetType\": \"???? ?????? - ??? 8\", \"eventData\": { \"latitude\": 31.97498, \"longitude\": 34.80802, \"locationName\": \"\", \"accuracyLevel\": \"High\", \"eventType\": \"Arrival\", \"batteryLevel\": 100, \"receiveTime\": \"2021-09-20T18:52:32Z\" }, \"eventTime\": \"2021-09-20T08:52:02Z\", \"serverReportTime\": \"0001-01-01T00:00:00Z\" }"));
+ verifyPosition(decoder, text(
+ "{\"deviceId\":\"BCCD2559\",\"assetName\":\"BCCD2559\",\"assetType\":\"Standard\",\"eventData\":{\"latitude\":32.04746,\"longitude\":34.75843,\"locationName\":\"\",\"accuracyLevel\":\"?????\",\"eventType\":\"InMotion\",\"batteryLevel\":100,\"receiveTime\":\"2022-01-20T08:02:44Z\"},\"address\":{\"line1\":\"????????????70\",\"city\":\"??????-???\",\"stateOrProvince\":\"\",\"postalCode\":\"\",\"countryCode\":\"IL\"},\"movement\":{\"Speed\":1},\"eventTime\":\"2022-01-20T05:55:27Z\",\"serverReportTime\":\"2022-01-20T08:02:48Z\"}"));
+
}
}