mockito-java8
mockito-java8 copied to clipboard
Mockito add-ons leveraging Java 8 and lambda expressions to make mocking even more compact
_Dependabot Preview will be shut down on August 3rd, 2021. In order to keep getting Dependabot updates, please merge this PR and migrate to GitHub-native Dependabot before then._ Dependabot has...
Bumps [assertj-core](https://github.com/assertj/assertj-core) from 3.15.0 to 3.20.2. Commits 089086c [maven-release-plugin] prepare release assertj-core-3.20.2 0fff0ce Restore explicit version for pitest-github-maven-plugin 9df530d Revert "[Breaking change] Align return types across assertions / assumptions ......
Bumps [junit-jupiter-engine](https://github.com/junit-team/junit5) from 5.4.2 to 5.7.2. Release notes Sourced from junit-jupiter-engine's releases. JUnit 5.7.2 = Platform 1.7.2 + Jupiter 5.7.2 + Vintage 5.7.2 See Release Notes. JUnit 5.7.1 = Platform...
Bumps [junit-jupiter-api](https://github.com/junit-team/junit5) from 5.4.2 to 5.7.2. Release notes Sourced from junit-jupiter-api's releases. JUnit 5.7.2 = Platform 1.7.2 + Jupiter 5.7.2 + Vintage 5.7.2 See Release Notes. JUnit 5.7.1 = Platform...
Bumps [typetools](https://github.com/jhalterman/typetools) from 0.6.1 to 0.6.3. Changelog Sourced from typetools's changelog. 0.6.3 Added support for lambda type argument resolution in Java 12 and above. 0.6.0 Added support for reifying generics...
Some tests fail with NPE when executed with Open JDK 12. It seems to be related to limitations/issues with typetools - https://github.com/jhalterman/typetools/issues/52
Added in [2.20.0](https://static.javadoc.io/org.mockito/mockito-core/2.20.0/org/mockito/Mockito.html#mockito_lenient).
To get warning from IDE for matchers which don't accept null values.
We have found an interesting issue, that seems to be caused by assertArg. For the following test ``` java verify(mockedService).functionThatExpectsAnInputStream(assertArg((InputStream is) -> { try { // Oh my god this...