Search in sources :

Example 6 with EchoReplyInput

use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.EchoReplyInput in project openflowplugin by opendaylight.

the class OpenflowProtocolListenerInitialImplTest method testOnEchoRequestMessage.

@Test
public void testOnEchoRequestMessage() throws Exception {
    EchoRequestMessageBuilder echoRequestMessageBld = new EchoRequestMessageBuilder().setXid(42L).setVersion(OFConstants.OFP_VERSION_1_3);
    openflowProtocolListenerInitial.onEchoRequestMessage(echoRequestMessageBld.build());
    Mockito.verify(connectionAdapter).echoReply(Matchers.<EchoReplyInput>any());
}
Also used : EchoRequestMessageBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.EchoRequestMessageBuilder) Test(org.junit.Test)

Aggregations

EchoReplyInput (org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.EchoReplyInput)5 EchoReplyInputBuilder (org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.EchoReplyInputBuilder)5 Test (org.junit.Test)4 ByteBuf (io.netty.buffer.ByteBuf)3 EchoRequestMessageBuilder (org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.EchoRequestMessageBuilder)1