All Classes Interface Summary Class Summary Enum Summary Exception Summary Error Summary Annotation Types Summary
Class |
Description |
AbstractAwareMethod |
|
AccessibilityChanger |
|
AdditionalAnswers |
Additional answers provides factory methods for less common answers.
|
AdditionalMatchers |
See Matchers for general info about matchers.
|
After |
|
AllInvocationsFinder |
|
And |
|
AnnotationEngine |
Configures mock creation logic behind @Mock, @Captor and @Spy annotations
|
Answer<T> |
Generic interface to be used for configuring mock's answer.
|
AnswerReturnValuesAdapter |
|
Answers |
Enumeration of pre-configured mock answers
|
Answers |
Deprecated.
|
AnswersValidator |
|
Any |
|
AnyVararg |
|
ArgumentCaptor<T> |
Use it to capture argument values for further assertions.
|
ArgumentMatcher<T> |
Allows creating customized argument matchers.
|
ArgumentMatcherStorage |
|
ArgumentMatcherStorageImpl |
|
ArgumentMatchingTool |
|
ArgumentsAreDifferent |
|
ArgumentsAreDifferent |
|
ArgumentsComparator |
|
ArgumentsProcessor |
by Szczepan Faber, created at: 3/31/12
|
ArrayEquals |
|
ArrayUtils |
|
AtLeast |
|
AtLeastDiscrepancy |
|
AtLeastXNumberOfInvocationsChecker |
|
AtLeastXNumberOfInvocationsInOrderChecker |
|
AtMost |
|
BaseStubbing<T> |
|
BDDMockito |
Behavior Driven Development style of writing tests uses //given //when //then comments as fundamental parts of your test methods.
|
BDDMockito.BDDMyOngoingStubbing<T> |
|
BDDMockito.BDDOngoingStubbingImpl<T> |
Deprecated.
|
BDDMockito.BDDStubber |
|
BDDMockito.BDDStubberImpl |
Deprecated.
|
BDDMockito.Then<T> |
Provides fluent way of mock verification.
|
BeanPropertySetter |
This utility class will call the setter of the property to inject a new value.
|
Calls |
|
CallsRealMethods |
Optional Answer that adds partial mocking support
|
CannotStubVoidMethodWithReturnValue |
|
CannotVerifyStubOnlyMock |
|
Captor |
|
CaptorAnnotationProcessor |
|
CapturesArgumensFromInvocation |
|
CapturesArguments |
|
CapturingMatcher<T> |
|
CglibMockMaker |
A MockMaker that uses cglib to generate mocks on a JVM.
|
Checks |
Pre-made preconditions
|
ClassPathLoader |
Loads configuration or extension points available in the classpath.
|
CleanTraceRealMethod |
Provides stack trace filtering on exception.
|
ClonesArguments |
|
CollectCreatedMocks |
|
CompareEqual<T extends java.lang.Comparable<T>> |
|
CompareTo<T extends java.lang.Comparable<T>> |
|
ConditionalStackTraceFilter |
|
ConsecutiveStubbing<T> |
|
ConsoleMockitoLogger |
|
ConsoleSpammingMockitoJUnitRunner |
Uses JUnit 4.5 runner BlockJUnit4ClassRunner .
|
ConstructorInjection |
Injection strategy based on constructor.
|
ConstructorInstantiator |
|
Constructors |
|
Contains |
|
ContainsExtraTypeInformation |
|
CreationSettings<T> |
by Szczepan Faber, created at: 4/9/12
|
Decamelizer |
|
DefaultAnnotationEngine |
Initializes fields annotated with @ Mock or @ Captor .
|
DefaultInjectionEngine |
Inject mock/spies dependencies for fields annotated with @InjectMocks
|
DefaultMockingDetails |
Class to inspect any object, and identify whether a particular object is either a mock or a spy.
|
DefaultMockitoConfiguration |
DefaultConfiguration of Mockito framework
|
DefaultRealMethod |
|
DefaultRegisteredInvocations |
|
DefaultStackTraceCleaner |
by Szczepan Faber, created at: 7/29/12
|
DefaultStackTraceCleanerProvider |
by Szczepan Faber, created at: 7/29/12
|
DelegatingMethod |
|
DeprecatedOngoingStubbing<T> |
Stubs a method call with return value or an exception.
|
DescribedInvocation |
Provides information about the invocation, specifically a human readable description and the location.
|
Discrepancy |
Deprecated. |
Discrepancy |
|
DoesNothing |
|
EndsWith |
|
Equality |
|
Equals |
|
EqualsWithDelta |
|
ExceptionIncludingMockitoWarnings |
|
FieldAnnotationProcessor<A extends java.lang.annotation.Annotation> |
Simple annotation processor interface.
|
FieldCopier |
|
FieldInitializationReport |
Report on field initialization
|
FieldInitializer |
Initialize a field with type instance if a default constructor can be found.
|
FieldInitializer.ConstructorArgumentResolver |
Represents the strategy used to resolve actual instances
to be given to a constructor given the argument types.
|
FieldReader |
|
Fields |
Small fluent reflection tools to work with fields.
|
Fields.InstanceFields |
|
FieldSetter |
|
FinalMockCandidateFilter |
This node returns an actual injecter which will be either :
an OngoingInjecter that do nothing if a candidate couldn't be found
an OngoingInjecter that will try to inject the candidate trying first the property setter then if not possible try the field access
|
Find |
|
FindingsListener |
|
ForwardsInvocations |
Internal answer to forward invocations on a real instance.
|
FrameworkUsageValidator |
|
FriendlyReminderException |
|
GenericMaster |
|
GenericMetadataSupport |
This class can retrieve generic meta-data that the compiler stores on classes
and accessible members.
|
GenericMetadataSupport.BoundedType |
Type representing bounds of a type
|
GenericMetadataSupport.TypeVarBoundedType |
Type representing bounds of a type variable, allows to keep all bounds information.
|
GenericMetadataSupport.WildCardBoundedType |
Type representing bounds of a wildcard, allows to keep all bounds information.
|
GlobalConfiguration |
Thread-safe wrapper on user-defined org.mockito.configuration.MockitoConfiguration implementation
|
GloballyConfiguredAnswer |
Globally configured Answer.
|
GreaterOrEqual<T extends java.lang.Comparable<T>> |
|
GreaterThan<T extends java.lang.Comparable<T>> |
|
HandyReturnValues |
|
HashCodeAndEqualsMockWrapper |
hashCode and equals safe mock wrapper.
|
HashCodeAndEqualsSafeSet |
hashCode and equals safe hash based set.
|
IdentitySet |
|
IMockitoConfiguration |
Use it to configure Mockito.
|
Incubating |
The annotation conveys following information:
The API is fairly new and we would appreciate your feedback.
|
InjectingAnnotationEngine |
|
InjectMocks |
Mark a field on which injection should be performed.
|
InjectMocksScanner |
Scan field for injection.
|
InOrder |
Allows verification in order.
|
InOrderContext |
|
InOrderContextImpl |
|
InOrderImpl |
Allows verifying in order.
|
InOrderWrapper |
|
InstanceField |
Represents an accessible instance field.
|
InstanceOf |
|
InstantationException |
|
Instantiator |
Provides instances of classes.
|
InstantiatorProvider |
|
InternalMockHandler<T> |
|
InvalidUseOfMatchersException |
|
Invocation |
A method call on a mock object.
|
InvocationContainer |
|
InvocationContainerImpl |
|
InvocationImpl |
Method call on a mock object.
|
InvocationListener |
This listener can be notified of method invocations on a mock.
|
InvocationMarker |
|
InvocationMatcher |
|
InvocationOnMock |
An invocation on a mock
|
InvocationsFinder |
|
IOngoingStubbing |
Marking interface to be removed when DeprecatedOngoingStubbing gets deleted
|
IOUtil |
IO utils.
|
Iterables |
Utilities for Iterables
|
JUnit44RunnerImpl |
|
JUnit45AndHigherRunnerImpl |
|
JUnitFailureHacker |
|
JUnitRule |
Internal implementation.
|
JUnitTool |
Deprecated. |
JUnitTool |
|
LenientCopyTool |
|
LessOrEqual<T extends java.lang.Comparable<T>> |
|
LessThan<T extends java.lang.Comparable<T>> |
|
ListUtil |
|
ListUtil.Filter<T> |
|
Localized<T> |
|
LocalizedMatcher |
|
Location |
Describes the location of something in the source code.
|
LocationImpl |
|
LoggingListener |
|
MatcherDecorator |
|
Matchers |
Allow flexible verification or stubbing.
|
MatchersBinder |
|
MatchersPrinter |
|
Matches |
|
MethodInfo |
by Szczepan Faber, created at: 3/31/12
|
MethodInvocationReport |
Represent a method call on a mock.
|
MissingInvocationChecker |
|
MissingInvocationInOrderChecker |
|
MissingMethodInvocationException |
|
Mock |
Mark a field as a mock.
|
MockAnnotationProcessor |
Instantiates a mock on a field annotated by Mock
|
MockAwareVerificationMode |
|
MockCandidateFilter |
|
MockCreationSettings<T> |
Informs about the mock settings.
|
MockCreationValidator |
|
MockHandler |
Mockito handler of an invocation on a mock.
|
MockHandlerFactory |
by Szczepan Faber, created at: 5/21/12
|
MockingDetails |
Provides mocking information.
|
MockingProgress |
|
MockingProgressImpl |
|
MockingProgressListener |
|
MockingStartedListener |
|
MockInjection |
Internal injection configuration utility.
|
MockInjection.OngoingMockInjection |
Ongoing configuration of the mock injector.
|
MockInjectionStrategy |
Injector strategy contract
|
Mockito |
|
MockitoAnnotations |
MockitoAnnotations.initMocks(this); initializes fields annotated with Mockito annotations.
|
MockitoAnnotations.Mock |
Deprecated. |
MockitoAnnotationsMockAnnotationProcessor |
|
MockitoAssertionError |
|
MockitoConfigurationException |
|
MockitoCore |
|
MockitoDebugger |
|
MockitoDebuggerImpl |
|
MockitoException |
Raised by mockito to emit an error either due to Mockito, or due to the User.
|
MockitoJUnit |
|
MockitoJUnit44Runner |
Deprecated. |
MockitoJUnitRule |
Deprecated. |
MockitoJUnitRunner |
|
MockitoLimitations |
|
MockitoLogger |
|
MockitoMethod |
|
MockitoMethodProxy |
|
MockitoRule |
|
MockitoSerializationIssue |
Raised by mockito to emit an error either due to Mockito, or due to the User.
|
MockMaker |
The facility to create mocks.
|
MockName |
Represents the name of the mock as shown in the verification failure reports, etc.
|
MockNameImpl |
|
MockScanner |
Scan mocks, and prepare them if needed.
|
MockSettings |
Allows mock creation with additional mock settings.
|
MockSettingsImpl<T> |
|
MockUtil |
|
NameBasedCandidateFilter |
|
NeverWantedButInvoked |
|
NoInteractionsWanted |
No interactions wanted.
|
NoMoreInteractions |
|
NonGreedyNumberOfInvocationsInOrderChecker |
|
Not |
|
NotAMockException |
|
NotifiedMethodInvocationReport |
Report on a method call
|
NotNull |
|
Null |
|
NullInsteadOfMockException |
|
NumberOfInvocationsChecker |
|
NumberOfInvocationsInOrderChecker |
|
ObjectMethodsGuru |
|
OngoingInjecter |
Allow the ongoing injection of a mock candidate.
|
OngoingStubbing<T> |
Simply put: "When the x method is called then return y".
|
OngoingStubbingImpl<T> |
|
Only |
|
Or |
|
Plugins |
Access to Mockito behavior that can be reconfigured by plugins
|
PluginSwitch |
Allows switching off the plugins that are discovered on classpath.
|
Pluralizer |
Deprecated. |
Pluralizer |
|
Primitives |
|
PrintableInvocation |
Deprecated. |
PrintSettings |
|
PropertyAndSetterInjection |
Inject mocks using first setters then fields, if no setters available.
|
RealMethod |
|
ReflectionEquals |
|
RegisteredInvocations |
|
RemoveFirstLine |
|
Reporter |
Reports verification and misusing errors.
|
Returns |
|
ReturnsArgumentAt |
Returns the passed parameter identity at specified index.
|
ReturnsDeepStubs |
Returning deep stub implementation.
|
ReturnsElementsOf |
Returns elements of the collection.
|
ReturnsElementsOf |
Deprecated.
|
ReturnsEmptyValues |
Default answer of every Mockito mock.
|
ReturnsMocks |
|
ReturnsMoreEmptyValues |
It's likely this implementation will be used by default by every Mockito 2.0 mock.
|
ReturnsSmartNulls |
|
ReturnValues |
Deprecated.
|
RunnerFactory |
|
RunnerImpl |
I'm using this surrogate interface to hide internal Runner implementations.
|
RunnerProvider |
|
Same |
|
ScenarioPrinter |
|
SearchingClassLoader |
Inspired on jMock (thanks jMock guys!!!)
|
SequenceNumber |
|
SerializableMethod |
|
SerializableMode |
Mock serializable style.
|
Sets |
|
SimpleMockitoLogger |
|
SingleRegisteredInvocation |
|
SmartNullPointerException |
|
SmartPrinter |
Makes sure both wanted and actual are printed consistently (single line or multiline)
|
Spy |
Allows shorthand wrapping of field instances in an spy object.
|
SpyAnnotationEngine |
Process fields annotated with @Spy.
|
SpyOnInjectedFieldsHandler |
Handler for field annotated with @InjectMocks and @Spy.
|
StackTraceCleaner |
Decides if particular StackTraceElement is excluded from the human-readable stack trace output.
|
StackTraceCleanerProvider |
|
StackTraceFilter |
|
StartsWith |
|
StringJoiner |
|
StubbedInvocationMatcher |
|
Stubber |
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style
|
StubberImpl |
|
StubInfo |
The information about stubbing, for example the location of stubbing.
|
StubInfoImpl |
|
TestMethodsFinder |
|
ThreadSafeMockingProgress |
|
ThrowsException |
|
ThrowsExceptionClass |
|
Timeout |
|
Timer |
|
Times |
|
TooLittleActualInvocations |
|
TooManyActualInvocations |
|
TypeBasedCandidateFilter |
|
UnfinishedStubbingException |
|
UnfinishedVerificationException |
|
UnusedStubsFinder |
|
VarargCapturingMatcher<T> |
|
VarargMatcher |
|
VerboseMockInvocationLogger |
Logs all invocations to standard output.
|
VerboseMockitoJUnitRunner |
Experimental implementation that suppose to improve tdd/testing experience.
|
VerifiableInvocationsFinder |
Author: Szczepan Faber, created at: 4/3/11
|
VerificationAfterDelay |
VerificationAfterDelay is a VerificationMode that allows combining existing verification modes with an initial delay, e.g.
|
VerificationAwareInvocation |
|
VerificationData |
|
VerificationDataImpl |
|
VerificationDataInOrder |
|
VerificationDataInOrderImpl |
|
VerificationInOrderFailure |
|
VerificationInOrderMode |
|
VerificationMode |
Allows verifying that certain behavior happened at least once / exact number
of times / never.
|
VerificationModeFactory |
|
VerificationOverTimeImpl |
Verifies that another verification mode (the delegate) is satisfied within a certain timeframe
(before timeoutMillis has passed, measured from the call to verify()), and either returns immediately
once it does, or waits until it is definitely satisfied once the full time has passed.
|
VerificationWithTimeout |
VerificationWithTimeout is a VerificationMode that allows combining existing verification modes with 'timeout'.
|
VerificationWrapper<WrapperType extends VerificationMode> |
|
VoidMethodStubbable<T> |
Stubs void method with an exception.
|
VoidMethodStubbableImpl<T> |
|
WantedButNotInvoked |
|
WarningsCollector |
|
WarningsFinder |
|
WarningsPrinterImpl |
|
Whitebox |
|
WrongTypeOfReturnValue |
|