aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-11-24 22:57:51 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-11-24 22:57:51 +1300
commit89c6edc4b15b9ebebc9699f4740959753ec56bc6 (patch)
tree11fe5c918140e0815c3ab375da43a282ac00812f /test/org/traccar
parent79e54300d36d1e6c55452e9a68d219cb68ab9085 (diff)
downloadtrackermap-server-89c6edc4b15b9ebebc9699f4740959753ec56bc6.tar.gz
trackermap-server-89c6edc4b15b9ebebc9699f4740959753ec56bc6.tar.bz2
trackermap-server-89c6edc4b15b9ebebc9699f4740959753ec56bc6.zip
Add Ulbotech frame decoder test
Diffstat (limited to 'test/org/traccar')
-rw-r--r--test/org/traccar/protocol/UlbotechFrameDecoderTest.java20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/UlbotechFrameDecoderTest.java b/test/org/traccar/protocol/UlbotechFrameDecoderTest.java
new file mode 100644
index 000000000..76e4f799d
--- /dev/null
+++ b/test/org/traccar/protocol/UlbotechFrameDecoderTest.java
@@ -0,0 +1,20 @@
+package org.traccar.protocol;
+
+import org.junit.Assert;
+import org.junit.Test;
+import org.traccar.ProtocolDecoderTest;
+
+public class UlbotechFrameDecoderTest extends ProtocolDecoderTest {
+
+ @Test
+ public void testDecode() throws Exception {
+
+ UlbotechFrameDecoder decoder = new UlbotechFrameDecoder();
+
+ Assert.assertEquals(
+ binary("f8010108679650230646339de69054010e015ee17506bde2c60000000000ac0304024000000404000009f705060390181422170711310583410c0000310d00312f834131018608040003130a100101136cf8"),
+ decoder.decode(null, null, binary("f8010108679650230646339de69054010e015ee17506bde2c60000000000ac0304024000000404000009f70005060390181422170711310583410c0000310d00312f834131018608040003130a100101136cf8")));
+
+ }
+
+}