diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-11-25 09:49:54 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-11-25 09:49:54 +1300 |
commit | 2c399889e9b61c8e3580c046a70b556e1ab628e3 (patch) | |
tree | 01ccaadeb85be2c71f971986e5d290caaab54917 /test/org/traccar/protocol | |
parent | 9e5de36d24d477bddc7addc29f4b504314b644cf (diff) | |
download | trackermap-server-2c399889e9b61c8e3580c046a70b556e1ab628e3.tar.gz trackermap-server-2c399889e9b61c8e3580c046a70b556e1ab628e3.tar.bz2 trackermap-server-2c399889e9b61c8e3580c046a70b556e1ab628e3.zip |
Improve H02 protocol decoder regex
Diffstat (limited to 'test/org/traccar/protocol')
-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 b7d2b07b0..be503cc65 100644 --- a/test/org/traccar/protocol/H02ProtocolDecoderTest.java +++ b/test/org/traccar/protocol/H02ProtocolDecoderTest.java @@ -10,6 +10,12 @@ public class H02ProtocolDecoderTest extends ProtocolDecoderTest { public void testDecode() throws Exception { H02ProtocolDecoder decoder = new H02ProtocolDecoder(new H02Protocol()); + + verifyPosition(decoder, buffer( + "*HQ,1451316485,V1,121557,A,-23-3.3408,S,-48-2.8926,W,0.1,158,241115,FFFFFFFF#")); + + verifyPosition(decoder, buffer( + "*HQ,1451316485,V1,121557,A,-23-35.3408,S,-48-2.8926,W,0.1,158,241115,FFFFFFFF#")); verifyPosition(decoder, buffer( "*HQ,355488020119695,V1,050418,,2827.61232,N,07703.84822,E,0.00,0,031015,FFFEFBFF#"), |