Interface and Description |
---|
org.mockito.MockitoDebugger
- please use
MockingDetails.printInvocations() . |
Class and Description |
---|
org.mockito.runners.ConsoleSpammingMockitoJUnitRunner
as of 2.1.0. Use the
MockitoJUnitRunner runner instead
which contains support for detecting unused stubs.
If you still prefer using this runner, tell us why (create ticket in our issue tracker). |
org.mockito.Matchers
Use
ArgumentMatchers . This class is now deprecated in order to avoid a name clash with Hamcrest
org.hamcrest.Matchers class. This class will likely be removed in version 3.0. |
org.mockito.runners.VerboseMockitoJUnitRunner
as of 2.1.0. Use the
MockitoJUnitRunner runner instead
which contains support for detecting unused stubs.
If you still prefer using this runner, tell us why (create ticket in our issue tracker). |
Method and Description |
---|
org.mockito.ArgumentMatchers.anyCollectionOf(Class With Java 8 this method will be removed in Mockito 3.0. This method is only used for generic
friendliness to avoid casting, this is not anymore needed in Java 8.
|
org.mockito.ArgumentMatchers.anyIterableOf(Class With Java 8 this method will be removed in Mockito 3.0. This method is only used for generic
friendliness to avoid casting, this is not anymore needed in Java 8.
|
org.mockito.ArgumentMatchers.anyListOf(Class With Java 8 this method will be removed in Mockito 3.0. This method is only used for generic
friendliness to avoid casting, this is not anymore needed in Java 8.
|
org.mockito.ArgumentMatchers.anyMapOf(Class With Java 8 this method will be removed in Mockito 3.0. This method is only used for generic
friendliness to avoid casting, this is not anymore needed in Java 8.
|
org.mockito.ArgumentMatchers.anyObject()
This will be removed in Mockito 3.0 (which will be java 8 only)
|
org.mockito.ArgumentMatchers.anySetOf(Class With Java 8 this method will be removed in Mockito 3.0. This method is only used for generic
friendliness to avoid casting, this is not anymore needed in Java 8.
|
org.mockito.ArgumentMatchers.anyVararg()
as of 2.1.0 use
ArgumentMatchers.any() |
org.mockito.Answers.get()
as of 2.1.0 Use the enum-constant directly, instead of this getter. This method will be removed in a future release
E.g. instead of Answers.CALLS_REAL_METHODS.get() use Answers.CALLS_REAL_METHODS . |
org.mockito.ArgumentMatchers.isNotNull(Class With Java 8 this method will be removed in Mockito 3.0. This method is only used for generic
friendliness to avoid casting, this is not anymore needed in Java 8.
|
org.mockito.ArgumentMatchers.isNull(Class With Java 8 this method will be removed in Mockito 3.0. This method is only used for generic
friendliness to avoid casting, this is not anymore needed in Java 8.
|
org.mockito.ArgumentMatchers.notNull(Class With Java 8 this method will be removed in Mockito 3.0. This method is only used for generic
friendliness to avoid casting, this is not anymore needed in Java 8.
|
org.mockito.MockitoDebugger.printInvocations(Object...)
- please use
MockingDetails.printInvocations() . |
org.mockito.BDDMockito.BDDStubber.willNothing()
as of 2.1.0 please use
BDDMockito.BDDStubber.willDoNothing() instead |