BufferHelper.checkHeaderV10(builtByFactory);
}
-
+
/**
* Testing {@link OF10EchoReplyMessageFactory} for correct translation into POJO
*/
byte[] data = new byte[]{0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07};
ByteBuf bb = BufferHelper.buildBuffer(data);
EchoOutput builtByFactory = BufferHelper.deserialize(echoFactory, bb);
-
+
BufferHelper.checkHeaderV10(builtByFactory);
Assert.assertArrayEquals("Wrong data", data, builtByFactory.getData());
}