diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-12-13 21:16:45 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-12-15 22:13:33 +1300 |
commit | 7040ded21ce6196a71b94c4ff8b3e45a4d937e93 (patch) | |
tree | bc3fd0bef346e18044d58718ec3715ef2c1f05b6 /test/org/traccar/protocol/DishaProtocolDecoderTest.java | |
parent | 0089c8746c6f641ad7d7dbc5dda21037cf85fdba (diff) | |
download | trackermap-server-7040ded21ce6196a71b94c4ff8b3e45a4d937e93.tar.gz trackermap-server-7040ded21ce6196a71b94c4ff8b3e45a4d937e93.tar.bz2 trackermap-server-7040ded21ce6196a71b94c4ff8b3e45a4d937e93.zip |
Add support for Disha device protocol
Diffstat (limited to 'test/org/traccar/protocol/DishaProtocolDecoderTest.java')
-rw-r--r-- | test/org/traccar/protocol/DishaProtocolDecoderTest.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/DishaProtocolDecoderTest.java b/test/org/traccar/protocol/DishaProtocolDecoderTest.java new file mode 100644 index 000000000..e22de4f5c --- /dev/null +++ b/test/org/traccar/protocol/DishaProtocolDecoderTest.java @@ -0,0 +1,18 @@ +package org.traccar.protocol; + +import org.junit.Test; +import org.traccar.ProtocolTest; + +public class DishaProtocolDecoderTest extends ProtocolTest { + + @Test + public void testDecode() throws Exception { + + DishaProtocolDecoder decoder = new DishaProtocolDecoder(new DishaProtocol()); + + verifyPosition(decoder, text( + "$A#A#353943046615971#A#064219#281113#1836.7267#N#07347.4177#E#000.00#280.4#09#00.8#3000#2#100#0000#8888#86.5#3919.1#0000*")); + + } + +} |