diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2013-05-20 21:39:50 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2013-05-20 21:39:50 +1200 |
commit | f5d56c4fcc88ec0edb3296b6bb572ff30860abd2 (patch) | |
tree | 02a9f10d1bab2f48ca0ff22811498f328368277c /test/org/traccar/protocol/H02ProtocolDecoderTest.java | |
parent | 551b941599d95dd8fb26dead74dca44e9e7a2c9b (diff) | |
download | trackermap-server-f5d56c4fcc88ec0edb3296b6bb572ff30860abd2.tar.gz trackermap-server-f5d56c4fcc88ec0edb3296b6bb572ff30860abd2.tar.bz2 trackermap-server-f5d56c4fcc88ec0edb3296b6bb572ff30860abd2.zip |
Add unit tests
Diffstat (limited to 'test/org/traccar/protocol/H02ProtocolDecoderTest.java')
-rw-r--r-- | test/org/traccar/protocol/H02ProtocolDecoderTest.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/H02ProtocolDecoderTest.java b/test/org/traccar/protocol/H02ProtocolDecoderTest.java index 235373113..fe63ea905 100644 --- a/test/org/traccar/protocol/H02ProtocolDecoderTest.java +++ b/test/org/traccar/protocol/H02ProtocolDecoderTest.java @@ -13,6 +13,9 @@ public class H02ProtocolDecoderTest { decoder.setDataManager(new TestDataManager()); assertNotNull(decoder.decode(null, null, + "*HQ,3800008786,V1,062507,V,3048.2437,N,03058.5617,E,000.00,000,250413,FFFFFBFF")); + + assertNotNull(decoder.decode(null, null, "*HQ,123456789012345,V1,155850,A,5214.5346,N,2117.4683,E,0.00,270.90,131012,ffffffff,000000,000000,000000,000000")); assertNotNull(decoder.decode(null, null, @@ -20,6 +23,7 @@ public class H02ProtocolDecoderTest { assertNotNull(decoder.decode(null, null, "*HQ,354188045498669,V1,195200,A,701.8915,S,3450.3399,W,0.00,205.70,050213,ffffffff,000243,000000,000000")); + } |