aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol
diff options
context:
space:
mode:
Diffstat (limited to 'test/org/traccar/protocol')
-rw-r--r--test/org/traccar/protocol/AutoFon45ProtocolDecoderTest.java25
-rw-r--r--test/org/traccar/protocol/AutoFonProtocolDecoderTest.java13
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"));
+
}
}