Nikolay Izhikov created IGNITE-12723: ----------------------------------------
Summary: Test refactoring. Explicit method to get MXBean instance Key: IGNITE-12723 URL: https://issues.apache.org/jira/browse/IGNITE-12723 Project: Ignite Issue Type: Improvement Reporter: Nikolay Izhikov Assignee: Nikolay Izhikov Test code contains several dozen of copy-paste code to get different MXBeans. We can reduce code base by introducing common method for it. Example of copy pasted code: {code:java} /** */ private FailureHandlingMxBean getMBean() throws Exception { ObjectName name = U.makeMBeanName(getTestIgniteInstanceName(0), "Kernal", FailureHandlingMxBeanImpl.class.getSimpleName()); MBeanServer srv = ManagementFactory.getPlatformMBeanServer(); assertTrue(srv.isRegistered(name)); return MBeanServerInvocationHandler.newProxyInstance(srv, name, FailureHandlingMxBean.class, true); } {code} -- This message was sent by Atlassian Jira (v8.3.4#803005)