aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/helper
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-10-26 12:54:56 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-10-26 12:54:56 +1300
commitfbdd359d223579173b4e0076563df296f5492e3c (patch)
treefaacb0f61e284d17f942cb73d3a85f0dd3496d28 /test/org/traccar/helper
parentd938e1e4d8d54fec6aab26246b6b804d34addf66 (diff)
downloadtraccar-server-fbdd359d223579173b4e0076563df296f5492e3c.tar.gz
traccar-server-fbdd359d223579173b4e0076563df296f5492e3c.tar.bz2
traccar-server-fbdd359d223579173b4e0076563df296f5492e3c.zip
Rename hex conversion methods
Diffstat (limited to 'test/org/traccar/helper')
-rw-r--r--test/org/traccar/helper/ChannelBufferToolsTest.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/test/org/traccar/helper/ChannelBufferToolsTest.java b/test/org/traccar/helper/ChannelBufferToolsTest.java
index 3d065a8d7..d34dfe9f7 100644
--- a/test/org/traccar/helper/ChannelBufferToolsTest.java
+++ b/test/org/traccar/helper/ChannelBufferToolsTest.java
@@ -1,9 +1,7 @@
package org.traccar.helper;
-import org.jboss.netty.buffer.ChannelBuffer;
-import org.jboss.netty.buffer.ChannelBufferFactory;
import org.jboss.netty.buffer.ChannelBuffers;
-import org.jboss.netty.buffer.HeapChannelBufferFactory;
+
import static org.junit.Assert.*;
import org.junit.Test;
@@ -30,12 +28,12 @@ public class ChannelBufferToolsTest {
@Test
public void convertHexStringTest() {
- assertArrayEquals(new byte[] {0x12, 0x34}, ChannelBufferTools.convertHexString("1234"));
+ assertArrayEquals(new byte[] {0x12, 0x34}, ChannelBufferTools.hexToBytes("1234"));
}
@Test
public void convertHexByteArray() {
- assertEquals("1234", ChannelBufferTools.convertByteArray(new byte[] {0x12, 0x34}));
+ assertEquals("1234", ChannelBufferTools.bytesToHex(new byte[]{0x12, 0x34}));
}
}