use of org.opendaylight.yang.gen.v1.urn.opendaylight.meter.statistics.rev131111.GetAllMeterStatisticsInputBuilder in project openflowplugin by opendaylight.
the class OpendaylightMeterStatisticsServiceImplTest method testGetAllMeterStatistics.
@Test
public void testGetAllMeterStatistics() throws Exception {
GetAllMeterStatisticsInputBuilder input = new GetAllMeterStatisticsInputBuilder().setNode(createNodeRef("unitProt:123"));
rpcResult = buildMeterStatisticsReply();
final Future<RpcResult<GetAllMeterStatisticsOutput>> resultFuture = meterStatisticsService.getAllMeterStatistics(input.build());
Assert.assertTrue(resultFuture.isDone());
final RpcResult<GetAllMeterStatisticsOutput> rpcResult = resultFuture.get();
Assert.assertTrue(rpcResult.isSuccessful());
Assert.assertEquals(MultipartType.OFPMPMETER, requestInput.getValue().getType());
}
Aggregations