Error code support for ErrorMessage
[openflowjava.git] / openflow-protocol-impl / src / test / java / org / opendaylight / openflowjava / protocol / impl / serialization / factories / GetaAsyncRequestMessageFactoryTest.java
index fa63cdabd3f437c7f85ea4e4507ed26f4af70f5a..ddc5ebd42695b375ccd2f139c9f1ee39165425eb 100644 (file)
@@ -7,6 +7,7 @@ import io.netty.buffer.UnpooledByteBufAllocator;
 import org.junit.Test;\r
 import org.opendaylight.openflowjava.protocol.impl.deserialization.factories.HelloMessageFactoryTest;\r
 import org.opendaylight.openflowjava.protocol.impl.util.BufferHelper;\r
+import org.opendaylight.openflowjava.protocol.impl.util.EncodeConstants;\r
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.GetAsyncInput;\r
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.GetAsyncInputBuilder;\r
 \r
@@ -25,7 +26,7 @@ public class GetaAsyncRequestMessageFactoryTest {
     @Test\r
     public void testGetAsyncReques() throws Exception {\r
         GetAsyncInputBuilder builder = new GetAsyncInputBuilder();\r
-        BufferHelper.setupHeader(builder);\r
+        BufferHelper.setupHeader(builder, EncodeConstants.OF13_VERSION_ID);\r
         GetAsyncInput message = builder.build();\r
         \r
         ByteBuf out = UnpooledByteBufAllocator.DEFAULT.buffer();\r