diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2019-05-27 17:55:01 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2019-05-27 17:55:01 -0700 |
commit | 961015781071a240c2e4f9c7c5a33a4bfaafd168 (patch) | |
tree | 2d0e230afdec6d9b3885e234b222658d3c57dcd5 /src/test/java/org | |
parent | 2dd2aa777540ad08937943dec16925969f93c51a (diff) | |
download | traccar-server-961015781071a240c2e4f9c7c5a33a4bfaafd168.tar.gz traccar-server-961015781071a240c2e4f9c7c5a33a4bfaafd168.tar.bz2 traccar-server-961015781071a240c2e4f9c7c5a33a4bfaafd168.zip |
Skip keep alive message
Diffstat (limited to 'src/test/java/org')
-rw-r--r-- | src/test/java/org/traccar/protocol/TeltonikaFrameDecoderTest.java | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/TeltonikaFrameDecoderTest.java b/src/test/java/org/traccar/protocol/TeltonikaFrameDecoderTest.java new file mode 100644 index 000000000..8d2e70bd4 --- /dev/null +++ b/src/test/java/org/traccar/protocol/TeltonikaFrameDecoderTest.java @@ -0,0 +1,23 @@ +package org.traccar.protocol; + +import org.junit.Test; +import org.traccar.ProtocolTest; + +public class TeltonikaFrameDecoderTest extends ProtocolTest { + + @Test + public void testDecode() throws Exception { + + TeltonikaFrameDecoder decoder = new TeltonikaFrameDecoder(); + + verifyFrame( + binary("000F313233343536373839303132333435"), + decoder.decode(null, null, binary("FF000F313233343536373839303132333435"))); + + verifyFrame( + binary("000F313233343536373839303132333435"), + decoder.decode(null, null, binary("000F313233343536373839303132333435"))); + + } + +} |