diff options
Diffstat (limited to 'test/org/traccar/helper')
-rw-r--r-- | test/org/traccar/helper/ChannelBufferToolsTest.java | 6 |
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}); + } + } |