import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertThat;
+import com.google.common.collect.Sets;
import java.lang.management.ManagementFactory;
import java.lang.reflect.Field;
import java.util.Collections;
import java.util.Map;
import java.util.Set;
-
import javax.management.InstanceAlreadyExistsException;
import javax.management.ObjectName;
-
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.opendaylight.controller.config.manager.impl.jmx.RootRuntimeBeanRegistratorImpl;
import org.opendaylight.controller.config.manager.impl.runtimembean.TestingRuntimeBean;
-import com.google.common.collect.Sets;
-
public class ConfigRegistryImplLookupTest extends
AbstractLockedPlatformMBeanServerTest {
}
- private void registerModuleBean(TestingRuntimeBean testingRuntimeBean,
- BaseJMXRegistrator baseJMXRegistrator, ObjectName objectName)
+ private static void registerModuleBean(final TestingRuntimeBean testingRuntimeBean,
+ final BaseJMXRegistrator baseJMXRegistrator, final ObjectName objectName)
throws InstanceAlreadyExistsException {
baseJMXRegistrator.createModuleJMXRegistrator().registerMBean(
testingRuntimeBean, objectName);
}
- private void registerRuntimeBean(RuntimeBean object,
- BaseJMXRegistrator baseJMXRegistrator, ObjectName runtimeON)
- throws InstanceAlreadyExistsException {
+ private static void registerRuntimeBean(final RuntimeBean object, final BaseJMXRegistrator baseJMXRegistrator,
+ final ObjectName runtimeON) throws InstanceAlreadyExistsException {
String factoryName = ObjectNameUtil.getFactoryName(runtimeON);
String instanceName = ObjectNameUtil.getInstanceName(runtimeON);
Map<String, String> properties = ObjectNameUtil