import org.opendaylight.yangtools.yang.common.Uint32;
import org.opendaylight.yangtools.yang.common.Uint8;
-public class SalTableServiceImplTest extends ServiceMocking {
-
+public class UpdateTableImplTest extends ServiceMocking {
@Mock
RpcProviderService mockedRpcProviderRegistry;
private SettableFuture<Object> handleResultFuture;
- private SalTableServiceImpl salTableService;
+ private UpdateTableImpl salTableService;
@Override
public void setup() {
}).when(mockedOutboundQueue).commitEntry(any(Uint32.class), any(), any());
final ConvertorManager convertorManager = ConvertorManagerFactory.createDefaultManager();
- salTableService = new SalTableServiceImpl(mockedRequestContextStack, mockedDeviceContext,
+ salTableService = new UpdateTableImpl(mockedRequestContextStack, mockedDeviceContext,
convertorManager, MultipartWriterProviderFactory.createDefaultProvider(mockedDeviceContext));
}
return null;
}).when(multiMessageCollector).endCollecting(any());
- final Future<RpcResult<UpdateTableOutput>> rpcResultFuture = salTableService.updateTable(prepareUpdateTable());
+ final Future<RpcResult<UpdateTableOutput>> rpcResultFuture = salTableService.invoke(prepareUpdateTable());
Assert.assertNotNull(rpcResultFuture);
verify(mockedRequestContextStack).createRequestContext();
}
return null;
}).when(multiMessageCollector).endCollecting(any());
- final Future<RpcResult<UpdateTableOutput>> rpcResultFuture = salTableService.updateTable(prepareUpdateTable());
+ final Future<RpcResult<UpdateTableOutput>> rpcResultFuture = salTableService.invoke(prepareUpdateTable());
Assert.assertNotNull(rpcResultFuture);
verify(mockedRequestContextStack).createRequestContext();
}
return null;
}).when(multiMessageCollector).endCollecting(any());
- final Future<RpcResult<UpdateTableOutput>> rpcResultFuture = salTableService.updateTable(prepareUpdateTable());
+ final Future<RpcResult<UpdateTableOutput>> rpcResultFuture = salTableService.invoke(prepareUpdateTable());
Assert.assertNotNull(rpcResultFuture);
verify(mockedRequestContextStack).createRequestContext();
}