diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-04-04 02:21:48 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-04-04 02:21:50 +1200 |
commit | b0a63981a99bbef156c8801ad40d29f3bb2aae8e (patch) | |
tree | b2384787165d3397059ca32ca5f00c915c4ab862 /test/org/traccar | |
parent | 70b4007226fc0ebcfd5133abb2dcaab61ae929d7 (diff) | |
download | trackermap-server-b0a63981a99bbef156c8801ad40d29f3bb2aae8e.tar.gz trackermap-server-b0a63981a99bbef156c8801ad40d29f3bb2aae8e.tar.bz2 trackermap-server-b0a63981a99bbef156c8801ad40d29f3bb2aae8e.zip |
Implement PT60 protocol
Diffstat (limited to 'test/org/traccar')
-rw-r--r-- | test/org/traccar/protocol/Pt60ProtocolDecoderTest.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/Pt60ProtocolDecoderTest.java b/test/org/traccar/protocol/Pt60ProtocolDecoderTest.java new file mode 100644 index 000000000..5bea875e8 --- /dev/null +++ b/test/org/traccar/protocol/Pt60ProtocolDecoderTest.java @@ -0,0 +1,21 @@ +package org.traccar.protocol; + +import org.junit.Test; +import org.traccar.ProtocolTest; + +public class Pt60ProtocolDecoderTest extends ProtocolTest { + + @Test + public void testDecode() throws Exception { + + Pt60ProtocolDecoder decoder = new Pt60ProtocolDecoder(new Pt60Protocol()); + + verifyPosition(decoder, text( + "@G#@,V01,6,111112222233333,8888888888888888,20150312010203,23.2014050;104.235212,")); + + verifyNull(decoder, text( + "@G#@,V01,1,353882080015633,9460025014649193,")); + + } + +} |