aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar
diff options
context:
space:
mode:
Diffstat (limited to 'test/org/traccar')
-rw-r--r--test/org/traccar/ProtocolDecoderTest.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/org/traccar/ProtocolDecoderTest.java b/test/org/traccar/ProtocolDecoderTest.java
index 5292bd32d..7aea23f1b 100644
--- a/test/org/traccar/ProtocolDecoderTest.java
+++ b/test/org/traccar/ProtocolDecoderTest.java
@@ -187,6 +187,22 @@ public class ProtocolDecoderTest {
Assert.assertFalse("no attributes", attributes.isEmpty());
}
+ if (attributes.containsKey(Event.KEY_MCC)) {
+ checkInteger(attributes.get(Event.KEY_MCC), 100, 999);
+ }
+
+ if (attributes.containsKey(Event.KEY_MNC)) {
+ checkInteger(attributes.get(Event.KEY_MNC), 0, 999);
+ }
+
+ /*if (attributes.containsKey(Event.KEY_LAC)) {
+ checkInteger(attributes.get(Event.KEY_LAC), 1, 65535);
+ }
+
+ if (attributes.containsKey(Event.KEY_CID)) {
+ checkInteger(attributes.get(Event.KEY_CID), 1, 268435455);
+ }*/
+
/*if (attributes.containsKey(Event.KEY_MCC) || attributes.containsKey(Event.KEY_MNC)) {
checkInteger(attributes.get(Event.KEY_MCC), 100, 999);
checkInteger(attributes.get(Event.KEY_MNC), 0, 999);