chore(deps): update dependency org.mockito:mockito-core to v4
This MR contains the following updates:
Package | Update | Change |
---|---|---|
org.mockito:mockito-core | major |
3.12.1 -> 4.0.0
|
Release Notes
mockito/mockito
v4.0.0
Mockito 4: Removing deprecated APIs.
All of these APIs have been marked as deprecated and have been present in Mockito for quite a while.
An overview of now-deleted classes/methods:
-
org.mockito.Matchers
which was an alias fororg.mockito.ArgumentMatchers
-
org.mockito.ArgumentMatchers#{anyObject,anyVararg}
both which were aliases fororg.mockito.ArgumentMatchers#any
-
org.mockito.ArgumentMatchers#any*Of
, which were aliases for the same method name without the Of and the generic parameters (which were ignored) -
org.mockito.ArgumentMatchers#{is}{Not}Null(Class)
which took a class which was ignored. Aliases for the same methods without the parameter -
org.mockito.MockedStatic#verify
which had the parameter types reversed -
org.mockito.Mockito#verifyZeroInteractions
an alias ofverifyNoMoreInteractions
-
org.mockito.Mockito#debug
framework integration API that we later refactored -
org.mockito.configuration.AnnotationEngine
which was leaking internal APIs and instead users should useorg.mockito.plugins.AnnotationEngine
-
org.mockito.exceptions.verification.TooLittleActualInvocations
fixed the grammar from "Little" to "Few" - Numerous internal APIs that we never officially supported and can now remove
-
org.mockito.plugins.InstantiatorProvider
which was leaking internal APIs and instead users should use InstantiatorProvider2 (we should probably rename back to remove the number in a future major release) -
org.mockito.runners
a package that hosted several old JUnit runners which were no longer supported. Users should instead useorg.mockito.junit.MockitoJUnitRunner
which is our official JUnit4 runner.
v3.12.4
*Changelog generated by Shipkit Changelog Gradle Plugin*
3.12.4
- 2021-08-25 - 1 commit(s) by Rafael Winterhalter
- No notable improvements. No pull requests (issues) were referenced from commits.
v3.12.3
*Changelog generated by Shipkit Changelog Gradle Plugin*
3.12.3
- 2021-08-24 - 9 commit(s) by Rafael Winterhalter
- Fix implementation of proxy mock maker for toString and add additional unit tests. (#2405)
- Avoid cache breakage (#2402)
- Add a limited mock maker that is based only on the java.lang.reflect.Proxy utility (#2397)
v3.12.2
*Changelog generated by Shipkit Changelog Gradle Plugin*
3.12.2
- 2021-08-24 - 2 commit(s) by Dmitry Vyazelenko, dependabot[bot]
- Fixes #2399 : Adds defaultAnswer to the MockitoMockKey to distinguish the mock types, i.e. to separate mocks from spies otherwise spy type is reused for a mock or vice versa. (#2400)
- Sporadic mock verification failures related to hashCode/equals on 3.12.1 (#2399)
- Bump versions.errorprone from 2.8.1 to 2.9.0 (#2396)
Configuration
-
If you want to rebase/retry this MR, check this box.
This MR has been generated by Renovate Bot.