X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=openflowplugin-impl%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fopenflowplugin%2Fimpl%2Fstatistics%2Fservices%2FOpendaylightFlowStatisticsServiceImpl3Test.java;h=9da86fb4a96335343cefcf20f695c9f0c00454b9;hb=83ec4123ed23e20482f1f2753015c957fd4f39b4;hp=897c872a98d524e6dba4048fc22dfbad57e2179d;hpb=1bad84906fffbc4c3a901712f8a803680bcd064f;p=openflowplugin.git diff --git a/openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/statistics/services/OpendaylightFlowStatisticsServiceImpl3Test.java b/openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/statistics/services/OpendaylightFlowStatisticsServiceImpl3Test.java index 897c872a98..9da86fb4a9 100644 --- a/openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/statistics/services/OpendaylightFlowStatisticsServiceImpl3Test.java +++ b/openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/statistics/services/OpendaylightFlowStatisticsServiceImpl3Test.java @@ -11,6 +11,8 @@ package org.opendaylight.openflowplugin.impl.statistics.services; import org.junit.Test; import org.mockito.Mock; import org.mockito.Mockito; +import org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.ConvertorManager; +import org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.ConvertorManagerFactory; import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.statistics.rev130819.GetAggregateFlowStatisticsFromFlowTableForAllFlowsInput; import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.statistics.rev130819.GetAggregateFlowStatisticsFromFlowTableForAllFlowsInputBuilder; import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.statistics.rev130819.GetAllFlowStatisticsFromFlowTableInput; @@ -23,7 +25,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.statistics.rev130819.O import org.opendaylight.yang.gen.v1.urn.opendaylight.table.types.rev131026.TableId; /** - * Test for {@link OpendaylightFlowStatisticsServiceImpl} - only delegated methods + * Test for {@link OpendaylightFlowStatisticsServiceImpl} - only delegated methods. */ public class OpendaylightFlowStatisticsServiceImpl3Test extends AbstractStatsServiceTest { @@ -33,13 +35,16 @@ public class OpendaylightFlowStatisticsServiceImpl3Test extends AbstractStatsSer private OpendaylightFlowStatisticsServiceImpl flowStatisticsService; public void setUp() { - flowStatisticsService = new OpendaylightFlowStatisticsServiceImpl(rqContextStack, deviceContext); + final ConvertorManager convertorManager = ConvertorManagerFactory.createDefaultManager(); + flowStatisticsService = + OpendaylightFlowStatisticsServiceImpl.createWithOook(rqContextStack, deviceContext, convertorManager); flowStatisticsService.setDelegate(flowStatisticsDelegate); } @Test - public void testGetAggregateFlowStatisticsFromFlowTableForAllFlows() throws Exception { - GetAggregateFlowStatisticsFromFlowTableForAllFlowsInput input = new GetAggregateFlowStatisticsFromFlowTableForAllFlowsInputBuilder() + public void testGetAggregateFlowStatisticsFromFlowTableForAllFlows() { + GetAggregateFlowStatisticsFromFlowTableForAllFlowsInput input = + new GetAggregateFlowStatisticsFromFlowTableForAllFlowsInputBuilder() .setNode(createNodeRef("unitProt:123")) .setTableId(new TableId((short) 1)) .build(); @@ -49,7 +54,7 @@ public class OpendaylightFlowStatisticsServiceImpl3Test extends AbstractStatsSer } @Test - public void testGetAllFlowStatisticsFromFlowTable() throws Exception { + public void testGetAllFlowStatisticsFromFlowTable() { GetAllFlowStatisticsFromFlowTableInput input = new GetAllFlowStatisticsFromFlowTableInputBuilder() .setNode(createNodeRef("unitProt:123")) .setTableId(new TableId((short) 1)) @@ -60,7 +65,7 @@ public class OpendaylightFlowStatisticsServiceImpl3Test extends AbstractStatsSer } @Test - public void testGetAllFlowsStatisticsFromAllFlowTables() throws Exception { + public void testGetAllFlowsStatisticsFromAllFlowTables() { GetAllFlowsStatisticsFromAllFlowTablesInput input = new GetAllFlowsStatisticsFromAllFlowTablesInputBuilder() .setNode(createNodeRef("unitProt:123")) .build(); @@ -70,7 +75,7 @@ public class OpendaylightFlowStatisticsServiceImpl3Test extends AbstractStatsSer } @Test - public void testGetFlowStatisticsFromFlowTable() throws Exception { + public void testGetFlowStatisticsFromFlowTable() { GetFlowStatisticsFromFlowTableInput input = new GetFlowStatisticsFromFlowTableInputBuilder() .setNode(createNodeRef("unitProt:123")) .setPriority(5)