aboutsummaryrefslogtreecommitdiff
path: root/test/org
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-09-26 14:17:28 +0500
committerAbyss777 <abyss@fox5.ru>2017-09-26 14:17:28 +0500
commit2e4fe0f4201ff43f65e36fb1ba386a1fa26b9aab (patch)
tree5969373317e7a3c74c172e0b173cbe15daa7ba44 /test/org
parent152dde860450adb9ae8409d69f429f35ad1b3b13 (diff)
downloadtrackermap-server-2e4fe0f4201ff43f65e36fb1ba386a1fa26b9aab.tar.gz
trackermap-server-2e4fe0f4201ff43f65e36fb1ba386a1fa26b9aab.tar.bz2
trackermap-server-2e4fe0f4201ff43f65e36fb1ba386a1fa26b9aab.zip
Added intermediate "decodeParameter" function and KEY_ROAMING attribute
Diffstat (limited to 'test/org')
-rw-r--r--test/org/traccar/ProtocolTest.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/org/traccar/ProtocolTest.java b/test/org/traccar/ProtocolTest.java
index 01395fc11..1daefabd6 100644
--- a/test/org/traccar/ProtocolTest.java
+++ b/test/org/traccar/ProtocolTest.java
@@ -261,6 +261,10 @@ public class ProtocolTest extends BaseTest {
Assert.assertTrue(attributes.get(Position.KEY_STEPS) instanceof Number);
}
+ if (attributes.containsKey(Position.KEY_ROAMING)) {
+ Assert.assertTrue(attributes.get(Position.KEY_ROAMING) instanceof Boolean);
+ }
+
if (position.getNetwork() != null && position.getNetwork().getCellTowers() != null) {
for (CellTower cellTower : position.getNetwork().getCellTowers()) {
checkInteger(cellTower.getMobileCountryCode(), 0, 999);