diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-02-10 07:50:43 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2017-02-10 07:50:43 +1300 |
commit | 5ea4bf51645c37ab7046c7c8d4b5d090e02d5da4 (patch) | |
tree | f3acc64f177501c544863ea4a727a65ef6ad9d2a /test/org/traccar/protocol | |
parent | a6b0e0fc80a763b93c8cccf0b40701b4368dd6b9 (diff) | |
download | trackermap-server-5ea4bf51645c37ab7046c7c8d4b5d090e02d5da4.tar.gz trackermap-server-5ea4bf51645c37ab7046c7c8d4b5d090e02d5da4.tar.bz2 trackermap-server-5ea4bf51645c37ab7046c7c8d4b5d090e02d5da4.zip |
Implement Pricol communication protocol
Diffstat (limited to 'test/org/traccar/protocol')
-rw-r--r-- | test/org/traccar/protocol/PricolProtocolDecoderTest.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/PricolProtocolDecoderTest.java b/test/org/traccar/protocol/PricolProtocolDecoderTest.java new file mode 100644 index 000000000..6c7837f76 --- /dev/null +++ b/test/org/traccar/protocol/PricolProtocolDecoderTest.java @@ -0,0 +1,18 @@ +package org.traccar.protocol; + +import org.junit.Test; +import org.traccar.ProtocolTest; + +public class PricolProtocolDecoderTest extends ProtocolTest { + + @Test + public void testDecode() throws Exception { + + PricolProtocolDecoder decoder = new PricolProtocolDecoder(new PricolProtocol()); + + verifyPosition(decoder, binary( + "3c4944303030303150FFFFFFFF1C050C121D38045D09FA4e001DE815F4452FFFFFFFFFFF03FF03FF03FF03FF03FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF113e")); + + } + +} |