aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/ProtocolDecoderTest.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-10-26 13:11:19 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-10-26 13:11:19 +1300
commit3e56ea6a99e7da5d61c5956876c2d977268e4756 (patch)
treef70f61b1ec218e4491d36c10d5fbd52a67ba4862 /test/org/traccar/ProtocolDecoderTest.java
parentfbdd359d223579173b4e0076563df296f5492e3c (diff)
downloadtrackermap-server-3e56ea6a99e7da5d61c5956876c2d977268e4756.tar.gz
trackermap-server-3e56ea6a99e7da5d61c5956876c2d977268e4756.tar.bz2
trackermap-server-3e56ea6a99e7da5d61c5956876c2d977268e4756.zip
Use standard Java hex conversion
Diffstat (limited to 'test/org/traccar/ProtocolDecoderTest.java')
-rw-r--r--test/org/traccar/ProtocolDecoderTest.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/org/traccar/ProtocolDecoderTest.java b/test/org/traccar/ProtocolDecoderTest.java
index 992ade8f8..d91675f10 100644
--- a/test/org/traccar/ProtocolDecoderTest.java
+++ b/test/org/traccar/ProtocolDecoderTest.java
@@ -11,6 +11,7 @@ import org.traccar.helper.ChannelBufferTools;
import org.traccar.model.Device;
import org.traccar.model.Position;
+import javax.xml.bind.DatatypeConverter;
import java.nio.ByteOrder;
import java.nio.charset.Charset;
import java.text.DateFormat;
@@ -104,7 +105,7 @@ public class ProtocolDecoderTest {
protected ChannelBuffer binary(ByteOrder endianness, String... data) {
return ChannelBuffers.wrappedBuffer(
- endianness, ChannelBufferTools.hexToBytes(concatenateStrings(data)));
+ endianness, DatatypeConverter.parseHexBinary(concatenateStrings(data)));
}
protected String text(String... data) {