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