diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2019-09-21 11:29:05 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2019-09-21 11:29:05 -0700 |
commit | 0e2a2b1b6ba851d599c9c8f53b3775eb15378b7c (patch) | |
tree | 3e80216f14e8b4c0a07099609073f096fdc5f27e /src/test/java | |
parent | 94dad7a70fe4d8b733f773820743c61891bb771d (diff) | |
download | traccar-server-0e2a2b1b6ba851d599c9c8f53b3775eb15378b7c.tar.gz traccar-server-0e2a2b1b6ba851d599c9c8f53b3775eb15378b7c.tar.bz2 traccar-server-0e2a2b1b6ba851d599c9c8f53b3775eb15378b7c.zip |
Implement PT215 protocol
Diffstat (limited to 'src/test/java')
-rw-r--r-- | src/test/java/org/traccar/protocol/Pt215ProtocolDecoderTest.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/Pt215ProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/Pt215ProtocolDecoderTest.java new file mode 100644 index 000000000..59574aeee --- /dev/null +++ b/src/test/java/org/traccar/protocol/Pt215ProtocolDecoderTest.java @@ -0,0 +1,21 @@ +package org.traccar.protocol; + +import org.junit.Test; +import org.traccar.ProtocolTest; + +public class Pt215ProtocolDecoderTest extends ProtocolTest { + + @Test + public void testDecode() throws Exception { + + Pt215ProtocolDecoder decoder = new Pt215ProtocolDecoder(null); + + verifyNull(decoder, binary( + "58580d010359339075435451010d0a")); + + verifyNull(decoder, binary( + "585801080d0a")); + + } + +} |