Search in sources :

Example 1 with DeviceFlowRegistry

use of org.opendaylight.openflowplugin.api.openflow.registry.flow.DeviceFlowRegistry in project openflowplugin by opendaylight.

the class DeviceContextImplTest method testGetDeviceFlowRegistry.

@Test
public void testGetDeviceFlowRegistry() {
    final DeviceFlowRegistry deviceFlowRegistry = deviceContext.getDeviceFlowRegistry();
    assertNotNull(deviceFlowRegistry);
}
Also used : DeviceFlowRegistry(org.opendaylight.openflowplugin.api.openflow.registry.flow.DeviceFlowRegistry) Test(org.junit.Test)

Example 2 with DeviceFlowRegistry

use of org.opendaylight.openflowplugin.api.openflow.registry.flow.DeviceFlowRegistry in project openflowplugin by opendaylight.

the class FlowDirectStatisticsServiceTest method setUp.

@Override
public void setUp() throws Exception {
    service = new FlowDirectStatisticsService(requestContextStack, deviceContext, convertorManager, multipartWriterProvider);
    final DeviceFlowRegistry registry = mock(DeviceFlowRegistry.class);
    when(registry.retrieveDescriptor(any())).thenReturn(FlowDescriptorFactory.create(TABLE_NO, new FlowId("1")));
    when(deviceContext.getDeviceFlowRegistry()).thenReturn(registry);
}
Also used : FlowId(org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.FlowId) DeviceFlowRegistry(org.opendaylight.openflowplugin.api.openflow.registry.flow.DeviceFlowRegistry)

Example 3 with DeviceFlowRegistry

use of org.opendaylight.openflowplugin.api.openflow.registry.flow.DeviceFlowRegistry in project openflowplugin by opendaylight.

the class FlowDirectStatisticsServiceTest method setUp.

@Override
public void setUp() throws Exception {
    service = new FlowDirectStatisticsService(requestContextStack, deviceContext, convertorManager, multipartWriterProvider);
    final DeviceFlowRegistry registry = mock(DeviceFlowRegistry.class);
    when(registry.retrieveDescriptor(any())).thenReturn(FlowDescriptorFactory.create(TABLE_NO, new FlowId("1")));
    when(deviceContext.getDeviceFlowRegistry()).thenReturn(registry);
}
Also used : FlowId(org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.FlowId) DeviceFlowRegistry(org.opendaylight.openflowplugin.api.openflow.registry.flow.DeviceFlowRegistry)

Aggregations

DeviceFlowRegistry (org.opendaylight.openflowplugin.api.openflow.registry.flow.DeviceFlowRegistry)3 FlowId (org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.FlowId)2 Test (org.junit.Test)1