From e61fb62eba34e337f748eb18ce93bb3d3035e275 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Thu, 17 Dec 2015 10:01:10 +1300 Subject: Fix Noran new position decoding (fix #1595) --- test/org/traccar/protocol/NoranProtocolDecoderTest.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'test') diff --git a/test/org/traccar/protocol/NoranProtocolDecoderTest.java b/test/org/traccar/protocol/NoranProtocolDecoderTest.java index de3a6c24f..abe21c68e 100644 --- a/test/org/traccar/protocol/NoranProtocolDecoderTest.java +++ b/test/org/traccar/protocol/NoranProtocolDecoderTest.java @@ -11,10 +11,13 @@ public class NoranProtocolDecoderTest extends ProtocolTest { public void testDecode() throws Exception { NoranProtocolDecoder decoder = new NoranProtocolDecoder(new NoranProtocol()); - - //verifyPosition(decoder, binary(ByteOrder.LITTLE_ENDIAN, - // "28003200c38000d900fcc97a416b1a7a42b43eef3d4e523039473034383737000000000092fcda4a")); - + + verifyPosition(decoder, binary(ByteOrder.LITTLE_ENDIAN, + "28003200c380000000469458408c4ad340ad381e3f4e52303947313336303900000001ff00002041")); + + verifyPosition(decoder, binary(ByteOrder.LITTLE_ENDIAN, + "28003200c38000d900fcc97a416b1a7a42b43eef3d4e523039473034383737000000000092fcda4a")); + verifyPosition(decoder, binary(ByteOrder.LITTLE_ENDIAN, "3400080001090000000000001D43A29BE842E62520424E523039423036363932000031322D30332D30352031313A34373A343300")); -- cgit v1.2.3