diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-05-09 06:58:16 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2017-05-09 06:58:16 +1200 |
commit | 144b7b5ee832b01dcc76185fd126fbfee970e1a2 (patch) | |
tree | 1c898c852f44dd789c67541d6d2634dd4de4614b /test/org | |
parent | f8fcf51478cb4794208c8a0e0c3b2dee496f02d2 (diff) | |
download | trackermap-server-144b7b5ee832b01dcc76185fd126fbfee970e1a2.tar.gz trackermap-server-144b7b5ee832b01dcc76185fd126fbfee970e1a2.tar.bz2 trackermap-server-144b7b5ee832b01dcc76185fd126fbfee970e1a2.zip |
Add H02 unit test cases
Diffstat (limited to 'test/org')
-rw-r--r-- | test/org/traccar/protocol/H02ProtocolDecoderTest.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/H02ProtocolDecoderTest.java b/test/org/traccar/protocol/H02ProtocolDecoderTest.java index 6e6b37b83..5779853d8 100644 --- a/test/org/traccar/protocol/H02ProtocolDecoderTest.java +++ b/test/org/traccar/protocol/H02ProtocolDecoderTest.java @@ -11,6 +11,12 @@ public class H02ProtocolDecoderTest extends ProtocolTest { H02ProtocolDecoder decoder = new H02ProtocolDecoder(new H02Protocol()); + verifyNull(decoder, buffer( + "*HQ,355488020882405,V3,095426,74001,01,010278,045142,128,-92,02DE,0,X,090517,FFFFFBFF#")); + + verifyNull(decoder, buffer( + "*HQ,355488020882405,V3,095426,74001,04,010278,045142,128,-92,010278,026311,125,,010278,026582,125,,010278,028322,119,,02DD,0,X,090517,FFFFFBFF#")); + verifyPosition(decoder, buffer( "*HQ,4109179024,V19,181519,V,3853.2587,S,06205.9175,W,000.00,000,090217,,5492932630888,8954315265044716555?,FFFFFBFF#")); |