diff options
author | Abyss777 <abyss@fox5.ru> | 2017-09-26 11:57:08 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2017-09-26 11:57:08 +0500 |
commit | 152dde860450adb9ae8409d69f429f35ad1b3b13 (patch) | |
tree | 6ec95c3b0c6decfa9b27dd147779229f742c23b0 /test/org/traccar/ProtocolTest.java | |
parent | b5fc7e0899475547da99c06319ede5cc68f647e4 (diff) | |
download | trackermap-server-152dde860450adb9ae8409d69f429f35ad1b3b13.tar.gz trackermap-server-152dde860450adb9ae8409d69f429f35ad1b3b13.tar.bz2 trackermap-server-152dde860450adb9ae8409d69f429f35ad1b3b13.zip |
Improve Teltonika IO decoding
Diffstat (limited to 'test/org/traccar/ProtocolTest.java')
-rw-r--r-- | test/org/traccar/ProtocolTest.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/org/traccar/ProtocolTest.java b/test/org/traccar/ProtocolTest.java index 7bff41acd..01395fc11 100644 --- a/test/org/traccar/ProtocolTest.java +++ b/test/org/traccar/ProtocolTest.java @@ -257,6 +257,10 @@ public class ProtocolTest extends BaseTest { Assert.assertTrue(attributes.get(Position.KEY_DRIVER_UNIQUE_ID) instanceof String); } + if (attributes.containsKey(Position.KEY_STEPS)) { + Assert.assertTrue(attributes.get(Position.KEY_STEPS) instanceof Number); + } + if (position.getNetwork() != null && position.getNetwork().getCellTowers() != null) { for (CellTower cellTower : position.getNetwork().getCellTowers()) { checkInteger(cellTower.getMobileCountryCode(), 0, 999); |