aboutsummaryrefslogtreecommitdiff
path: root/src/test/java
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-08-16 17:59:38 -0700
committerAnton Tananaev <anton@traccar.org>2022-08-16 17:59:38 -0700
commitd11002c4820c2f964a9e4c2f1bdc8b758bfa7050 (patch)
treee0c9a75c3a74afd4a5371ca773786e3d10cbb09a /src/test/java
parenta0e484704bd9b5e046a6940beb7450168b5188df (diff)
downloadtrackermap-server-d11002c4820c2f964a9e4c2f1bdc8b758bfa7050.tar.gz
trackermap-server-d11002c4820c2f964a9e4c2f1bdc8b758bfa7050.tar.bz2
trackermap-server-d11002c4820c2f964a9e4c2f1bdc8b758bfa7050.zip
Add Mobicom driving behavior
Diffstat (limited to 'src/test/java')
-rw-r--r--src/test/java/org/traccar/protocol/HuabaoProtocolDecoderTest.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/HuabaoProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/HuabaoProtocolDecoderTest.java
index 49622745f..7322185d5 100644
--- a/src/test/java/org/traccar/protocol/HuabaoProtocolDecoderTest.java
+++ b/src/test/java/org/traccar/protocol/HuabaoProtocolDecoderTest.java
@@ -12,6 +12,10 @@ public class HuabaoProtocolDecoderTest extends ProtocolTest {
var decoder = inject(new HuabaoProtocolDecoder(null));
verifyAttribute(decoder, binary(
+ "7E0200008201215233475100030000000000000003015A7F6106CF8CEC003D0000000021071311481901040000005630011931011AE10200755D3D0601CC0024990A7dA0032301CC002499099B2941FC01CC002499099B29430B01CC0024990A7dA0290601CC0024990A7dA015FD01CC0026220994506BFFFE157C010400000001F10C000000000000000000000000997E"),
+ Position.KEY_ALARM, Position.ALARM_ACCELERATION);
+
+ verifyAttribute(decoder, binary(
"7e020000340551231425560568000000000400000201618a9706c320e100410000002722060816261501040000015d300115310105eb0a000300e164000300e301957e"),
Position.KEY_BATTERY_LEVEL, 100);