diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2021-04-11 12:31:58 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2021-04-11 12:31:58 -0700 |
commit | d492aeec2ab8ba53725d91e99140dc2774f7e3f1 (patch) | |
tree | c2accb90d8d990519e8e20eb44fcd05ce762b60d /src/test/java/org | |
parent | 2099230503370be87b893287e264aa200d0d930f (diff) | |
download | traccar-server-d492aeec2ab8ba53725d91e99140dc2774f7e3f1.tar.gz traccar-server-d492aeec2ab8ba53725d91e99140dc2774f7e3f1.tar.bz2 traccar-server-d492aeec2ab8ba53725d91e99140dc2774f7e3f1.zip |
Implement GS100 protocol
Diffstat (limited to 'src/test/java/org')
-rw-r--r-- | src/test/java/org/traccar/protocol/Gs100ProtocolDecoderTest.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/Gs100ProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/Gs100ProtocolDecoderTest.java new file mode 100644 index 000000000..91bbf386c --- /dev/null +++ b/src/test/java/org/traccar/protocol/Gs100ProtocolDecoderTest.java @@ -0,0 +1,21 @@ +package org.traccar.protocol; + +import org.junit.Test; +import org.traccar.ProtocolTest; + +public class Gs100ProtocolDecoderTest extends ProtocolTest { + + @Test + public void testDecode() throws Exception { + + var decoder = new Gs100ProtocolDecoder(null); + + verifyNull(decoder, binary( + "474C490F383632343632303332353036373030133839333831303131363039313838343837323546084657312E302E3236")); + + verifyPositions(decoder, binary( + "47440216900000064113030417020236402C452286650051929716900000064115030417020236408C4522866800379020")); + + } + +} |