See: Description
Interface | Description |
---|---|
BDDMockito.BDDMyOngoingStubbing<T> |
See original
OngoingStubbing |
BDDMockito.BDDStubber |
See original
Stubber |
InOrder |
Allows verification in order.
|
MockitoDebugger | |
MockSettings |
Allows mock creation with additional mock settings.
|
ReturnValues | Deprecated
Instead, please use
Answer interface |
Class | Description |
---|---|
AdditionalMatchers |
See
Matchers for general info about matchers. |
ArgumentCaptor<T> |
Use it to capture argument values for further assertions.
|
ArgumentMatcher<T> |
Allows creating customized argument matchers.
|
BDDMockito |
Behavior Driven Development style of writing tests uses //given //when //then comments as fundamental parts of your test methods.
|
BDDMockito.BDDOngoingStubbingImpl<T> | |
BDDMockito.BDDStubberImpl | |
Matchers |
Allow flexible verification or stubbing.
|
Mockito |
|
MockitoAnnotations |
MockitoAnnotations.initMocks(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. |
InjectMocks |
Allows shorthand mock and spy injection.
Minimizes repetitive mock and spy injection.
|
Mock |
Allows shorthand mock creation.
Minimizes repetitive mock creation code.
Makes the test class more readable.
Makes the verification error easier to read because the field name is used to identify the mock.
|
MockitoAnnotations.Mock | Deprecated |
Spy |
Allows shorthand wrapping of field instances in an spy object.
|
Copyright © 2018. All rights reserved.