aboutsummaryrefslogtreecommitdiff
path: root/test/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-07-13 05:57:21 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2017-07-13 05:57:21 +1200
commitbeffaa1bcb14965e34d533cf7c771886c5832391 (patch)
tree1cf326a5865dd77433599393d5d1942b230bba0c /test/org
parenteee59141bd21d929467819a8eb6c904140efceaa (diff)
downloadtrackermap-server-beffaa1bcb14965e34d533cf7c771886c5832391.tar.gz
trackermap-server-beffaa1bcb14965e34d533cf7c771886c5832391.tar.bz2
trackermap-server-beffaa1bcb14965e34d533cf7c771886c5832391.zip
Add Teltonika UDP tests
Diffstat (limited to 'test/org')
-rw-r--r--test/org/traccar/protocol/TeltonikaProtocolDecoderTest.java14
1 files changed, 13 insertions, 1 deletions
diff --git a/test/org/traccar/protocol/TeltonikaProtocolDecoderTest.java b/test/org/traccar/protocol/TeltonikaProtocolDecoderTest.java
index dd484cad7..2eb5271d1 100644
--- a/test/org/traccar/protocol/TeltonikaProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/TeltonikaProtocolDecoderTest.java
@@ -1,5 +1,6 @@
package org.traccar.protocol;
+import org.junit.Ignore;
import org.junit.Test;
import org.traccar.ProtocolTest;
@@ -8,7 +9,7 @@ public class TeltonikaProtocolDecoderTest extends ProtocolTest {
@Test
public void testDecode() throws Exception {
- TeltonikaProtocolDecoder decoder = new TeltonikaProtocolDecoder(new TeltonikaProtocol());
+ TeltonikaProtocolDecoder decoder = new TeltonikaProtocolDecoder(new TeltonikaProtocol(), false);
verifyNull(decoder, binary(
"000F313233343536373839303132333435"));
@@ -60,4 +61,15 @@ public class TeltonikaProtocolDecoderTest extends ProtocolTest {
}
+ @Ignore
+ @Test
+ public void testDecodeConnectionless() throws Exception {
+
+ TeltonikaProtocolDecoder decoder = new TeltonikaProtocolDecoder(new TeltonikaProtocol(), true);
+
+ verifyPositions(decoder, false, binary(
+ "0049cafe0122000f33353734353430373237313339373508010000015d3766f6a800003eef961ec6215e0063006d09003100070401000200f001c8000242381c18003201c7000000e10001"));
+
+ }
+
}