Search in sources :

Example 1 with RequestContext

use of org.opendaylight.openflowplugin.api.openflow.device.RequestContext in project openflowplugin by opendaylight.

the class RpcContextImplTest method testCreateRequestContext2.

/**
 * When deviceContext.reserveXidForDeviceMessage returns value, AbstractRequestContext should be returned.
 */
@Test
public void testCreateRequestContext2() throws InterruptedException {
    RequestContext temp = rpcContext.createRequestContext();
    temp.close();
    verify(messageSpy).spyMessage(RpcContextImpl.class, MessageSpy.StatisticsGroup.REQUEST_STACK_FREED);
}
Also used : RequestContext(org.opendaylight.openflowplugin.api.openflow.device.RequestContext) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 RequestContext (org.opendaylight.openflowplugin.api.openflow.device.RequestContext)1