aboutsummaryrefslogtreecommitdiff
path: root/src/test/java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-05-27 17:55:01 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2019-05-27 17:55:01 -0700
commit961015781071a240c2e4f9c7c5a33a4bfaafd168 (patch)
tree2d0e230afdec6d9b3885e234b222658d3c57dcd5 /src/test/java
parent2dd2aa777540ad08937943dec16925969f93c51a (diff)
downloadtrackermap-server-961015781071a240c2e4f9c7c5a33a4bfaafd168.tar.gz
trackermap-server-961015781071a240c2e4f9c7c5a33a4bfaafd168.tar.bz2
trackermap-server-961015781071a240c2e4f9c7c5a33a4bfaafd168.zip
Skip keep alive message
Diffstat (limited to 'src/test/java')
-rw-r--r--src/test/java/org/traccar/protocol/TeltonikaFrameDecoderTest.java23
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")));
+
+ }
+
+}