diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2021-07-30 20:59:28 -1000 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2021-07-30 20:59:28 -1000 |
commit | 57ff7a02db797ad377df8a7b65e96e8768aed438 (patch) | |
tree | 5dc36c653cb9d62288b545533bab924d9ac37cbe /src/test/java/org/traccar/ProtocolTest.java | |
parent | ad6720a20bc9abb728630b96fc811e7293e7a307 (diff) | |
download | trackermap-server-57ff7a02db797ad377df8a7b65e96e8768aed438.tar.gz trackermap-server-57ff7a02db797ad377df8a7b65e96e8768aed438.tar.bz2 trackermap-server-57ff7a02db797ad377df8a7b65e96e8768aed438.zip |
Fix Mobicom G102 result
Diffstat (limited to 'src/test/java/org/traccar/ProtocolTest.java')
-rw-r--r-- | src/test/java/org/traccar/ProtocolTest.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/ProtocolTest.java b/src/test/java/org/traccar/ProtocolTest.java index 56551f247..c40a15dcc 100644 --- a/src/test/java/org/traccar/ProtocolTest.java +++ b/src/test/java/org/traccar/ProtocolTest.java @@ -300,6 +300,10 @@ public class ProtocolTest extends BaseTest { assertTrue(attributes.get(Position.KEY_HOURS) instanceof Number); } + if (attributes.containsKey(Position.KEY_RESULT)) { + assertTrue(attributes.get(Position.KEY_RESULT) instanceof String); + } + if (position.getNetwork() != null && position.getNetwork().getCellTowers() != null) { for (CellTower cellTower : position.getNetwork().getCellTowers()) { checkInteger(cellTower.getMobileCountryCode(), 0, 999); |