diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-01-09 11:34:42 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-01-09 11:34:42 +1300 |
commit | 663231ec30ed41d60ef352e89ea61e9eb2b735c2 (patch) | |
tree | ea32f4b350bc7497bc738d2bb00b476423472efb /test/org/traccar | |
parent | bc8a449d384506eac902b76870d7b565f96c05e6 (diff) | |
download | traccar-server-663231ec30ed41d60ef352e89ea61e9eb2b735c2.tar.gz traccar-server-663231ec30ed41d60ef352e89ea61e9eb2b735c2.tar.bz2 traccar-server-663231ec30ed41d60ef352e89ea61e9eb2b735c2.zip |
Merge AutoFon and AutoFon45 protocols
Diffstat (limited to 'test/org/traccar')
-rw-r--r-- | test/org/traccar/protocol/AutoFon45ProtocolDecoderTest.java | 25 | ||||
-rw-r--r-- | test/org/traccar/protocol/AutoFonProtocolDecoderTest.java | 13 |
2 files changed, 13 insertions, 25 deletions
diff --git a/test/org/traccar/protocol/AutoFon45ProtocolDecoderTest.java b/test/org/traccar/protocol/AutoFon45ProtocolDecoderTest.java deleted file mode 100644 index 2b4154b27..000000000 --- a/test/org/traccar/protocol/AutoFon45ProtocolDecoderTest.java +++ /dev/null @@ -1,25 +0,0 @@ -package org.traccar.protocol; - -import org.junit.Test; -import org.traccar.ProtocolTest; - - -public class AutoFon45ProtocolDecoderTest extends ProtocolTest { - @Test - public void testDecode() throws Exception { - AutoFon45ProtocolDecoder decoder = new AutoFon45ProtocolDecoder(new AutoFon45Protocol()); - - 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")); - } -} 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"));
+
}
}
|