aboutsummaryrefslogtreecommitdiff
path: root/src/test/java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-10-11 04:47:17 +0900
committerAnton Tananaev <anton.tananaev@gmail.com>2019-10-11 04:47:17 +0900
commitc38458e2fc88d06582393c0d384637a7cf05cdf4 (patch)
treef9cb569be084fddd87e53b20936b5734038d8ea4 /src/test/java
parent18efbd5b1bfd272387a97606e6b9f36d4e6da5ff (diff)
downloadtraccar-server-c38458e2fc88d06582393c0d384637a7cf05cdf4.tar.gz
traccar-server-c38458e2fc88d06582393c0d384637a7cf05cdf4.tar.bz2
traccar-server-c38458e2fc88d06582393c0d384637a7cf05cdf4.zip
Add alarm test case
Diffstat (limited to 'src/test/java')
-rw-r--r--src/test/java/org/traccar/protocol/Gt06ProtocolDecoderTest.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/Gt06ProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/Gt06ProtocolDecoderTest.java
index 5da713452..d31cac534 100644
--- a/src/test/java/org/traccar/protocol/Gt06ProtocolDecoderTest.java
+++ b/src/test/java/org/traccar/protocol/Gt06ProtocolDecoderTest.java
@@ -18,6 +18,10 @@ public class Gt06ProtocolDecoderTest extends ProtocolTest {
"78780D01086471700328358100093F040D0A"));
verifyAttribute(decoder, binary(
+ "78780c95130a071223200100013ad10d0a"),
+ Position.KEY_ALARM, Position.ALARM_GENERAL);
+
+ verifyAttribute(decoder, binary(
"797900a87000000001020035000101003300125d7e3a180600d504b598f708814b3a001d1500340006125d7e39dc000011000a012e02620000000000000001000803537601000129800002000803102608593397620003000a89012608522933976266001800020172002b000114002c00045d7df3c70009000106000a000109002800010d002e00040000f25d002a000111002900040000017e0030000a000100b4000a00b402d0000591250d0a"),
Position.KEY_ALARM, Position.ALARM_REMOVING);