Package org.mockito

Mockito is a mock library for java - see Mockito class for for usage.

See:
          Description

Interface Summary
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 In rare cases your code might not compile with recent deprecation & changes.
 

Class Summary
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

Mockito library enables mocks creation, verification and stubbing.

MockitoAnnotations MockitoAnnotations.initMocks(this); initializes fields annotated with Mockito annotations.
 

Enum Summary
Answers Enumeration of pre-configured mock answers You can use it to pass extra parameters to @Mock annotation, see more info here: Mock Example:

   @Mock(answer = RETURNS_DEEP_STUBS) UserProvider userProvider;
 
 This is not the full list of Answers available in Mockito.
 

Annotation Types Summary
Captor Allows shorthand ArgumentCaptor creation on fields.
InjectMocks Allows shorthand mock and spy injection.
Mock Allows shorthand mock creation.
MockitoAnnotations.Mock Deprecated.
Spy Allows shorthand wrapping of field instances in an spy object.
 

Package org.mockito Description

Mockito is a mock library for java - see Mockito class for for usage.