GitHub user ijuma opened a pull request: https://github.com/apache/kafka/pull/3845
KAFKA-4501: Fix EasyMock and disable PowerMock tests under Java 9 - EasyMock 3.5 supports Java 9. - Removed unnecessary PowerMock dependency from 3 tests. - Disable remaining PowerMock tests when running with Java 9 until https://github.com/powermock/powermock/issues/783 is done. - Once we merge this PR, we can run tests on PRs with Java 9. You can merge this pull request into a Git repository by running: $ git pull https://github.com/ijuma/kafka kafka-4501-easymock-powermock-java-9 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/kafka/pull/3845.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #3845 ---- commit ab60da36358a792e1079aed25859828602c1a619 Author: Ismael Juma <ism...@juma.me.uk> Date: 2017-08-21T13:51:00Z Use EasyMock instead of PowerMock in 3 connect tests commit 6e0f8c7d9c147d0340c711b6edd8cbadac344a31 Author: Ismael Juma <ism...@juma.me.uk> Date: 2017-08-21T13:51:37Z Exclude PowerMock tests if running with Java 9 commit f076943217f522d6a5a516a559939dc1e7711b40 Author: Ismael Juma <ism...@juma.me.uk> Date: 2017-09-13T12:02:35Z Upgrade easymock to 3.5 ---- ---