import org.mockito.junit.MockitoJUnitRunner;
import org.opendaylight.mdsal.binding.api.NotificationPublishService;
import org.opendaylight.mdsal.binding.api.RpcProviderService;
+import org.opendaylight.openflowplugin.api.openflow.FlowGroupCacheManager;
import org.opendaylight.openflowplugin.api.openflow.device.DeviceContext;
import org.opendaylight.openflowplugin.api.openflow.device.DeviceInfo;
import org.opendaylight.openflowplugin.api.openflow.device.DeviceState;
private static final int MAX_REQUESTS = 5;
private RpcContextImpl rpcContext;
-
+ @Mock
+ private FlowGroupCacheManager flowGroupCacheManager;
@Mock
private RpcProviderService rpcProviderRegistry;
@Mock
deviceContext,
extensionConverterProvider,
convertorExecutor,
- notificationPublishService, true);
+ notificationPublishService, true, flowGroupCacheManager);
when(rpcProviderRegistry.registerRpcImplementation(eq(TestRpcService.class), eq(serviceInstance), anySet()))
.thenReturn(routedRpcReg);
deviceContext,
extensionConverterProvider,
convertorExecutor,
- notificationPublishService, true)) {
+ notificationPublishService, true, flowGroupCacheManager)) {
final RequestContext<?> requestContext = rpcContext.createRequestContext();
assertNotNull(requestContext);
}
deviceContext,
extensionConverterProvider,
convertorExecutor,
- notificationPublishService, true)) {
+ notificationPublishService, true, flowGroupCacheManager)) {
final RequestContext<?> requestContext = rpcContext.createRequestContext();
assertNull(requestContext);
}
deviceContext,
extensionConverterProvider,
convertorExecutor,
- notificationPublishService, true)) {
+ notificationPublishService, true, flowGroupCacheManager)) {
final RequestContext<?> requestContext = rpcContext.createRequestContext();
assertNotNull(requestContext);
requestContext.close();