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);
}
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);
}
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);
}
Aggregations