aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-11-15 10:09:54 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-11-15 10:09:54 +1300
commita79893a68065f4fd1eb684c9df1c346cd7841a83 (patch)
treeb453918cc63d0586d3e3f8f1e4f4a42ed4189e6d /test
parent132e70273ec3ad4b193f759dda8e3a7420bbbeab (diff)
downloadtraccar-server-a79893a68065f4fd1eb684c9df1c346cd7841a83.tar.gz
traccar-server-a79893a68065f4fd1eb684c9df1c346cd7841a83.tar.bz2
traccar-server-a79893a68065f4fd1eb684c9df1c346cd7841a83.zip
Support for GT02 heartbeat messages
Diffstat (limited to 'test')
-rw-r--r--test/org/traccar/protocol/Gt02ProtocolDecoderTest.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/org/traccar/protocol/Gt02ProtocolDecoderTest.java b/test/org/traccar/protocol/Gt02ProtocolDecoderTest.java
index 4f086d4f3..052187c1d 100644
--- a/test/org/traccar/protocol/Gt02ProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/Gt02ProtocolDecoderTest.java
@@ -10,11 +10,14 @@ public class Gt02ProtocolDecoderTest extends ProtocolDecoderTest {
Gt02ProtocolDecoder decoder = new Gt02ProtocolDecoder(new Gt02Protocol());
+ verifyAttributes(decoder, binary(
+ "68681a060303588990500037252de91a010a171a191b171915191e10000d0a"));
+
verifyPosition(decoder, binary(
"68682500000123456789012345000110010101010101026B3F3E026B3F3E000000000000000000010D0A"),
position("2001-01-01 01:01:01.000", true, -22.54610, -22.54610));
- verifyNothing(decoder, binary(
+ verifyAttributes(decoder, binary(
"6868110603035889905101276600001a0402292d0d0a"));
verifyPosition(decoder, binary(