[ https://issues.apache.org/jira/browse/IGNITE-12723?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17048244#comment-17048244 ]
Ignite TC Bot commented on IGNITE-12723: ---------------------------------------- {panel:title=Branch: [pull/7479/head] Base: [master] : No blockers found!|borderStyle=dashed|borderColor=#ccc|titleBGColor=#D6F7C1}{panel} [TeamCity *--> Run :: All* Results|https://ci.ignite.apache.org/viewLog.html?buildId=5089385&buildTypeId=IgniteTests24Java8_RunAll] > 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 > Time Spent: 10m > 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)