aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol/AutoFonProtocolDecoderTest.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-01-09 11:34:42 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-01-09 11:34:42 +1300
commit663231ec30ed41d60ef352e89ea61e9eb2b735c2 (patch)
treeea32f4b350bc7497bc738d2bb00b476423472efb /test/org/traccar/protocol/AutoFonProtocolDecoderTest.java
parentbc8a449d384506eac902b76870d7b565f96c05e6 (diff)
downloadtrackermap-server-663231ec30ed41d60ef352e89ea61e9eb2b735c2.tar.gz
trackermap-server-663231ec30ed41d60ef352e89ea61e9eb2b735c2.tar.bz2
trackermap-server-663231ec30ed41d60ef352e89ea61e9eb2b735c2.zip
Merge AutoFon and AutoFon45 protocols
Diffstat (limited to 'test/org/traccar/protocol/AutoFonProtocolDecoderTest.java')
-rw-r--r--test/org/traccar/protocol/AutoFonProtocolDecoderTest.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/AutoFonProtocolDecoderTest.java b/test/org/traccar/protocol/AutoFonProtocolDecoderTest.java
index 5c2e52d09..4a0a42a7b 100644
--- a/test/org/traccar/protocol/AutoFonProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/AutoFonProtocolDecoderTest.java
@@ -20,6 +20,19 @@ public class AutoFonProtocolDecoderTest extends ProtocolTest {
//verifyPosition(decoder, binary(
// "12060000007501010B0C00089CFFFFFFFFFFFFFFFFFF0000000000000000000000000000000000000003E7FFFF02007601010B0C00269CFFFFFFFFFFFFFFFFFF0000000000000000000000000000000000000003E7FFFF4A007601010B0C01089CFFFFFFFFFFFFFFFFFF0000000000000000000000000000000000000003E7FFFF04007501010B0C01269CFFFFFFFFFFFFFFFFFF0000000000000000000000000000000000000003E7FFFF80007601010B0C02089CFFFFFFFFFFFFFFFFFF0000000000000000000000000000000000000003E7FFFFA6007501010B0C02231F5600FA000176F218C70000000000000000000000000000000000000003E7FFFF9629"));
+ verifyNothing(decoder, binary(
+ "41035151305289931441139602662095148807"));
+
+ verifyNothing(decoder, binary(
+ "41032125656985547543619173484002123481"));
+
+ verifyPosition(decoder, binary(
+ "023E00001E004D411EFA01772F185285009C48041F1E366C2961380F26B10B00911C"),
+ position("2010-01-27 04:00:08.000", true, 54.73838, 56.10343));
+
+ verifyPosition(decoder, binary(
+ "023E00001E004D411EFA01772F185285009C48041F1E366C2961380F26B10B00911C"));
+
}
}