[ https://issues.apache.org/jira/browse/IGNITE-12723?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Aleksey Plekhanov updated IGNITE-12723: --------------------------------------- Fix Version/s: 2.9 > 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 > Priority: Minor > Fix For: 2.9 > > Time Spent: 40m > Remaining Estimate: 0h > > 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)