use of org.opendaylight.yang.gen.v1.urn.opendaylight.queue.statistics.rev131216.GetAllQueuesStatisticsFromAllPortsOutput in project openflowplugin by opendaylight.
the class OpendaylightQueueStatisticsServiceImplTest method testGetAllQueuesStatisticsFromAllPorts.
@Test
public void testGetAllQueuesStatisticsFromAllPorts() throws Exception {
Mockito.doAnswer(answerVoidToCallback).when(outboundQueueProvider).commitEntry(Matchers.eq(42L), requestInput.capture(), Matchers.any(FutureCallback.class));
GetAllQueuesStatisticsFromAllPortsInputBuilder input = new GetAllQueuesStatisticsFromAllPortsInputBuilder().setNode(createNodeRef("unitProt:123"));
rpcResult = buildQueueStatsReply();
final Future<RpcResult<GetAllQueuesStatisticsFromAllPortsOutput>> resultFuture = queueStatisticsService.getAllQueuesStatisticsFromAllPorts(input.build());
Assert.assertTrue(resultFuture.isDone());
final RpcResult<GetAllQueuesStatisticsFromAllPortsOutput> rpcResult = resultFuture.get();
Assert.assertTrue(rpcResult.isSuccessful());
Assert.assertEquals(MultipartType.OFPMPQUEUE, requestInput.getValue().getType());
}
Aggregations