X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fconfig%2Fshutdown-impl%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fconfig%2Fyang%2Fshutdown%2Fimpl%2FShutdownTest.java;h=5dd856a605b82d0f6a80502f4e89158e7e14fcd8;hp=358586f63457e87c9d10ba52a295adec650377ff;hb=1417bcd892b1dc9a4d68c9562d91eee8320de38f;hpb=71f19bb6cdb8fcbeec5bcb1e5258fa5c98a41085 diff --git a/opendaylight/config/shutdown-impl/src/test/java/org/opendaylight/controller/config/yang/shutdown/impl/ShutdownTest.java b/opendaylight/config/shutdown-impl/src/test/java/org/opendaylight/controller/config/yang/shutdown/impl/ShutdownTest.java index 358586f634..5dd856a605 100644 --- a/opendaylight/config/shutdown-impl/src/test/java/org/opendaylight/controller/config/yang/shutdown/impl/ShutdownTest.java +++ b/opendaylight/config/shutdown-impl/src/test/java/org/opendaylight/controller/config/yang/shutdown/impl/ShutdownTest.java @@ -62,7 +62,7 @@ public class ShutdownTest extends AbstractConfigTest { try { transaction.createModule(NAME, "foo"); fail(); - } catch (IllegalArgumentException e) { + } catch (final IllegalArgumentException e) { assertEquals("Singleton enforcement failed. Expected instance name shutdown", e.getMessage()); } } @@ -77,7 +77,7 @@ public class ShutdownTest extends AbstractConfigTest { try { runtime.shutdown("foo", 60000L, null); fail(); - } catch (IllegalArgumentException e) { + } catch (final IllegalArgumentException e) { assertEquals("Invalid secret", e.getMessage()); } runtime.shutdown("", 60000L, null); @@ -92,7 +92,7 @@ public class ShutdownTest extends AbstractConfigTest { shutdownViaRuntimeJMX(secret); } - private void setSecret(String secret) throws InstanceNotFoundException, ValidationException, ConflictingVersionException { + private void setSecret(final String secret) throws InstanceNotFoundException, ValidationException, ConflictingVersionException { ConfigTransactionJMXClient transaction = configRegistryClient.createTransaction(); ObjectName on = transaction.lookupConfigBean(NAME, NAME); ShutdownModuleMXBean proxy = transaction.newMXBeanProxy(on, ShutdownModuleMXBean.class); @@ -107,18 +107,18 @@ public class ShutdownTest extends AbstractConfigTest { ShutdownRuntimeMXBean runtime = JMX.newMXBeanProxy(platformMBeanServer, runtimeON, ShutdownRuntimeMXBean.class); runtime.shutdown("foo", 60000L, null); fail(); - } catch (IllegalArgumentException e) { + } catch (final IllegalArgumentException e) { assertEquals("Invalid secret", e.getMessage()); } } - private void shutdownViaRuntimeJMX(String secret) throws Exception { + private void shutdownViaRuntimeJMX(final String secret) throws Exception { // test JMX rpc ShutdownRuntimeMXBean runtime = JMX.newMXBeanProxy(platformMBeanServer, runtimeON, ShutdownRuntimeMXBean.class); try { runtime.shutdown("", 60000L, null); fail(); - } catch (IllegalArgumentException e) { + } catch (final IllegalArgumentException e) { assertEquals("Invalid secret", e.getMessage()); } runtime.shutdown(secret, 60000L, null);