diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-26 13:11:19 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-26 13:11:19 +1300 |
commit | 3e56ea6a99e7da5d61c5956876c2d977268e4756 (patch) | |
tree | f70f61b1ec218e4491d36c10d5fbd52a67ba4862 /test/org/traccar/protocol/CityeasyProtocolEncoderTest.java | |
parent | fbdd359d223579173b4e0076563df296f5492e3c (diff) | |
download | trackermap-server-3e56ea6a99e7da5d61c5956876c2d977268e4756.tar.gz trackermap-server-3e56ea6a99e7da5d61c5956876c2d977268e4756.tar.bz2 trackermap-server-3e56ea6a99e7da5d61c5956876c2d977268e4756.zip |
Use standard Java hex conversion
Diffstat (limited to 'test/org/traccar/protocol/CityeasyProtocolEncoderTest.java')
-rw-r--r-- | test/org/traccar/protocol/CityeasyProtocolEncoderTest.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/org/traccar/protocol/CityeasyProtocolEncoderTest.java b/test/org/traccar/protocol/CityeasyProtocolEncoderTest.java index e2bfbb19a..19efb7af4 100644 --- a/test/org/traccar/protocol/CityeasyProtocolEncoderTest.java +++ b/test/org/traccar/protocol/CityeasyProtocolEncoderTest.java @@ -6,6 +6,8 @@ import org.junit.Test; import org.traccar.helper.ChannelBufferTools; import org.traccar.model.Command; +import javax.xml.bind.DatatypeConverter; + public class CityeasyProtocolEncoderTest { @Test @@ -18,8 +20,8 @@ public class CityeasyProtocolEncoderTest { command.setType(Command.TYPE_SET_TIMEZONE); command.set(Command.KEY_TIMEZONE, 6 * 3600); - Assert.assertEquals(encoder.encodeCommand(command), ChannelBuffers.wrappedBuffer(ChannelBufferTools.hexToBytes( - "5353001100080001680000000B60820D0A"))); + Assert.assertEquals(encoder.encodeCommand(command), ChannelBuffers.wrappedBuffer( + DatatypeConverter.parseHexBinary("5353001100080001680000000B60820D0A"))); } |