PowerMock does not have a GA release that is compatible with JDK 12, nor is one currently planned.
Let's convert tests that are currently using PowerMock so that we can move forward with JDK 12.
Comment From: jzheaux
Note that PowerMock released a 2.0.0 version that addresses the JDK 12 issue. because of this, we don't need this as immediately, but will keep it open as there is still value in reducing dependencies. For example, if Mockito adds support for static methods, it would be nice to use only one mocking library going forward.
Comment From: rwinch
We can remove the need for powermock for mocking classpath by using https://github.com/spring-projects/spring-boot/tree/b43827d6264a3eb4e9558c6e1dd7f89e537caa96/spring-boot-project/spring-boot-tools/spring-boot-test-support/src/main/java/org/springframework/boot/testsupport/classpath
Comment From: eleftherias
Mockito has added support for static methods as of 3.4.0 https://github.com/mockito/mockito/releases/tag/v3.4.0