aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2022-01-30 11:50:17 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2022-01-30 11:50:17 -0800
commit17a9b88676b1cef214f1944e39151c7df8f4e3b0 (patch)
tree02db2ef2973282d6639c320ba4397ac9924e8f99 /src/test/java/org/traccar/protocol
parentff51e1ecafe3b26929baa21a20583c1e8ac82271 (diff)
downloadtrackermap-server-17a9b88676b1cef214f1944e39151c7df8f4e3b0.tar.gz
trackermap-server-17a9b88676b1cef214f1944e39151c7df8f4e3b0.tar.bz2
trackermap-server-17a9b88676b1cef214f1944e39151c7df8f4e3b0.zip
Add crash reconstruction report
Diffstat (limited to 'src/test/java/org/traccar/protocol')
-rw-r--r--src/test/java/org/traccar/protocol/SuntechProtocolDecoderTest.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/SuntechProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/SuntechProtocolDecoderTest.java
index a9720f437..098758728 100644
--- a/src/test/java/org/traccar/protocol/SuntechProtocolDecoderTest.java
+++ b/src/test/java/org/traccar/protocol/SuntechProtocolDecoderTest.java
@@ -1,5 +1,6 @@
package org.traccar.protocol;
+import org.junit.Ignore;
import org.junit.Test;
import org.traccar.ProtocolTest;
import org.traccar.model.Position;
@@ -257,4 +258,16 @@ public class SuntechProtocolDecoderTest extends ProtocolTest {
}
+ @Ignore
+ @Test
+ public void testDecodeCrash() throws Exception {
+
+ var decoder = new SuntechProtocolDecoder(null);
+
+ verifyAttribute(decoder, binary(
+ "4352523b303931303030303036333b313b313b303135303b16011c150f0ad82f6c0000000000ae037085fbff7700fd00faff6300f30000006800fb000d007100fa00f32f6c00000000005e044a80fcff6f000301e1ff5d00e900e1ff6400e600f4ff5b00ec000a306c00000000002104248306006c000501fcff5b00e00001006e000101eeff4e00e10022306c00000000005c041a7e00006a00010100005d00f800b5ff7cffdf0050009300fc003b44350d"),
+ Position.KEY_G_SENSOR, "");
+
+ }
+
}