diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2019-12-12 22:27:52 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2019-12-12 22:27:52 -0800 |
commit | 60d2af43acf8e3e380a0fe0cdc524db65c6c0e12 (patch) | |
tree | 98dde3b5b75af216e4817358f95568a7d8076dcc /src/test/java/org/traccar/protocol | |
parent | 7fc26f8b983fc2a6d7ececa8e78e794e9eb040ac (diff) | |
download | trackermap-server-60d2af43acf8e3e380a0fe0cdc524db65c6c0e12.tar.gz trackermap-server-60d2af43acf8e3e380a0fe0cdc524db65c6c0e12.tar.bz2 trackermap-server-60d2af43acf8e3e380a0fe0cdc524db65c6c0e12.zip |
Add H02 unit tests
Diffstat (limited to 'src/test/java/org/traccar/protocol')
-rw-r--r-- | src/test/java/org/traccar/protocol/H02ProtocolDecoderTest.java | 6 |
1 files changed, 6 insertions, 0 deletions
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#")); |