Search in sources :

Example 1 with GetAllMeterStatisticsOutput

use of org.opendaylight.yang.gen.v1.urn.opendaylight.meter.statistics.rev131111.GetAllMeterStatisticsOutput 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());
}
Also used : GetAllMeterStatisticsInputBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.meter.statistics.rev131111.GetAllMeterStatisticsInputBuilder) GetAllMeterStatisticsOutput(org.opendaylight.yang.gen.v1.urn.opendaylight.meter.statistics.rev131111.GetAllMeterStatisticsOutput) RpcResult(org.opendaylight.yangtools.yang.common.RpcResult) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 GetAllMeterStatisticsInputBuilder (org.opendaylight.yang.gen.v1.urn.opendaylight.meter.statistics.rev131111.GetAllMeterStatisticsInputBuilder)1 GetAllMeterStatisticsOutput (org.opendaylight.yang.gen.v1.urn.opendaylight.meter.statistics.rev131111.GetAllMeterStatisticsOutput)1 RpcResult (org.opendaylight.yangtools.yang.common.RpcResult)1