Update mockito-core dependency to fix test errors#60
Merged
slachiewicz merged 2 commits intomojohaus:masterfrom Jul 16, 2023
Merged
Update mockito-core dependency to fix test errors#60slachiewicz merged 2 commits intomojohaus:masterfrom
slachiewicz merged 2 commits intomojohaus:masterfrom
Conversation
With mockito 3.12.4, you may get weird errors when running junit code (File.exists throwing NullPointerException, etc.) Update dependency version to the latest available, 5.4.0.
Member
|
Project targets Java 8 and Mocito 5 requires Java 11 |
Contributor
Author
|
@slachiewicz Thanks for your prompt reply! mockito-core 4.11.0 (which is supposed to be compatible with Java 8) unfortunately does not fix the issue. Thankfully, since mockito-core is just a test-scope dependency, the final plugin should still work with Java 8, it's only that building requires Java 11. As you already bumped the major version number to 3, I hope this is an acceptable solution. Thoughts? |
This is no longer possible due to the updated mockito-core dependency. However, running the plugin with Java 8 is still possible.
slachiewicz
approved these changes
Jul 16, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
With mockito 3.12.4, you may get weird errors when running junit code (File.exists throwing NullPointerException, etc.)
Update dependency version to the latest available, 5.4.0.