[
https://issues.apache.org/jira/browse/GEODE-6052?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ryan McMahon closed GEODE-6052.
-------------------------------
> Refactor JMX tests to avoid use of PowerMock
> --------------------------------------------
>
> Key: GEODE-6052
> URL: https://issues.apache.org/jira/browse/GEODE-6052
> Project: Geode
> Issue Type: Task
> Components: tests
> Reporter: Ryan McMahon
> Assignee: Ryan McMahon
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.9.0
>
> Time Spent: 2h 10m
> Remaining Estimate: 0h
>
> PowerMock is troublesome because it introduces global state which pollutes
> other tests, but it has been used to mock static methods in the
> MBeanJMXAdapterTest and MBeanProxyFactoryTest. We should determine what test
> and API changes would be required to eliminate PowerMock from these tests,
> which is currently used to mock these static methods:
> 1. InternalDistributedSystem.getConnectedInstance()
> 2. LogService.getLogger()
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)