From 00116baebfd152e1e4df7835673d1f6fb443e862 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 21 Dec 2014 12:58:54 +1300 Subject: Add Meiligao test case --- test/org/traccar/protocol/MeiligaoProtocolDecoderTest.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/org/traccar/protocol') diff --git a/test/org/traccar/protocol/MeiligaoProtocolDecoderTest.java b/test/org/traccar/protocol/MeiligaoProtocolDecoderTest.java index 9a00b487e..73f1d9a93 100644 --- a/test/org/traccar/protocol/MeiligaoProtocolDecoderTest.java +++ b/test/org/traccar/protocol/MeiligaoProtocolDecoderTest.java @@ -16,6 +16,9 @@ public class MeiligaoProtocolDecoderTest { assertNull(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ChannelBufferTools.convertArray( new int[]{0x24,0x24,0x00,0x00,0x12,0x34,0x56,0xFF,0xFF,0xFF,0xFF,0x50,0x00,0x8B,0x9B,0x0D,0x0A})))); + + verify(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ChannelBufferTools.convertArray( + new int[]{0x24,0x24,0x00,0x6e,0x24,0x11,0x20,0x14,0x1f,0xff,0xff,0x99,0x55,0x30,0x39,0x33,0x39,0x31,0x30,0x2e,0x30,0x30,0x2c,0x41,0x2c,0x31,0x39,0x31,0x34,0x2e,0x37,0x37,0x37,0x36,0x35,0x2c,0x4e,0x2c,0x30,0x37,0x32,0x35,0x30,0x2e,0x36,0x38,0x30,0x37,0x32,0x2c,0x45,0x2c,0x30,0x2e,0x30,0x35,0x31,0x2c,0x2c,0x32,0x30,0x31,0x32,0x31,0x34,0x2c,0x2c,0x2c,0x44,0x2a,0x37,0x35,0x7c,0x30,0x2e,0x38,0x32,0x7c,0x32,0x2e,0x38,0x7c,0x30,0x30,0x30,0x30,0x7c,0x30,0x30,0x30,0x30,0x2c,0x30,0x30,0x30,0x30,0x7c,0x30,0x31,0x30,0x38,0x33,0x37,0x34,0x33,0x31,0x1d,0x17,0x0d,0x0a})))); verify(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ChannelBufferTools.convertArray( new int[]{0x24,0x24,0x00,0x00,0x12,0x34,0x56,0xFF,0xFF,0xFF,0xFF,0x99,0x55,0x30,0x33,0x35,0x36,0x34,0x34,0x2E,0x30,0x30,0x30,0x2C,0x41,0x2C,0x32,0x32,0x33,0x32,0x2E,0x36,0x30,0x38,0x33,0x2C,0x4E,0x2C,0x31,0x31,0x34,0x30,0x34,0x2E,0x38,0x31,0x33,0x37,0x2C,0x45,0x2C,0x30,0x2E,0x30,0x30,0x2C,0x2C,0x30,0x31,0x30,0x38,0x30,0x39,0x2C,0x2C,0x2A,0x31,0x43,0x7C,0x31,0x31,0x2E,0x35,0x7C,0x31,0x39,0x34,0x7C,0x30,0x30,0x30,0x30,0x7C,0x30,0x30,0x30,0x30,0x2C,0x30,0x30,0x30,0x30,0x69,0x62,0x0D,0x0A})))); -- cgit v1.2.3