X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fconfig%2Fconfig-manager%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fconfig%2Fmanager%2Fimpl%2Fruntimembean%2FRuntimeBeanRegistratorImplTest.java;h=5b19f615bc5b6659c3e87099ff67b2d9bacf4688;hp=16de00508ab4e7ecf4d7fc6df22b6b476b37ae1d;hb=cbcc2b61265e903959f11d44c292771e76b3926e;hpb=92e6d5eb21b96fa1f48da79c60967954593ac5bf diff --git a/opendaylight/config/config-manager/src/test/java/org/opendaylight/controller/config/manager/impl/runtimembean/RuntimeBeanRegistratorImplTest.java b/opendaylight/config/config-manager/src/test/java/org/opendaylight/controller/config/manager/impl/runtimembean/RuntimeBeanRegistratorImplTest.java index 16de00508a..5b19f615bc 100644 --- a/opendaylight/config/config-manager/src/test/java/org/opendaylight/controller/config/manager/impl/runtimembean/RuntimeBeanRegistratorImplTest.java +++ b/opendaylight/config/config-manager/src/test/java/org/opendaylight/controller/config/manager/impl/runtimembean/RuntimeBeanRegistratorImplTest.java @@ -11,15 +11,13 @@ import static org.hamcrest.CoreMatchers.containsString; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertThat; import static org.junit.Assert.fail; + import com.google.common.collect.ImmutableMap; import com.google.common.collect.Maps; - import java.lang.management.ManagementFactory; import java.util.Map; - import javax.management.InstanceNotFoundException; import javax.management.ObjectName; - import org.junit.After; import org.junit.Before; import org.junit.Test; @@ -67,7 +65,7 @@ public class RuntimeBeanRegistratorImplTest extends try { platformMBeanServer.getMBeanInfo(on); fail(); - } catch (InstanceNotFoundException e) { + } catch (final InstanceNotFoundException e) { } } @@ -139,7 +137,7 @@ public class RuntimeBeanRegistratorImplTest extends try { createRoot(); fail(); - } catch (IllegalStateException e) { + } catch (final IllegalStateException e) { assertThat(e.getMessage(), containsString(rootRegistration .getObjectName().toString())); assertThat(e.getMessage(),