aboutsummaryrefslogtreecommitdiff
path: root/test/org
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-05-23 09:47:35 +0500
committerAbyss777 <abyss@fox5.ru>2017-05-23 09:47:35 +0500
commita88bd71e0245e8d2b9e9c9fc8c69304682449073 (patch)
treec72d90fded2d7009780c1ed126c49e26ced5217b /test/org
parent219b64963ab0a4251e6b9a648d4b06fc81293bab (diff)
downloadtraccar-server-a88bd71e0245e8d2b9e9c9fc8c69304682449073.tar.gz
traccar-server-a88bd71e0245e8d2b9e9c9fc8c69304682449073.tar.bz2
traccar-server-a88bd71e0245e8d2b9e9c9fc8c69304682449073.zip
Organize satellites and RSSI values
Diffstat (limited to 'test/org')
-rw-r--r--test/org/traccar/ProtocolTest.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/org/traccar/ProtocolTest.java b/test/org/traccar/ProtocolTest.java
index 2eb6871f3..ee5811e49 100644
--- a/test/org/traccar/ProtocolTest.java
+++ b/test/org/traccar/ProtocolTest.java
@@ -196,6 +196,18 @@ public class ProtocolTest extends BaseTest {
Assert.assertTrue(attributes.get(Position.KEY_PDOP) instanceof Number);
}
+ if (attributes.containsKey(Position.KEY_SATELLITES)) {
+ Assert.assertTrue(attributes.get(Position.KEY_SATELLITES) instanceof Number);
+ }
+
+ if (attributes.containsKey(Position.KEY_SATELLITES_VISIBLE)) {
+ Assert.assertTrue(attributes.get(Position.KEY_SATELLITES_VISIBLE) instanceof Number);
+ }
+
+ if (attributes.containsKey(Position.KEY_RSSI)) {
+ Assert.assertTrue(attributes.get(Position.KEY_RSSI) instanceof Number);
+ }
+
if (attributes.containsKey(Position.KEY_ODOMETER)) {
Assert.assertTrue(attributes.get(Position.KEY_ODOMETER) instanceof Number);
}