diff options
Diffstat (limited to 'test/org/traccar')
-rw-r--r-- | test/org/traccar/ProtocolTest.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/org/traccar/ProtocolTest.java b/test/org/traccar/ProtocolTest.java index a1b14c74d..2eb6871f3 100644 --- a/test/org/traccar/ProtocolTest.java +++ b/test/org/traccar/ProtocolTest.java @@ -180,6 +180,22 @@ public class ProtocolTest extends BaseTest { Assert.assertFalse("no attributes", attributes.isEmpty()); } + if (attributes.containsKey(Position.KEY_INDEX)) { + Assert.assertTrue(attributes.get(Position.KEY_INDEX) instanceof Number); + } + + if (attributes.containsKey(Position.KEY_HDOP)) { + Assert.assertTrue(attributes.get(Position.KEY_HDOP) instanceof Number); + } + + if (attributes.containsKey(Position.KEY_VDOP)) { + Assert.assertTrue(attributes.get(Position.KEY_VDOP) instanceof Number); + } + + if (attributes.containsKey(Position.KEY_PDOP)) { + Assert.assertTrue(attributes.get(Position.KEY_PDOP) instanceof Number); + } + if (attributes.containsKey(Position.KEY_ODOMETER)) { Assert.assertTrue(attributes.get(Position.KEY_ODOMETER) instanceof Number); } |