use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.HelloInputBuilder in project openflowplugin by opendaylight.
the class OF10HelloInputMessageFactoryTest method testWithoutElementsSet.
/**
* Testing of {@link OF10HelloInputMessageFactory} for correct translation from POJO.
*/
@Test
public void testWithoutElementsSet() throws Exception {
HelloInputBuilder hib = new HelloInputBuilder();
BufferHelper.setupHeader(hib, EncodeConstants.OF10_VERSION_ID);
HelloInput hi = hib.build();
ByteBuf out = UnpooledByteBufAllocator.DEFAULT.buffer();
helloFactory.serialize(hi, out);
BufferHelper.checkHeaderV10(out, (byte) 0, 8);
}
Aggregations