From 9107c244020331de12d60f2437c8665011b7162d Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Mon, 22 May 2017 11:33:29 +0500 Subject: Organize KEY_xDOP values --- test/org/traccar/ProtocolTest.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'test') 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); } -- cgit v1.2.3