diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-06-08 11:07:43 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-06-08 11:07:43 +1200 |
commit | 4d9187e2ee98eee17d4adbcb84379e2c68fe2bcd (patch) | |
tree | 0751e189301c050e3a66ef25326190ea54fc7f92 /test/org/traccar/protocol/NoranProtocolDecoderTest.java | |
parent | e26b25c7c35cb99f3e0fb114bcedd76f090e0c3b (diff) | |
download | trackermap-server-4d9187e2ee98eee17d4adbcb84379e2c68fe2bcd.tar.gz trackermap-server-4d9187e2ee98eee17d4adbcb84379e2c68fe2bcd.tar.bz2 trackermap-server-4d9187e2ee98eee17d4adbcb84379e2c68fe2bcd.zip |
Migrate L, M, N protocols
Diffstat (limited to 'test/org/traccar/protocol/NoranProtocolDecoderTest.java')
-rw-r--r-- | test/org/traccar/protocol/NoranProtocolDecoderTest.java | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/test/org/traccar/protocol/NoranProtocolDecoderTest.java b/test/org/traccar/protocol/NoranProtocolDecoderTest.java index 1132ec805..f841b7d96 100644 --- a/test/org/traccar/protocol/NoranProtocolDecoderTest.java +++ b/test/org/traccar/protocol/NoranProtocolDecoderTest.java @@ -1,7 +1,5 @@ package org.traccar.protocol; -import java.nio.ByteOrder; - import org.junit.Test; import org.traccar.ProtocolTest; @@ -12,34 +10,34 @@ public class NoranProtocolDecoderTest extends ProtocolTest { NoranProtocolDecoder decoder = new NoranProtocolDecoder(new NoranProtocol()); - verifyNull(decoder, binary(ByteOrder.LITTLE_ENDIAN, + verifyNull(decoder, binary( "0d0a2a4b57000d000080010d0a")); - verifyPosition(decoder, binary(ByteOrder.LITTLE_ENDIAN, + verifyPosition(decoder, binary( "34000800010b0000000000003f43bb8da6c2ebe229424e523039423233343439000031362d30392d31352030373a30303a303700")); - verifyPosition(decoder, binary(ByteOrder.LITTLE_ENDIAN, + verifyPosition(decoder, binary( "28003200c380000000469458408c4ad340ad381e3f4e52303947313336303900000001ff00002041")); - verifyPosition(decoder, binary(ByteOrder.LITTLE_ENDIAN, + verifyPosition(decoder, binary( "28003200c38000d900fcc97a416b1a7a42b43eef3d4e523039473034383737000000000092fcda4a")); - verifyPosition(decoder, binary(ByteOrder.LITTLE_ENDIAN, + verifyPosition(decoder, binary( "3400080001090000000000001D43A29BE842E62520424E523039423036363932000031322D30332D30352031313A34373A343300")); - verifyPosition(decoder, binary(ByteOrder.LITTLE_ENDIAN, + verifyPosition(decoder, binary( "34000800010c000000000080a3438e20944149bd07c24e523039423139323832000031352d30342d32362030383a34333a353300")); - verifyNull(decoder, binary(ByteOrder.LITTLE_ENDIAN, + verifyNull(decoder, binary( "0f0000004e52303946303431353500")); - verifyPosition(decoder, binary(ByteOrder.LITTLE_ENDIAN, + verifyPosition(decoder, binary( "22000800010c008a007e9daa42317bdd41a7f3e2384e523039463034313535000000")); - verifyPosition(decoder, binary(ByteOrder.LITTLE_ENDIAN, + verifyPosition(decoder, binary( "34000800010c0000000000001c4291251143388d17c24e523039423131303930000031342d31322d32352030303a33333a303700")); - verifyPosition(decoder, binary(ByteOrder.LITTLE_ENDIAN, + verifyPosition(decoder, binary( "34000800010c00000000000000006520944141bd07c24e523039423139323832000031352d30342d32352030303a30333a323200")); } |