Mockito
class for usage.See: Description
Interface | Description |
---|---|
ArgumentMatcher<T> |
Allows creating customized argument matchers.
|
BDDMockito.BDDMyOngoingStubbing<T> |
See original
OngoingStubbing |
BDDMockito.BDDStubber |
See original
Stubber |
BDDMockito.Then<T> |
Provides fluent way of mock verification.
|
InOrder |
Allows verification in order.
|
MockedConstruction<T> |
Represents a mock of any object construction of the represented type.
|
MockedConstruction.Context | |
MockedConstruction.MockInitializer<T> | |
MockedStatic<T> |
Represents an active mock of a type's static methods.
|
MockedStatic.Verification | |
MockingDetails |
Provides mocking information.
|
MockitoDebugger | Deprecated
- please use
MockingDetails.printInvocations() instead. |
MockitoFramework |
Mockito framework settings and lifecycle listeners, for advanced users or for integrating with other frameworks.
|
MockitoSession |
MockitoSession is an optional, highly recommended feature
that helps driving cleaner tests by eliminating boilerplate code and adding extra validation. |
MockSettings |
Allows mock creation with additional mock settings.
|
ScopedMock |
Represents a mock with a thread-local explicit scope.
|
Class | Description |
---|---|
AdditionalAnswers |
Additional answers provides factory methods for answers.
|
AdditionalMatchers |
See
Matchers for general info about matchers. |
ArgumentCaptor<T> |
Use it to capture argument values for further assertions.
|
ArgumentMatchers |
Allow flexible verification or stubbing.
|
BDDMockito |
Behavior Driven Development style of writing tests uses //given //when //then comments as fundamental parts of your test methods.
|
Matchers | Deprecated
Use
ArgumentMatchers . |
Mockito |
|
MockitoAnnotations |
MockitoAnnotations.openMocks(this); initializes fields annotated with Mockito annotations.
|
Enum | Description |
---|---|
Answers |
Enumeration of pre-configured mock answers
|
Annotation Type | Description |
---|---|
Captor |
Allows shorthand
ArgumentCaptor creation on fields. |
CheckReturnValue |
This annotation is not supposed to be used by Mockito end-users.
|
Incubating |
The annotation conveys following information:
The API is fairly new and we would appreciate your feedback.
|
InjectMocks |
Mark a field on which injection should be performed.
|
Mock |
Mark a field as a mock.
|
NotExtensible |
Indicates to the user that she should not provide custom implementations of given type.
|
Spy |
Allows shorthand wrapping of field instances in an spy object.
|
Mockito
class for usage.Mockito