Package org.mockito
Mockito is a mock library for java - see Mockito class for for usage.
-
Interface Summary Interface Description BDDMockito.BDDMyOngoingStubbing<T> See originalOngoingStubbing
BDDMockito.BDDStubber See originalStubber
BDDMockito.Then<T> Provides fluent way of mock verification.InOrder Allows verification in order.MockingDetails Provides mocking information.MockitoDebugger MockSettings Allows mock creation with additional mock settings.ReturnValues Deprecated. Instead, please useAnswer
interface -
Class Summary Class Description AdditionalAnswers Additional answers provides factory methods for less common answers.AdditionalMatchers SeeMatchers
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> Deprecated. not part of the public API, useBDDMockito.BDDMyOngoingStubbing
instead.BDDMockito.BDDStubberImpl Deprecated. not part of the public API, useBDDMockito.BDDStubber
instead.Matchers Allow flexible verification or stubbing.Mockito MockitoAnnotations MockitoAnnotations.initMocks(this); initializes fields annotated with Mockito annotations. -
Enum Summary Enum Description Answers Enumeration of pre-configured mock answers -
Annotation Types Summary Annotation Type Description Captor Allows shorthandArgumentCaptor
creation on fields.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.MockitoAnnotations.Mock Deprecated. Spy Allows shorthand wrapping of field instances in an spy object.