aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol/UlbotechFrameDecoderTest.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-10-01 10:09:47 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-10-01 10:09:47 +1300
commitcf8aeca07a7187d62dfa3bc79506c6ff41613f32 (patch)
tree8e3bcb181a6ddb891b0dc3d81c5c7972d8d9e7c7 /test/org/traccar/protocol/UlbotechFrameDecoderTest.java
parenta5a67773580f086c7bf61cf4124b47d80303ba6b (diff)
downloadtrackermap-server-cf8aeca07a7187d62dfa3bc79506c6ff41613f32.tar.gz
trackermap-server-cf8aeca07a7187d62dfa3bc79506c6ff41613f32.tar.bz2
trackermap-server-cf8aeca07a7187d62dfa3bc79506c6ff41613f32.zip
Add Ulbotech unit test cases
Diffstat (limited to 'test/org/traccar/protocol/UlbotechFrameDecoderTest.java')
-rw-r--r--test/org/traccar/protocol/UlbotechFrameDecoderTest.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/UlbotechFrameDecoderTest.java b/test/org/traccar/protocol/UlbotechFrameDecoderTest.java
index 3a21fd209..03a4fb336 100644
--- a/test/org/traccar/protocol/UlbotechFrameDecoderTest.java
+++ b/test/org/traccar/protocol/UlbotechFrameDecoderTest.java
@@ -12,6 +12,10 @@ public class UlbotechFrameDecoderTest extends ProtocolTest {
UlbotechFrameDecoder decoder = new UlbotechFrameDecoder();
Assert.assertEquals(
+ binary("f8010103515810532780699f7e2e3f010e015ee4c906bde45c00000000008b0304004000000404002c776005060373193622110b00240b00fee8ffff807dffff606d0b00fee9af000000af0000000b00feee7d78807dffffffff100101cc2af8"),
+ decoder.decode(null, null, binary("f8010103515810532780699f7e2e3f010e015ee4c906bde45c00000000008b0304004000000404002c776005060373193622110b00240b00fee8ffff807dffff606d0b00fee9af000000af0000000b00feee7d78807dffffffff100101cc2af8")));
+
+ Assert.assertEquals(
binary("2a545330312c33353430343330353133383934363023"),
decoder.decode(null, null, binary("2a545330312c33353430343330353133383934363023")));