Search in sources :

Example 1 with UdpMessageListenerWrapper

use of org.opendaylight.openflowjava.protocol.impl.core.connection.UdpMessageListenerWrapper in project openflowplugin by opendaylight.

the class OFDatagramPacketEncoderTest method startUp.

/**
 * Initializes mocks and other objects.
 *
 * @param version openflow protocol wire version
 */
public void startUp(Short version) {
    MockitoAnnotations.initMocks(this);
    out = new ArrayList<>();
    HelloInputBuilder builder = new HelloInputBuilder();
    builder.setVersion(version);
    HelloInput hello = builder.build();
    wrapper = new UdpMessageListenerWrapper(hello, listener, address);
}
Also used : HelloInput(org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.HelloInput) UdpMessageListenerWrapper(org.opendaylight.openflowjava.protocol.impl.core.connection.UdpMessageListenerWrapper) HelloInputBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.HelloInputBuilder)

Aggregations

UdpMessageListenerWrapper (org.opendaylight.openflowjava.protocol.impl.core.connection.UdpMessageListenerWrapper)1 HelloInput (org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.HelloInput)1 HelloInputBuilder (org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.HelloInputBuilder)1