From a88bd71e0245e8d2b9e9c9fc8c69304682449073 Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Tue, 23 May 2017 09:47:35 +0500 Subject: Organize satellites and RSSI values --- test/org/traccar/ProtocolTest.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'test/org') 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); } -- cgit v1.2.3