After switching to Java 11, all the powermock related tests (annotated with @RunWith(PowermockRunner.class)
and @PowerMockIgnore
) are failing.
Is this known issue? I read a relevant SO post which was posted a year ago, and the latest release of Powermock was 2 months ago. I don't see any difference in behaviour with JDK 11.
The existing "mvn hpi:run" command will not work correctly on Java 11 unless Java modules are downloaded and passed to the environment.
List item If you use Mockito/PowerMock in your plugin tests, you may need to update to the recent versions with Java 11 support-
You may also need to add test annotations to workaround PowerMock Issue #864. Example for the Jenkins Core
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With