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.Matcherswhich was an alias for
org.mockito.ArgumentMatchersorg.mockito.ArgumentMatchers#{anyObject,anyVararg}both which were
aliases fororg.mockito.ArgumentMatchers#anyorg.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 parameterorg.mockito.MockedStatic#verifywhich had the parameter types reversedorg.mockito.Mockito#verifyZeroInteractionsan alias of
verifyNoMoreInteractionsorg.mockito.Mockito#debugframework integration API that we later
refactoredorg.mockito.configuration.AnnotationEnginewhich was leaking internal
APIs and instead users should useorg.mockito.plugins.AnnotationEngineorg.mockito.exceptions.verification.TooLittleActualInvocationsfixed
the grammar from "Little" to "Few"- Numerous internal APIs that we never officially supported and can now
remove org.mockito.plugins.InstantiatorProviderwhich 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.runnersa package that hosted several old JUnit runners
which were no longer supported. Users should instead use
org.mockito.junit.MockitoJUnitRunnerwhich is our official JUnit4
runner.