X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fconfig%2Fconfig-util%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fconfig%2Futil%2FTestingConfigRegistry.java;fp=opendaylight%2Fconfig%2Fconfig-util%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fconfig%2Futil%2FTestingConfigRegistry.java;h=cf1fe92638b71b6f04a69462d342615c7e896545;hb=e2f5a1f1f1b917620ba4ade6c024f5ee3d202036;hp=8732aa72d127a8d95831e7b34a34e5e5bb01ff3b;hpb=6d930ea9d74c8bb32fe0e8b47c759c61148727b6;p=controller.git diff --git a/opendaylight/config/config-util/src/test/java/org/opendaylight/controller/config/util/TestingConfigRegistry.java b/opendaylight/config/config-util/src/test/java/org/opendaylight/controller/config/util/TestingConfigRegistry.java index 8732aa72d1..cf1fe92638 100644 --- a/opendaylight/config/config-util/src/test/java/org/opendaylight/controller/config/util/TestingConfigRegistry.java +++ b/opendaylight/config/config-util/src/test/java/org/opendaylight/controller/config/util/TestingConfigRegistry.java @@ -76,7 +76,7 @@ public class TestingConfigRegistry implements ConfigRegistryMXBean { } @Override - public CommitStatus commitConfig(ObjectName transactonControllerON) + public CommitStatus commitConfig(final ObjectName transactonControllerON) throws ConflictingVersionException, ValidationException { if (transactonControllerON == null) { Exception e = new RuntimeException("message"); @@ -107,7 +107,7 @@ public class TestingConfigRegistry implements ConfigRegistryMXBean { } @Override - public Set lookupConfigBeans(String moduleName) { + public Set lookupConfigBeans(final String moduleName) { if (moduleName.equals(moduleName1)) { return Sets.newHashSet(conf1, conf2); } else if (moduleName.equals(moduleName2)) { @@ -118,8 +118,8 @@ public class TestingConfigRegistry implements ConfigRegistryMXBean { } @Override - public Set lookupConfigBeans(String moduleName, - String instanceName) { + public Set lookupConfigBeans(final String moduleName, + final String instanceName) { if (moduleName.equals(moduleName1) && instanceName.equals(instName1)) { return Sets.newHashSet(conf2); } else if (moduleName.equals(moduleName2) @@ -131,7 +131,7 @@ public class TestingConfigRegistry implements ConfigRegistryMXBean { } @Override - public ObjectName lookupConfigBean(String moduleName, String instanceName) + public ObjectName lookupConfigBean(final String moduleName, final String instanceName) throws InstanceNotFoundException { if (moduleName.equals(InstanceNotFoundException.class.getSimpleName())) { throw new InstanceNotFoundException(); @@ -145,8 +145,8 @@ public class TestingConfigRegistry implements ConfigRegistryMXBean { } @Override - public Set lookupRuntimeBeans(String moduleName, - String instanceName) { + public Set lookupRuntimeBeans(final String moduleName, + final String instanceName) { if (moduleName.equals(moduleName1) && instanceName.equals(instName1)) { return Sets. newHashSet(run2); } else if (moduleName.equals(moduleName2) @@ -158,7 +158,7 @@ public class TestingConfigRegistry implements ConfigRegistryMXBean { } @Override - public void checkConfigBeanExists(ObjectName objectName) throws InstanceNotFoundException { + public void checkConfigBeanExists(final ObjectName objectName) throws InstanceNotFoundException { Set configBeans = Sets. newHashSet(run1, run2, run3); if(configBeans.size()>0){ checkBool = true; @@ -166,7 +166,7 @@ public class TestingConfigRegistry implements ConfigRegistryMXBean { } @Override - public ObjectName lookupConfigBeanByServiceInterfaceName(String serviceInterfaceQName, String refName) { + public ObjectName lookupConfigBeanByServiceInterfaceName(final String serviceInterfaceQName, final String refName) { if (serviceInterfaceQName.equals(serviceQName1) && refName.equals(refName1)) { return conf1; } @@ -181,7 +181,7 @@ public class TestingConfigRegistry implements ConfigRegistryMXBean { } @Override - public Map lookupServiceReferencesByServiceInterfaceName(String serviceInterfaceQName) { + public Map lookupServiceReferencesByServiceInterfaceName(final String serviceInterfaceQName) { if(serviceInterfaceQName.equals(serviceQName1)){ map.put("conf1", conf1); @@ -196,12 +196,12 @@ public class TestingConfigRegistry implements ConfigRegistryMXBean { } @Override - public Set lookupServiceInterfaceNames(ObjectName objectName) throws InstanceNotFoundException { + public Set lookupServiceInterfaceNames(final ObjectName objectName) throws InstanceNotFoundException { return Sets. newHashSet(serviceQName1, serviceQName2); } @Override - public String getServiceInterfaceName(String namespace, String localName) { + public String getServiceInterfaceName(final String namespace, final String localName) { return null; } @@ -211,12 +211,12 @@ public class TestingConfigRegistry implements ConfigRegistryMXBean { } @Override - public ObjectName getServiceReference(String serviceInterfaceQName, String refName) throws InstanceNotFoundException { + public ObjectName getServiceReference(final String serviceInterfaceQName, final String refName) throws InstanceNotFoundException { return conf1; } @Override - public void checkServiceReferenceExists(ObjectName objectName) throws InstanceNotFoundException { + public void checkServiceReferenceExists(final ObjectName objectName) throws InstanceNotFoundException { throw new UnsupportedOperationException(); } }