diff options
Diffstat (limited to 'test/org/traccar/helper/ChannelBufferToolsTest.java')
-rw-r--r-- | test/org/traccar/helper/ChannelBufferToolsTest.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/org/traccar/helper/ChannelBufferToolsTest.java b/test/org/traccar/helper/ChannelBufferToolsTest.java index 67c58058b..90f5e82ae 100644 --- a/test/org/traccar/helper/ChannelBufferToolsTest.java +++ b/test/org/traccar/helper/ChannelBufferToolsTest.java @@ -34,7 +34,12 @@ public class ChannelBufferToolsTest { @Test public void convertHexStringTest() { - assertArrayEquals(ChannelBufferTools.convertHexString("1234"), new byte[] {0x12,0x34}); + assertArrayEquals(new byte[] {0x12,0x34}, ChannelBufferTools.convertHexString("1234")); + } + + @Test + public void convertHexByteArray() { + assertEquals("1234", ChannelBufferTools.convertByteArray(new byte[] {0x12,0x34})); } } |