aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/helper
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-01-07 16:16:12 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-01-07 16:16:12 +1300
commit68e178c43d8619b8b13aa78828c75e788d4d2621 (patch)
tree178144cd8e08202139f0023000696af051c30156 /test/org/traccar/helper
parent17b247bb7d55be49ef1ca24465e81c350ca7b49c (diff)
downloadtrackermap-server-68e178c43d8619b8b13aa78828c75e788d4d2621.tar.gz
trackermap-server-68e178c43d8619b8b13aa78828c75e788d4d2621.tar.bz2
trackermap-server-68e178c43d8619b8b13aa78828c75e788d4d2621.zip
Add hex conversion method
Diffstat (limited to 'test/org/traccar/helper')
-rw-r--r--test/org/traccar/helper/ChannelBufferToolsTest.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/org/traccar/helper/ChannelBufferToolsTest.java b/test/org/traccar/helper/ChannelBufferToolsTest.java
index 792770dab..67c58058b 100644
--- a/test/org/traccar/helper/ChannelBufferToolsTest.java
+++ b/test/org/traccar/helper/ChannelBufferToolsTest.java
@@ -31,4 +31,10 @@ public class ChannelBufferToolsTest {
result = Long.valueOf(result).toString();
assertEquals("1903", result);
}
+
+ @Test
+ public void convertHexStringTest() {
+ assertArrayEquals(ChannelBufferTools.convertHexString("1234"), new byte[] {0x12,0x34});
+ }
+
}