Skip to content

Commit

Permalink
Add H02 unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
tananaev committed Sep 28, 2017
1 parent 92473a5 commit 5678fb0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/org/traccar/protocol/H02ProtocolDecoderTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ public void testDecode() throws Exception {

H02ProtocolDecoder decoder = new H02ProtocolDecoder(new H02Protocol());

verifyPosition(decoder, buffer(
"*HQ,353505221264507,V2,100220,0,5238.26259,N,00507.33983,E,0.25,0,280917,FFFFFFFF,cc,28, db,d75b#"));

verifyPosition(decoder, buffer(
"*HQ,353505221264507,VI1,075146,0,5238.25900,N,00507.33429,E,0.54,0,250917,FFFFFFFF,cc,28, db,d75b#"));

Expand Down

0 comments on commit 5678fb0

Please sign in to comment.