diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-06-16 18:44:32 +1200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-16 18:44:32 +1200 |
commit | fe4ea97dabc55c4585d8b32bd4dae32cd255add3 (patch) | |
tree | 682c24e519446f419de1f01ac5e3879f49934a93 /test/org/traccar/ProtocolTest.java | |
parent | 65bec416c56715cd4a24ef69f136e4f67be56851 (diff) | |
parent | b1d5a5cfd165d2b52cf4dcdc57a6825e0ff1db8f (diff) | |
download | trackermap-server-fe4ea97dabc55c4585d8b32bd4dae32cd255add3.tar.gz trackermap-server-fe4ea97dabc55c4585d8b32bd4dae32cd255add3.tar.bz2 trackermap-server-fe4ea97dabc55c4585d8b32bd4dae32cd255add3.zip |
Merge pull request #3256 from Abyss777/motion_detection
Centralized motion detection
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 ee5811e49..eaecfab0b 100644 --- a/test/org/traccar/ProtocolTest.java +++ b/test/org/traccar/ProtocolTest.java @@ -237,6 +237,10 @@ public class ProtocolTest extends BaseTest { Assert.assertTrue(attributes.get(Position.KEY_CHARGE) instanceof Boolean); } + if (attributes.containsKey(Position.KEY_MOTION)) { + Assert.assertTrue(attributes.get(Position.KEY_MOTION) instanceof Boolean); + } + if (position.getNetwork() != null && position.getNetwork().getCellTowers() != null) { for (CellTower cellTower : position.getNetwork().getCellTowers()) { checkInteger(cellTower.getMobileCountryCode(), 0, 999); |