diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2020-09-12 17:34:02 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2020-09-12 17:34:02 -0700 |
commit | d4bbb39025acc534453b8df7444f8d1b761c669e (patch) | |
tree | e2806abe7bb123dff197991c4dd7bfe70d78641e /src/test/java/org/traccar/protocol/FutureWayFrameDecoderTest.java | |
parent | 50fb8ee8347481abec7aeb5431426ef12dfb0617 (diff) | |
download | trackermap-server-d4bbb39025acc534453b8df7444f8d1b761c669e.tar.gz trackermap-server-d4bbb39025acc534453b8df7444f8d1b761c669e.tar.bz2 trackermap-server-d4bbb39025acc534453b8df7444f8d1b761c669e.zip |
Implement FutureWay protocol
Diffstat (limited to 'src/test/java/org/traccar/protocol/FutureWayFrameDecoderTest.java')
-rw-r--r-- | src/test/java/org/traccar/protocol/FutureWayFrameDecoderTest.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/FutureWayFrameDecoderTest.java b/src/test/java/org/traccar/protocol/FutureWayFrameDecoderTest.java new file mode 100644 index 000000000..fb1e395f1 --- /dev/null +++ b/src/test/java/org/traccar/protocol/FutureWayFrameDecoderTest.java @@ -0,0 +1,19 @@ +package org.traccar.protocol; + +import org.junit.Test; +import org.traccar.ProtocolTest; + +public class FutureWayFrameDecoderTest extends ProtocolTest { + + @Test + public void testDecode() throws Exception { + + FutureWayFrameDecoder decoder = new FutureWayFrameDecoder(); + + verifyFrame( + binary("34313030303030303346323030303032302c494d45493a3335343832383130303132363436312c62617474657279206c6576656c3a362c6e6574776f726b20747970653a372c4353513a323336463432"), + decoder.decode(null, null, binary("34313030303030303346323030303032302c494d45493a3335343832383130303132363436312c62617474657279206c6576656c3a362c6e6574776f726b20747970653a372c4353513a323336463432"))); + + } + +} |