From 60d2af43acf8e3e380a0fe0cdc524db65c6c0e12 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Thu, 12 Dec 2019 22:27:52 -0800 Subject: Add H02 unit tests --- src/test/java/org/traccar/protocol/H02ProtocolDecoderTest.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/test/java/org/traccar') diff --git a/src/test/java/org/traccar/protocol/H02ProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/H02ProtocolDecoderTest.java index 687a2a68c..306555736 100644 --- a/src/test/java/org/traccar/protocol/H02ProtocolDecoderTest.java +++ b/src/test/java/org/traccar/protocol/H02ProtocolDecoderTest.java @@ -11,6 +11,12 @@ public class H02ProtocolDecoderTest extends ProtocolTest { H02ProtocolDecoder decoder = new H02ProtocolDecoder(null); + verifyPosition(decoder, buffer( + "*HQ,9180271064,V5,091233,V,2348.8912,N,09021.3302,E,000.00,000,051219,FFFFBBFF,470,01,21019,2033,2921283#")); + + verifyPosition(decoder, binary( + "2491802711800850240512192350143206090249758e000001ffffbbff00bdf0900000000001d60161cc4b9a35")); + verifyNull(decoder, buffer( "*HQ,135790246811220,HTBT#")); -- cgit v1.2.3