use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.BarrierOutputBuilder in project openflowplugin by opendaylight.
the class BarrierReplyMessageFactoryTest method testSerialize.
@Test
public void testSerialize() throws Exception {
BarrierOutputBuilder builder = new BarrierOutputBuilder();
BufferHelper.setupHeader(builder, EncodeConstants.OF13_VERSION_ID);
BarrierOutput message = builder.build();
ByteBuf serializedBuffer = UnpooledByteBufAllocator.DEFAULT.buffer();
factory.serialize(message, serializedBuffer);
BufferHelper.checkHeaderV13(serializedBuffer, MESSAGE_TYPE, 8);
}
Aggregations