aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-10-09 07:33:58 -0700
committerGitHub <noreply@github.com>2019-10-09 07:33:58 -0700
commitbc14c486eb933411ae4afb4c4215503f9210f677 (patch)
treead5c2cc9558071f33b80760710f0573f2b7a39c2 /src/test/java/org
parente7ba2f77c7e9c9f1065b31a337715b94f43afe26 (diff)
parent059d108b6a188963dba8815d4efe0883fe840617 (diff)
downloadtrackermap-server-bc14c486eb933411ae4afb4c4215503f9210f677.tar.gz
trackermap-server-bc14c486eb933411ae4afb4c4215503f9210f677.tar.bz2
trackermap-server-bc14c486eb933411ae4afb4c4215503f9210f677.zip
Merge pull request #4412 from rsvanda/jc100-alerts
Adds JC100 camera alarms
Diffstat (limited to 'src/test/java/org')
-rw-r--r--src/test/java/org/traccar/protocol/Gt06ProtocolDecoderTest.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/Gt06ProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/Gt06ProtocolDecoderTest.java
index 39b4d58e4..5da713452 100644
--- a/src/test/java/org/traccar/protocol/Gt06ProtocolDecoderTest.java
+++ b/src/test/java/org/traccar/protocol/Gt06ProtocolDecoderTest.java
@@ -300,6 +300,17 @@ public class Gt06ProtocolDecoderTest extends ProtocolTest {
verifyNull(decoder, binary(
"7878058A000688290D0A"));
+ verifyAttribute(decoder, binary(
+ "78780c95130a0209321c90000112800d0a"),
+ Position.KEY_ALARM, Position.ALARM_ACCELERATION);
+
+ verifyAttribute(decoder, binary(
+ "78780c95130a0209321c90000112800d0a"),
+ "alarmValue", 1);
+
+ verifyAttribute(decoder, binary(
+ "78780c95130a0209321c91000112800d0a"),
+ Position.KEY_ALARM, Position.ALARM_BRAKING);
}
}