diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-10-25 22:03:19 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2017-10-25 22:03:19 +1300 |
commit | fa9d7dbce38370a82d59494dec698b2177a45ec2 (patch) | |
tree | 504f0010539c5be880d302b4031bca02efb9caaf /test/org/traccar/protocol/DwayProtocolDecoderTest.java | |
parent | 7c8ef7696273efeb09d7bb81c4870de5602d386c (diff) | |
download | trackermap-server-fa9d7dbce38370a82d59494dec698b2177a45ec2.tar.gz trackermap-server-fa9d7dbce38370a82d59494dec698b2177a45ec2.tar.bz2 trackermap-server-fa9d7dbce38370a82d59494dec698b2177a45ec2.zip |
Implement D-WAY protocol
Diffstat (limited to 'test/org/traccar/protocol/DwayProtocolDecoderTest.java')
-rw-r--r-- | test/org/traccar/protocol/DwayProtocolDecoderTest.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/DwayProtocolDecoderTest.java b/test/org/traccar/protocol/DwayProtocolDecoderTest.java new file mode 100644 index 000000000..33a943b29 --- /dev/null +++ b/test/org/traccar/protocol/DwayProtocolDecoderTest.java @@ -0,0 +1,21 @@ +package org.traccar.protocol; + +import org.junit.Test; +import org.traccar.ProtocolTest; + +public class DwayProtocolDecoderTest extends ProtocolTest { + + @Test + public void testDecode() throws Exception { + + DwayProtocolDecoder decoder = new DwayProtocolDecoder(new DwayProtocol()); + + verifyPosition(decoder, text( + "AA55,1,123456,1,140101,101132,22.5500,113.6770,75,70.5,320,1100,0011,1110,3950,33000,24000,12345678")); + + verifyNull(decoder, text( + ">H12345678")); + + } + +} |