aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-11-15 09:07:10 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-11-15 09:07:10 +1300
commit6941836a13bc27192c8dc27c4171517333b83a7d (patch)
tree5e5fbf1ea8fbb15d191864a10a7f387398205e68 /test
parent55adf195c7ef696ca0dba493914b22f6fca377bd (diff)
downloadtraccar-server-6941836a13bc27192c8dc27c4171517333b83a7d.tar.gz
traccar-server-6941836a13bc27192c8dc27c4171517333b83a7d.tar.bz2
traccar-server-6941836a13bc27192c8dc27c4171517333b83a7d.zip
Fix AutoFon45 identification (fix #1528)
Diffstat (limited to 'test')
-rw-r--r--test/org/traccar/ProtocolDecoderTest.java2
-rw-r--r--test/org/traccar/protocol/AutoFon45ProtocolDecoderTest.java3
2 files changed, 4 insertions, 1 deletions
diff --git a/test/org/traccar/ProtocolDecoderTest.java b/test/org/traccar/ProtocolDecoderTest.java
index b5efa7c29..133b0229f 100644
--- a/test/org/traccar/ProtocolDecoderTest.java
+++ b/test/org/traccar/ProtocolDecoderTest.java
@@ -38,7 +38,7 @@ public class ProtocolDecoderTest {
}
@Override
- public Device getDeviceByUniqueId(String imei) {
+ public Device getDeviceByUniqueId(String uniqueId) {
return createDevice();
}
diff --git a/test/org/traccar/protocol/AutoFon45ProtocolDecoderTest.java b/test/org/traccar/protocol/AutoFon45ProtocolDecoderTest.java
index 547189a1e..f739c6709 100644
--- a/test/org/traccar/protocol/AutoFon45ProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/AutoFon45ProtocolDecoderTest.java
@@ -12,6 +12,9 @@ public class AutoFon45ProtocolDecoderTest extends ProtocolDecoderTest {
AutoFon45ProtocolDecoder decoder = new AutoFon45ProtocolDecoder(new AutoFon45Protocol());
verifyNothing(decoder, binary(
+ "41035151305289931441139602662095148807"));
+
+ verifyNothing(decoder, binary(
"41032125656985547543619173484002123481"));
verifyPosition(decoder, binary(