diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-07-06 16:31:44 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-07-06 16:31:44 +1200 |
commit | 2f27e1e7af87191ae242732119073148561658cd (patch) | |
tree | 6acd88e034f0e2e92883929f0a1c710482657e76 /test/org/traccar/protocol/L100ProtocolDecoderTest.java | |
parent | 4ff6bf486ae2026b8943ec11b848a993b9067db2 (diff) | |
download | trackermap-server-2f27e1e7af87191ae242732119073148561658cd.tar.gz trackermap-server-2f27e1e7af87191ae242732119073148561658cd.tar.bz2 trackermap-server-2f27e1e7af87191ae242732119073148561658cd.zip |
Implement ATL L100 protocol for VTS
Diffstat (limited to 'test/org/traccar/protocol/L100ProtocolDecoderTest.java')
-rw-r--r-- | test/org/traccar/protocol/L100ProtocolDecoderTest.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/L100ProtocolDecoderTest.java b/test/org/traccar/protocol/L100ProtocolDecoderTest.java new file mode 100644 index 000000000..07e72140d --- /dev/null +++ b/test/org/traccar/protocol/L100ProtocolDecoderTest.java @@ -0,0 +1,18 @@ +package org.traccar.protocol; + +import org.junit.Test; +import org.traccar.ProtocolTest; + +public class L100ProtocolDecoderTest extends ProtocolTest { + + @Test + public void testDecode() throws Exception { + + L100ProtocolDecoder decoder = new L100ProtocolDecoder(new L100Protocol()); + + verifyPosition(decoder, binary( + "200141544c3335363839353033373533333734352c244750524d432c3131313731392e3030302c412c323833382e303034352c4e2c30373731332e333730372c452c302e30302c2c3132303831302c2c2c412a37352c2330313130303131313030313031302c4e2e432c4e2e432c4e2e432c31323334352e36372c33312e342c342e322c32312c3130302c3030302c3030303030312c303030303041544c027a")); + + } + +} |