diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-04-24 06:51:06 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2017-04-24 06:51:06 +1200 |
commit | b342537302665a679ff7458aad27d8137a8838f3 (patch) | |
tree | fc5736db844b09cfc7c74934809abf58a0bdf47f /test/org | |
parent | 72f12c56689bc5b90e4b2256027a88289e5f47fa (diff) | |
download | trackermap-server-b342537302665a679ff7458aad27d8137a8838f3.tar.gz trackermap-server-b342537302665a679ff7458aad27d8137a8838f3.tar.bz2 trackermap-server-b342537302665a679ff7458aad27d8137a8838f3.zip |
Implement PT33 protocol variant
Diffstat (limited to 'test/org')
-rw-r--r-- | test/org/traccar/protocol/TrvProtocolDecoderTest.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/TrvProtocolDecoderTest.java b/test/org/traccar/protocol/TrvProtocolDecoderTest.java index f7b9ed1ab..319455b9f 100644 --- a/test/org/traccar/protocol/TrvProtocolDecoderTest.java +++ b/test/org/traccar/protocol/TrvProtocolDecoderTest.java @@ -11,6 +11,21 @@ public class TrvProtocolDecoderTest extends ProtocolTest { TrvProtocolDecoder decoder = new TrvProtocolDecoder(new TrvProtocol()); verifyNull(decoder, text( + "IWAP00353456789012345")); + + verifyPosition(decoder, text( + "IWAP01080524A2232.9806N11404.9355E000.1061830323.8706000908000102,460,0,9520,3671,Home|74-DE-2B-44-88-8C|97& Home1|74-DE-2B-44-88-8C|97&Home2|74-DE-2B-44-88-8C|97& Home3|74-DE-2B-44-88-8C|97")); + + verifyNull(decoder, text( + "IWAP02,zh_cn,0,7,460,0,9520|3671|13,9520|3672|12,9520|3673|11,9520|3674|10,9520|3675|9,9520|3676|8,9520|3677|7,4,1|D8-24-BD-79-FA-1F|59&2|3C-46-D8-6D-CE-01|81&3|0C-4C-39-1A-7C-65|69&4|70-A8-E3-5D-D7-C0|65")); + + verifyPosition(decoder, text( + "IWAP10080524A2232.9806N11404.9355E000.1061830323.8706000908000502,460,0,9520,3671,00,zh-cn,00,HOME|74-DE-2B-44-88-8C|97&HOME1|74-DE-2B-44-88-8C|97&HOME2|74-DE-2B-44-88-8C|97&HOME3|74-DE-2B-44-88-8C|97")); + + verifyNull(decoder, text( + "IWAP03,06000908000102,5555,30")); + + verifyNull(decoder, text( "TRVAP00353456789012345")); verifyAttributes(decoder, text( |