aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-11-15 17:22:29 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-11-15 17:22:29 +1300
commitde46b77e923d3412d74dbf745933bd62acaeca77 (patch)
treeb4869aaddeb80cb6145806d7dc7f1788739d4f52 /test/org/traccar
parent8ac74d53d687641b7af79e6ca3a84d8851b46236 (diff)
downloadtrackermap-server-de46b77e923d3412d74dbf745933bd62acaeca77.tar.gz
trackermap-server-de46b77e923d3412d74dbf745933bd62acaeca77.tar.bz2
trackermap-server-de46b77e923d3412d74dbf745933bd62acaeca77.zip
Store correct MCC and MNC values
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);