Fixed netty & checkstyle failures
[openflowjava.git] / openflow-protocol-impl / src / test / java / org / opendaylight / openflowjava / protocol / impl / serialization / factories / PacketOutInputMessageFactoryTest.java
index 50c0839f121bc9cd1aec759a91560a628d7ac762..60ee5210f1e68fdaddffd0fceb27bc08091b0bb8 100644 (file)
@@ -96,7 +96,9 @@ public class PacketOutInputMessageFactoryTest {
         Assert.assertEquals("Wrong action type", 18, out.readUnsignedShort());
         Assert.assertEquals("Wrong action length", 8, out.readUnsignedShort());
         out.skipBytes(PADDING_IN_ACTION_HEADER);
-        Assert.assertArrayEquals("Wrong data", message.getData(), out.readBytes(out.readableBytes()).array());
+        byte[] readData = new byte[out.readableBytes()];
+        out.readBytes(readData);
+        Assert.assertArrayEquals("Wrong data", message.getData(), readData);
     }
 
     /**