X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=openflowplugin-impl%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fopenflowplugin%2Fimpl%2Frpc%2FRpcManagerImplTest.java;h=3f68647244ecd0df20588d7b748e9e761adc338b;hb=bb5487ecc9d866af16d2f80e3fae7e35b9a8bf2e;hp=9a5b82cf1890762e5a0681c15fd54514c8a42959;hpb=f1cc4de7dee9e22c231a90cf517b03bc5071ad35;p=openflowplugin.git diff --git a/openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/rpc/RpcManagerImplTest.java b/openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/rpc/RpcManagerImplTest.java index 9a5b82cf18..3f68647244 100644 --- a/openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/rpc/RpcManagerImplTest.java +++ b/openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/rpc/RpcManagerImplTest.java @@ -39,6 +39,8 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.N import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.FeaturesReply; import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.GetFeaturesOutput; import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.GetFeaturesOutputBuilder; +import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.openflow.provider.config.rev160510.NonZeroUint16Type; +import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.openflow.provider.config.rev160510.OpenflowProviderConfigBuilder; import org.opendaylight.yangtools.yang.binding.KeyedInstanceIdentifier; import org.opendaylight.yangtools.yang.binding.RpcService; @@ -86,8 +88,9 @@ public class RpcManagerImplTest { @Before public void setUp() { final NodeKey nodeKey = new NodeKey(nodeId); - rpcManager = new RpcManagerImpl(rpcProviderRegistry, extensionConverterProvider, convertorExecutor, notificationPublishService); - rpcManager.setRpcRequestQuota(QUOTA_VALUE); + rpcManager = new RpcManagerImpl(new OpenflowProviderConfigBuilder() + .setRpcRequestsQuota(new NonZeroUint16Type(QUOTA_VALUE)) + .build(), rpcProviderRegistry, extensionConverterProvider, convertorExecutor, notificationPublishService); GetFeaturesOutput featuresOutput = new GetFeaturesOutputBuilder() .setVersion(OFConstants.OFP_VERSION_1_3)