A B C D E F G H I L M N O P R S T U V W

A

ActualArgumentsAreDifferent - Exception in org.mockito.exceptions.cause
 
ActualArgumentsAreDifferent(String) - Constructor for exception org.mockito.exceptions.cause.ActualArgumentsAreDifferent
 
add(Invocation) - Method in class org.mockito.internal.verification.RegisteredInvocations
 
addAnswer(Answer) - Method in class org.mockito.internal.stubbing.MockitoStubber
 
addAnswer(Answer) - Method in class org.mockito.internal.stubbing.StubbedInvocationMatcher
 
addAnswerForVoidMethod(Answer) - Method in class org.mockito.internal.stubbing.MockitoStubber
 
addConsecutiveAnswer(Answer) - Method in class org.mockito.internal.stubbing.MockitoStubber
 
AdditionalMatchers - Class in org.mockito
See Matchers for general info about matchers.
AdditionalMatchers() - Constructor for class org.mockito.AdditionalMatchers
 
AllInvocationsFinder - Class in org.mockito.internal.invocation
 
AllInvocationsFinder() - Constructor for class org.mockito.internal.invocation.AllInvocationsFinder
 
and(boolean, boolean) - Static method in class org.mockito.AdditionalMatchers
boolean argument that matches both given matchers.
and(byte, byte) - Static method in class org.mockito.AdditionalMatchers
byte argument that matches both given argument matchers.
and(char, char) - Static method in class org.mockito.AdditionalMatchers
char argument that matches both given argument matchers.
and(double, double) - Static method in class org.mockito.AdditionalMatchers
double argument that matches both given argument matchers.
and(float, float) - Static method in class org.mockito.AdditionalMatchers
float argument that matches both given argument matchers.
and(int, int) - Static method in class org.mockito.AdditionalMatchers
int argument that matches both given argument matchers.
and(long, long) - Static method in class org.mockito.AdditionalMatchers
long argument that matches both given argument matchers.
and(short, short) - Static method in class org.mockito.AdditionalMatchers
short argument that matches both given argument matchers.
and(T, T) - Static method in class org.mockito.AdditionalMatchers
Object argument that matches both given argument matchers.
And - Class in org.mockito.internal.matchers
 
And(List<Matcher>) - Constructor for class org.mockito.internal.matchers.And
 
answer(InvocationOnMock) - Method in class org.mockito.internal.stubbing.DoesNothing
 
answer(InvocationOnMock) - Method in class org.mockito.internal.stubbing.Returns
 
answer(Invocation) - Method in class org.mockito.internal.stubbing.StubbedInvocationMatcher
 
answer(InvocationOnMock) - Method in class org.mockito.internal.stubbing.ThrowsException
 
Answer<T> - Interface in org.mockito.stubbing
Generic interface for stubbing methods with callbacks.
answer(InvocationOnMock) - Method in interface org.mockito.stubbing.Answer
 
AnswersValidator - Class in org.mockito.internal.stubbing
 
AnswersValidator() - Constructor for class org.mockito.internal.stubbing.AnswersValidator
 
Any - Class in org.mockito.internal.matchers
 
ANY - Static variable in class org.mockito.internal.matchers.Any
 
anyBoolean() - Static method in class org.mockito.Matchers
any boolean, Boolean or null.
anyByte() - Static method in class org.mockito.Matchers
any byte, Byte or null
anyChar() - Static method in class org.mockito.Matchers
any char, Character or null.
anyCollection() - Static method in class org.mockito.Matchers
any Collection or null.
anyDouble() - Static method in class org.mockito.Matchers
any double, Double or null.
anyFloat() - Static method in class org.mockito.Matchers
any float, Float or null.
anyInt() - Static method in class org.mockito.Matchers
any int, Integer or null.
anyList() - Static method in class org.mockito.Matchers
any List or null.
anyLong() - Static method in class org.mockito.Matchers
any long, Long or null.
anyMap() - Static method in class org.mockito.Matchers
any Map or null.
anyObject() - Static method in class org.mockito.Matchers
any Object or null.
anyShort() - Static method in class org.mockito.Matchers
any short, Short or null.
anyString() - Static method in class org.mockito.Matchers
any String or null.
argThat(Matcher<T>) - Static method in class org.mockito.Matchers
Allows creating custom argument matchers.
ArgumentMatcher<T> - Class in org.mockito
Allows creating customized argument matchers.
ArgumentMatcher() - Constructor for class org.mockito.ArgumentMatcher
 
argumentsAreDifferent(PrintableInvocation, PrintableInvocation, HasStackTrace) - Method in class org.mockito.exceptions.Reporter
 
ArgumentsAreDifferent - Error in org.mockito.exceptions.verification
 
ArgumentsAreDifferent(String, Throwable) - Constructor for error org.mockito.exceptions.verification.ArgumentsAreDifferent
 
ArgumentsAreDifferentEclipseReady - Class in org.mockito.exceptions.verification
 
ArgumentsAreDifferentEclipseReady() - Constructor for class org.mockito.exceptions.verification.ArgumentsAreDifferentEclipseReady
 
argumentsToMatchers() - Method in class org.mockito.internal.invocation.Invocation
 
ArrayEquals - Class in org.mockito.internal.matchers
 
ArrayEquals(Object) - Constructor for class org.mockito.internal.matchers.ArrayEquals
 
aryEq(T[]) - Static method in class org.mockito.AdditionalMatchers
Object array argument that is equal to the given array, i.e.
aryEq(short[]) - Static method in class org.mockito.AdditionalMatchers
short array argument that is equal to the given array, i.e.
aryEq(long[]) - Static method in class org.mockito.AdditionalMatchers
long array argument that is equal to the given array, i.e.
aryEq(int[]) - Static method in class org.mockito.AdditionalMatchers
int array argument that is equal to the given array, i.e.
aryEq(float[]) - Static method in class org.mockito.AdditionalMatchers
float array argument that is equal to the given array, i.e.
aryEq(double[]) - Static method in class org.mockito.AdditionalMatchers
double array argument that is equal to the given array, i.e.
aryEq(char[]) - Static method in class org.mockito.AdditionalMatchers
char array argument that is equal to the given array, i.e.
aryEq(byte[]) - Static method in class org.mockito.AdditionalMatchers
byte array argument that is equal to the given array, i.e.
aryEq(boolean[]) - Static method in class org.mockito.AdditionalMatchers
boolean array argument that is equal to the given array, i.e.
atLeastOnce() - Static method in class org.mockito.internal.progress.VerificationModeImpl
 
atLeastOnce() - Static method in class org.mockito.Mockito
Allows at-least-once verification.
atLeastOnceMode() - Method in class org.mockito.internal.progress.VerificationModeImpl
 

B

bindMatchers(Invocation) - Method in class org.mockito.internal.invocation.MatchersBinder
 
booleanThat(Matcher<Boolean>) - Static method in class org.mockito.Matchers
Allows creating custom argument matchers.
byteThat(Matcher<Byte>) - Static method in class org.mockito.Matchers
Allows creating custom argument matchers.

C

cannotMockFinalClass(Class<?>) - Method in class org.mockito.exceptions.Reporter
 
cannotStubVoidMethodWithAReturnValue() - Method in class org.mockito.exceptions.Reporter
 
cannotStubWithNullThrowable() - Method in class org.mockito.exceptions.Reporter
 
CanPrintInMultilines - Interface in org.mockito.internal.invocation
 
charThat(Matcher<Character>) - Static method in class org.mockito.Matchers
Allows creating custom argument matchers.
checkedExceptionInvalid(Throwable) - Method in class org.mockito.exceptions.Reporter
 
ClassNameFinder - Class in org.mockito.internal.creation
 
ClassNameFinder() - Constructor for class org.mockito.internal.creation.ClassNameFinder
 
classNameForMock(Object) - Static method in class org.mockito.internal.creation.ClassNameFinder
 
cmpEq(Comparable<T>) - Static method in class org.mockito.AdditionalMatchers
comparable argument equals to the given value according to their compareTo method.
combineLoadersOf(Class<?>...) - Static method in class org.mockito.internal.creation.SearchingClassLoader
 
CommonStackTraceRemover - Class in org.mockito.exceptions.base
Removes common part from exception an cause.
CommonStackTraceRemover() - Constructor for class org.mockito.exceptions.base.CommonStackTraceRemover
 
Compare<T> - Class in org.mockito.internal.matchers
 
Compare(T, Comparator<T>, LogicalOperator) - Constructor for class org.mockito.internal.matchers.Compare
 
CompareEqual<T extends java.lang.Comparable<T>> - Class in org.mockito.internal.matchers
 
CompareEqual(Comparable<T>) - Constructor for class org.mockito.internal.matchers.CompareEqual
 
CompareTo<T extends java.lang.Comparable<T>> - Class in org.mockito.internal.matchers
 
CompareTo(Comparable<T>) - Constructor for class org.mockito.internal.matchers.CompareTo
 
CONFIG - Static variable in class org.mockito.internal.configuration.Configuration
 
Configuration - Class in org.mockito.internal.configuration
Singleton implementation of MockitoConfiguration
ConfigurationSupport - Class in org.mockito.configuration.experimental
Allows configuring Mockito to enable custom 'mocking style'.
ConfigurationSupport() - Constructor for class org.mockito.configuration.experimental.ConfigurationSupport
 
Contains - Class in org.mockito.internal.matchers
 
Contains(String) - Constructor for class org.mockito.internal.matchers.Contains
 
contains(String) - Static method in class org.mockito.Matchers
String argument that contains the given substring.
createMock(Class<T>, MethodInterceptorFilter, Object) - Method in class org.mockito.internal.creation.MockFactory
 
createMock(Class<T>, MockingProgress, String, T) - Static method in class org.mockito.internal.util.MockUtil
 
createObjectArray(Object) - Static method in class org.mockito.internal.matchers.ArrayEquals
 

D

decamelizeMatcher(String) - Static method in class org.mockito.internal.util.Decamelizer
 
Decamelizer - Class in org.mockito.internal.util
 
Decamelizer() - Constructor for class org.mockito.internal.util.Decamelizer
 
DEFAULT_RETURN_VALUES - Static variable in class org.mockito.internal.configuration.MockitoProperties
Mockito uses it by default to get return values for unstubbed invocations
DefaultReturnValues - Class in org.mockito.internal.configuration
Used by default by every Mockito mock.
DefaultReturnValues() - Constructor for class org.mockito.internal.configuration.DefaultReturnValues
 
defaultValueFor(InvocationOnMock) - Static method in class org.mockito.configuration.experimental.ConfigurationSupport
this is what Mockito returns by default for given invocation
describeTo(Description) - Method in class org.mockito.ArgumentMatcher
 
describeTo(Description) - Method in class org.mockito.internal.matchers.And
 
describeTo(Description) - Method in class org.mockito.internal.matchers.Any
 
describeTo(Description) - Method in class org.mockito.internal.matchers.apachecommons.ReflectionEquals
 
describeTo(Description) - Method in class org.mockito.internal.matchers.ArrayEquals
 
describeTo(Description) - Method in class org.mockito.internal.matchers.Compare
 
describeTo(Description) - Method in class org.mockito.internal.matchers.CompareTo
 
describeTo(Description) - Method in class org.mockito.internal.matchers.Contains
 
describeTo(Description) - Method in class org.mockito.internal.matchers.EndsWith
 
describeTo(Description) - Method in class org.mockito.internal.matchers.Equals
 
describeTo(Description) - Method in class org.mockito.internal.matchers.EqualsWithDelta
 
describeTo(Description) - Method in class org.mockito.internal.matchers.Find
 
describeTo(Description) - Method in class org.mockito.internal.matchers.InstanceOf
 
describeTo(Description) - Method in class org.mockito.internal.matchers.Matches
 
describeTo(Description) - Method in class org.mockito.internal.matchers.Not
 
describeTo(Description) - Method in class org.mockito.internal.matchers.NotNull
 
describeTo(Description) - Method in class org.mockito.internal.matchers.Null
 
describeTo(Description) - Method in class org.mockito.internal.matchers.Or
 
describeTo(Description) - Method in class org.mockito.internal.matchers.Same
 
describeTo(Description) - Method in class org.mockito.internal.matchers.StartsWith
 
doAnswer(Answer) - Method in interface org.mockito.internal.stubbing.Stubber
Use it for stubbing consecutive calls in Mockito.doAnswer(Answer) style:
doAnswer(Answer) - Method in class org.mockito.internal.stubbing.StubberImpl
 
doAnswer(Answer) - Static method in class org.mockito.Mockito
Use doAnswer() when you want to stub a void method with generic Answer.
DoesNothing - Class in org.mockito.internal.stubbing
 
DoesNothing() - Constructor for class org.mockito.internal.stubbing.DoesNothing
 
doNothing() - Method in interface org.mockito.internal.stubbing.Stubber
Use it for stubbing consecutive calls in Mockito.doNothing() style:
doNothing() - Method in class org.mockito.internal.stubbing.StubberImpl
 
doNothing() - Static method in class org.mockito.Mockito
Use doNothing() for setting void methods to do nothing.
DONT_THROW - Static variable in exception org.mockito.internal.stubbing.DontThrow
 
DontThrow - Exception in org.mockito.internal.stubbing
 
DontThrow(Answer) - Constructor for exception org.mockito.internal.stubbing.DontThrow
 
doReturn(Object) - Method in interface org.mockito.internal.stubbing.Stubber
Use it for stubbing consecutive calls in Mockito.doReturn(Object) style.
doReturn(Object) - Method in class org.mockito.internal.stubbing.StubberImpl
 
doReturn(Object) - Static method in class org.mockito.Mockito
Use doReturn() in those rare occasions when you cannot use Mockito.stub(Object).
doThrow(Throwable) - Method in interface org.mockito.internal.stubbing.Stubber
Use it for stubbing consecutive calls in Mockito.doThrow(Throwable) style:
doThrow(Throwable) - Method in class org.mockito.internal.stubbing.StubberImpl
 
doThrow(Throwable) - Static method in class org.mockito.Mockito
Use doThrow() when you want to stub the void method with an exception.
doubleThat(Matcher<Double>) - Static method in class org.mockito.Matchers
Allows creating custom argument matchers.

E

EmptyReturnValues - Class in org.mockito.internal.progress
 
EmptyReturnValues() - Constructor for class org.mockito.internal.progress.EmptyReturnValues
 
EndsWith - Class in org.mockito.internal.matchers
 
EndsWith(String) - Constructor for class org.mockito.internal.matchers.EndsWith
 
endsWith(String) - Static method in class org.mockito.Matchers
String argument that ends with the given suffix.
eq(double, double) - Static method in class org.mockito.AdditionalMatchers
double argument that has an absolute difference to the given value that is less than the given delta details.
eq(float, float) - Static method in class org.mockito.AdditionalMatchers
float argument that has an absolute difference to the given value that is less than the given delta details.
eq(boolean) - Static method in class org.mockito.Matchers
boolean argument that is equal to the given value.
eq(byte) - Static method in class org.mockito.Matchers
byte argument that is equal to the given value.
eq(char) - Static method in class org.mockito.Matchers
char argument that is equal to the given value.
eq(double) - Static method in class org.mockito.Matchers
double argument that is equal to the given value.
eq(float) - Static method in class org.mockito.Matchers
float argument that is equal to the given value.
eq(int) - Static method in class org.mockito.Matchers
int argument that is equal to the given value.
eq(long) - Static method in class org.mockito.Matchers
long argument that is equal to the given value.
eq(short) - Static method in class org.mockito.Matchers
short argument that is equal to the given value.
eq(T) - Static method in class org.mockito.Matchers
Object argument that is equal to the given value.
equals(Object) - Method in class org.mockito.internal.invocation.Invocation
 
Equals - Class in org.mockito.internal.matchers
 
Equals(Object) - Constructor for class org.mockito.internal.matchers.Equals
 
equals(Object) - Method in class org.mockito.internal.matchers.Equals
 
EqualsWithDelta - Class in org.mockito.internal.matchers
 
EqualsWithDelta(Number, Number) - Constructor for class org.mockito.internal.matchers.EqualsWithDelta
 
eraseLastInvocation() - Method in class org.mockito.internal.verification.VerifyingRecorder
 
exactNumberOfInvocationsMode() - Method in class org.mockito.internal.progress.VerificationModeImpl
 
explicitMode() - Method in class org.mockito.internal.progress.VerificationModeImpl
 

F

filter(Collection<T>, ListUtil.Filter<T>) - Static method in class org.mockito.internal.util.ListUtil
 
filterStackTrace(HasStackTrace) - Method in class org.mockito.exceptions.base.StackTraceFilter
 
find(String) - Static method in class org.mockito.AdditionalMatchers
String argument that contains a substring that matches the given regular expression.
Find - Class in org.mockito.internal.matchers
 
Find(String) - Constructor for class org.mockito.internal.matchers.Find
 
findAllMatchingUnverifiedChunks(List<Invocation>, InvocationMatcher) - Method in class org.mockito.internal.invocation.InvocationsFinder
 
findClass(String) - Method in class org.mockito.internal.creation.SearchingClassLoader
 
findFirstUnverified(List<Invocation>) - Method in class org.mockito.internal.invocation.InvocationsFinder
 
findInvocations(List<Invocation>, InvocationMatcher, VerificationModeImpl) - Method in class org.mockito.internal.invocation.InvocationsFinder
 
findMatchingChunk(List<Invocation>, InvocationMatcher, VerificationModeImpl) - Method in class org.mockito.internal.invocation.InvocationsFinder
some examples how it works: Given invocations sequence: 1,1,2,1 if wanted is 1 and mode is times(2) then returns 1,1 if wanted is 1 and mode is atLeastOnce() then returns 1,1,1 if wanted is 1 and mode is times(x), where x != 2 then returns 1,1,1
findPreviousVerifiedInOrder(List<Invocation>) - Method in class org.mockito.internal.invocation.InvocationsFinder
 
findSimilarInvocation(List<Invocation>, InvocationMatcher, VerificationModeImpl) - Method in class org.mockito.internal.invocation.InvocationsFinder
 
floatThat(Matcher<Float>) - Static method in class org.mockito.Matchers
Allows creating custom argument matchers.

G

geq(Comparable<T>) - Static method in class org.mockito.AdditionalMatchers
argument greater than or equal the given value.
geq(byte) - Static method in class org.mockito.AdditionalMatchers
byte argument greater than or equal to the given value.
geq(double) - Static method in class org.mockito.AdditionalMatchers
double argument greater than or equal to the given value.
geq(float) - Static method in class org.mockito.AdditionalMatchers
float argument greater than or equal to the given value.
geq(int) - Static method in class org.mockito.AdditionalMatchers
int argument greater than or equal to the given value.
geq(long) - Static method in class org.mockito.AdditionalMatchers
long argument greater than or equal to the given value.
geq(short) - Static method in class org.mockito.AdditionalMatchers
short argument greater than or equal to the given value.
getActual() - Method in class org.mockito.internal.verification.SyncingPrinter
 
getAllInvocations(List<? extends Object>) - Method in class org.mockito.internal.invocation.AllInvocationsFinder
gets all invocations from mocks.
getAnswer() - Method in exception org.mockito.internal.stubbing.DontThrow
 
getArguments() - Method in class org.mockito.internal.invocation.Invocation
 
getArguments() - Method in interface org.mockito.invocation.InvocationOnMock
returns arguments passed to the method
getConfiguration() - Static method in class org.mockito.configuration.experimental.ConfigurationSupport
returns a configuration object
getDelegate() - Method in class org.mockito.internal.creation.MethodInterceptorFilter
 
getInvocation() - Method in class org.mockito.internal.invocation.InvocationMatcher
 
getLastStackTrace(List<Invocation>) - Method in class org.mockito.internal.invocation.InvocationsFinder
 
getMatchers() - Method in class org.mockito.internal.invocation.InvocationMatcher
 
getMethod() - Method in class org.mockito.internal.invocation.Invocation
 
getMethod() - Method in class org.mockito.internal.invocation.InvocationMatcher
 
getMethod() - Method in interface org.mockito.invocation.InvocationOnMock
returns the method
getMock() - Method in class org.mockito.internal.invocation.Invocation
 
getMock() - Method in interface org.mockito.invocation.InvocationOnMock
returns the mock object
getMockHandler(T) - Static method in class org.mockito.internal.util.MockUtil
 
getMockName() - Method in class org.mockito.internal.MockHandler
 
getMockName(Object) - Static method in class org.mockito.internal.util.MockUtil
 
getMocksToBeVerifiedInOrder() - Method in class org.mockito.internal.progress.VerificationModeImpl
 
getName() - Method in class org.mockito.internal.matchers.CompareEqual
 
getName() - Method in class org.mockito.internal.matchers.CompareTo
 
getName() - Method in class org.mockito.internal.matchers.GreaterOrEqual
 
getName() - Method in class org.mockito.internal.matchers.GreaterThan
 
getName() - Method in class org.mockito.internal.matchers.LessOrEqual
 
getName() - Method in class org.mockito.internal.matchers.LessThan
 
getRegisteredInvocations() - Method in class org.mockito.internal.MockHandler
 
getRegisteredInvocations() - Method in class org.mockito.internal.verification.VerifyingRecorder
 
getResultFor(Invocation) - Method in class org.mockito.internal.stubbing.MockitoStubber
 
getReturnValues() - Method in class org.mockito.internal.configuration.Configuration
 
getReturnValues() - Method in interface org.mockito.internal.configuration.MockitoConfiguration
returns currently set ReturnValues
getSequenceNumber() - Method in class org.mockito.internal.invocation.Invocation
 
getStackTrace() - Method in interface org.mockito.exceptions.base.HasStackTrace
 
getStackTrace() - Method in class org.mockito.exceptions.base.HasStackTraceThrowableWrapper
 
getStackTrace() - Method in class org.mockito.internal.invocation.Invocation
 
getSymbol() - Method in enum org.mockito.internal.matchers.LogicalOperator
 
getThrowable() - Method in class org.mockito.internal.stubbing.ThrowsException
 
getUnfilteredStackTrace() - Method in error org.mockito.exceptions.base.MockitoAssertionError
 
getUnfilteredStackTrace() - Method in exception org.mockito.exceptions.base.MockitoException
 
getVerifiableInvocations() - Method in class org.mockito.internal.verification.RegisteredInvocations
 
getWanted() - Method in class org.mockito.internal.matchers.Equals
 
getWanted() - Method in class org.mockito.internal.verification.SyncingPrinter
 
GreaterOrEqual<T extends java.lang.Comparable<T>> - Class in org.mockito.internal.matchers
 
GreaterOrEqual(Comparable<T>) - Constructor for class org.mockito.internal.matchers.GreaterOrEqual
 
GreaterThan<T extends java.lang.Comparable<T>> - Class in org.mockito.internal.matchers
 
GreaterThan(Comparable<T>) - Constructor for class org.mockito.internal.matchers.GreaterThan
 
gt(Comparable<T>) - Static method in class org.mockito.AdditionalMatchers
comparable argument greater than the given value.
gt(byte) - Static method in class org.mockito.AdditionalMatchers
byte argument greater than the given value.
gt(double) - Static method in class org.mockito.AdditionalMatchers
double argument greater than the given value.
gt(float) - Static method in class org.mockito.AdditionalMatchers
float argument greater than the given value.
gt(int) - Static method in class org.mockito.AdditionalMatchers
int argument greater than the given value.
gt(long) - Static method in class org.mockito.AdditionalMatchers
long argument greater than the given value.
gt(short) - Static method in class org.mockito.AdditionalMatchers
short argument greater than the given value.

H

hasAnswer() - Method in exception org.mockito.internal.stubbing.DontThrow
 
hasAnswersForStubbing() - Method in class org.mockito.internal.stubbing.MockitoStubber
 
hashCode() - Method in class org.mockito.internal.invocation.Invocation
 
hashCode() - Method in class org.mockito.internal.matchers.Equals
 
hasResultFor(Invocation) - Method in class org.mockito.internal.stubbing.MockitoStubber
 
hasSameMethod(Invocation) - Method in class org.mockito.internal.invocation.InvocationMatcher
 
hasSimilarMethod(Invocation) - Method in class org.mockito.internal.invocation.InvocationMatcher
similar means the same method name, same mock, unverified and: if arguments are the same cannot be overloaded
HasStackTrace - Interface in org.mockito.exceptions.base
 
HasStackTraceThrowableWrapper - Class in org.mockito.exceptions.base
 
HasStackTraceThrowableWrapper(Throwable) - Constructor for class org.mockito.exceptions.base.HasStackTraceThrowableWrapper
 

I

initMocks(Object) - Static method in class org.mockito.MockitoAnnotations
Initializes objects annotated with @Mock for given testClass.
InOrder - Interface in org.mockito
Allows verification in order.
inOrder(Integer, List<? extends Object>) - Static method in class org.mockito.internal.progress.VerificationModeImpl
 
inOrder(Object...) - Static method in class org.mockito.Mockito
Creates InOrder object that allows verifying mocks in order.
inOrderMode() - Method in class org.mockito.internal.progress.VerificationModeImpl
 
inOrderRequiresFamiliarMock() - Method in class org.mockito.exceptions.Reporter
 
instance() - Static method in class org.mockito.internal.configuration.Configuration
gets the singleton instance of a configuration
instance() - Static method in class org.mockito.internal.progress.LastArguments
 
InstanceOf - Class in org.mockito.internal.matchers
 
InstanceOf(Class<?>) - Constructor for class org.mockito.internal.matchers.InstanceOf
 
intercept(Object, Method, Object[], MethodProxy) - Method in class org.mockito.internal.creation.MethodInterceptorFilter
 
intercept(Object, Method, Object[], MethodProxy) - Method in interface org.mockito.internal.creation.MockAwareInterceptor
 
intercept(Object, Method, Object[], MethodProxy) - Method in class org.mockito.internal.MockHandler
 
intThat(Matcher<Integer>) - Static method in class org.mockito.Matchers
Allows creating custom argument matchers.
invalidUseOfMatchers(int, int) - Method in class org.mockito.exceptions.Reporter
 
InvalidUseOfMatchersException - Exception in org.mockito.exceptions.misusing
 
InvalidUseOfMatchersException(String) - Constructor for exception org.mockito.exceptions.misusing.InvalidUseOfMatchersException
 
Invocation - Class in org.mockito.internal.invocation
Method call on a mock object.
Invocation(Object, Method, Object[], int) - Constructor for class org.mockito.internal.invocation.Invocation
 
InvocationMatcher - Class in org.mockito.internal.invocation
 
InvocationMatcher(Invocation, List<Matcher>) - Constructor for class org.mockito.internal.invocation.InvocationMatcher
 
InvocationMatcher(Invocation) - Constructor for class org.mockito.internal.invocation.InvocationMatcher
 
InvocationOnMock - Interface in org.mockito.invocation
An invocation on a mock
InvocationsFinder - Class in org.mockito.internal.invocation
 
InvocationsFinder() - Constructor for class org.mockito.internal.invocation.InvocationsFinder
 
isA(Class<T>) - Static method in class org.mockito.Matchers
Object argument that implements the given class.
isLastStackElementToRemove(StackTraceElement) - Method in class org.mockito.exceptions.base.StackTraceFilter
 
isMock(Object) - Static method in class org.mockito.internal.util.MockUtil
 
isMockable(Class<?>) - Static method in class org.mockito.configuration.experimental.ConfigurationSupport
returns true if Mockito CAN create mocks of the clazz
isNotNull() - Static method in class org.mockito.Matchers
not null argument.
isNull() - Static method in class org.mockito.Matchers
null argument.
isOut(T) - Method in interface org.mockito.internal.util.ListUtil.Filter
 
isToString(InvocationOnMock) - Static method in class org.mockito.internal.invocation.Invocation
 
isValidException(Throwable) - Method in class org.mockito.internal.invocation.Invocation
 
isVerified() - Method in class org.mockito.internal.invocation.Invocation
 
isVerifiedInOrder() - Method in class org.mockito.internal.invocation.Invocation
 
isVoid() - Method in class org.mockito.internal.invocation.Invocation
 

L

LastArguments - Class in org.mockito.internal.progress
 
LastArguments() - Constructor for class org.mockito.internal.progress.LastArguments
 
leq(Comparable<T>) - Static method in class org.mockito.AdditionalMatchers
comparable argument less than or equal the given value details.
leq(byte) - Static method in class org.mockito.AdditionalMatchers
byte argument less than or equal to the given value.
leq(double) - Static method in class org.mockito.AdditionalMatchers
double argument less than or equal to the given value.
leq(float) - Static method in class org.mockito.AdditionalMatchers
float argument less than or equal to the given value.
leq(int) - Static method in class org.mockito.AdditionalMatchers
int argument less than or equal to the given value.
leq(long) - Static method in class org.mockito.AdditionalMatchers
long argument less than or equal to the given value.
leq(short) - Static method in class org.mockito.AdditionalMatchers
short argument less than or equal to the given value.
LessOrEqual<T extends java.lang.Comparable<T>> - Class in org.mockito.internal.matchers
 
LessOrEqual(Comparable<T>) - Constructor for class org.mockito.internal.matchers.LessOrEqual
 
LessThan<T extends java.lang.Comparable<T>> - Class in org.mockito.internal.matchers
 
LessThan(Comparable<T>) - Constructor for class org.mockito.internal.matchers.LessThan
 
ListUtil - Class in org.mockito.internal.util
 
ListUtil() - Constructor for class org.mockito.internal.util.ListUtil
 
ListUtil.Filter<T> - Interface in org.mockito.internal.util
 
LogicalOperator - Enum in org.mockito.internal.matchers
 
longThat(Matcher<Long>) - Static method in class org.mockito.Matchers
Allows creating custom argument matchers.
lt(Comparable<T>) - Static method in class org.mockito.AdditionalMatchers
comparable argument less than the given value.
lt(byte) - Static method in class org.mockito.AdditionalMatchers
byte argument less than the given value.
lt(double) - Static method in class org.mockito.AdditionalMatchers
double argument less than the given value.
lt(float) - Static method in class org.mockito.AdditionalMatchers
float argument less than the given value.
lt(int) - Static method in class org.mockito.AdditionalMatchers
int argument less than the given value.
lt(long) - Static method in class org.mockito.AdditionalMatchers
long argument less than the given value.
lt(short) - Static method in class org.mockito.AdditionalMatchers
short argument less than the given value.

M

markVerified() - Method in class org.mockito.internal.invocation.Invocation
 
markVerifiedInOrder() - Method in class org.mockito.internal.invocation.Invocation
 
Matchers - Class in org.mockito
Allow flexible verification or stubbing.
Matchers() - Constructor for class org.mockito.Matchers
 
MatchersBinder - Class in org.mockito.internal.invocation
 
MatchersBinder() - Constructor for class org.mockito.internal.invocation.MatchersBinder
 
matches(Object) - Method in class org.mockito.ArgumentMatcher
Returns whether this matcher accepts the given argument.
matches(Invocation) - Method in class org.mockito.internal.invocation.InvocationMatcher
 
matches(Object) - Method in class org.mockito.internal.matchers.And
 
matches(Object) - Method in class org.mockito.internal.matchers.Any
 
matches(Object) - Method in class org.mockito.internal.matchers.apachecommons.ReflectionEquals
 
matches(Object) - Method in class org.mockito.internal.matchers.ArrayEquals
 
matches(Object) - Method in class org.mockito.internal.matchers.Compare
 
matches(Object) - Method in class org.mockito.internal.matchers.CompareTo
 
matches(Object) - Method in class org.mockito.internal.matchers.Contains
 
matches(Object) - Method in class org.mockito.internal.matchers.EndsWith
 
matches(Object) - Method in class org.mockito.internal.matchers.Equals
 
matches(Object) - Method in class org.mockito.internal.matchers.EqualsWithDelta
 
matches(Object) - Method in class org.mockito.internal.matchers.Find
 
matches(Object) - Method in class org.mockito.internal.matchers.InstanceOf
 
Matches - Class in org.mockito.internal.matchers
 
Matches(String) - Constructor for class org.mockito.internal.matchers.Matches
 
matches(Object) - Method in class org.mockito.internal.matchers.Matches
 
matches(Object) - Method in class org.mockito.internal.matchers.Not
 
matches(Object) - Method in class org.mockito.internal.matchers.NotNull
 
matches(Object) - Method in class org.mockito.internal.matchers.Null
 
matches(Object) - Method in class org.mockito.internal.matchers.Or
 
matches(Object) - Method in class org.mockito.internal.matchers.Same
 
matches(Object) - Method in class org.mockito.internal.matchers.StartsWith
 
matches(String) - Static method in class org.mockito.Matchers
String argument that matches the given regular expression.
matchesActualCount(int) - Method in class org.mockito.internal.progress.VerificationModeImpl
 
matchResult(int) - Method in class org.mockito.internal.matchers.CompareEqual
 
matchResult(int) - Method in class org.mockito.internal.matchers.CompareTo
 
matchResult(int) - Method in class org.mockito.internal.matchers.GreaterOrEqual
 
matchResult(int) - Method in class org.mockito.internal.matchers.GreaterThan
 
matchResult(int) - Method in class org.mockito.internal.matchers.LessOrEqual
 
matchResult(int) - Method in class org.mockito.internal.matchers.LessThan
 
matchResult(int) - Method in enum org.mockito.internal.matchers.LogicalOperator
 
MethodInterceptorFilter<T extends MockAwareInterceptor> - Class in org.mockito.internal.creation
 
MethodInterceptorFilter(Class, T) - Constructor for class org.mockito.internal.creation.MethodInterceptorFilter
 
MissingInvocationInOrderVerifier - Class in org.mockito.internal.verification
 
MissingInvocationInOrderVerifier() - Constructor for class org.mockito.internal.verification.MissingInvocationInOrderVerifier
 
MissingInvocationInOrderVerifier(InvocationsFinder, Reporter) - Constructor for class org.mockito.internal.verification.MissingInvocationInOrderVerifier
 
MissingInvocationVerifier - Class in org.mockito.internal.verification
 
MissingInvocationVerifier() - Constructor for class org.mockito.internal.verification.MissingInvocationVerifier
 
MissingInvocationVerifier(InvocationsFinder, Reporter) - Constructor for class org.mockito.internal.verification.MissingInvocationVerifier
 
missingMethodInOrderMode() - Method in class org.mockito.internal.progress.VerificationModeImpl
 
missingMethodInvocation() - Method in class org.mockito.exceptions.Reporter
 
MissingMethodInvocationException - Exception in org.mockito.exceptions.misusing
 
MissingMethodInvocationException(String) - Constructor for exception org.mockito.exceptions.misusing.MissingMethodInvocationException
 
missingMethodMode() - Method in class org.mockito.internal.progress.VerificationModeImpl
 
mock(Class<T>) - Static method in class org.mockito.Mockito
Creates mock object of given class or interface.
mock(Class<T>, String) - Static method in class org.mockito.Mockito
Creates mock with a name.
MockAwareInterceptor<T> - Interface in org.mockito.internal.creation
 
MockFactory<T> - Class in org.mockito.internal.creation
Factory generating a mock for a class.
MockFactory() - Constructor for class org.mockito.internal.creation.MockFactory
 
MockHandler<T> - Class in org.mockito.internal
Invocation handler set on mock objects.
MockHandler(String, MockingProgress, MatchersBinder) - Constructor for class org.mockito.internal.MockHandler
 
MockingProgress - Interface in org.mockito.internal.progress
 
MockingProgressImpl - Class in org.mockito.internal.progress
 
MockingProgressImpl() - Constructor for class org.mockito.internal.progress.MockingProgressImpl
 
Mockito - Class in org.mockito
Enables mocks creation, verification and stubbing.
Mockito() - Constructor for class org.mockito.Mockito
 
MockitoAnnotations - Class in org.mockito
Allows shorthand mock creation. Minimizes repetitive mock creation code. Makes the test class more readable. Makes the verification error easier to read because field name is used to identify the mock.
MockitoAnnotations() - Constructor for class org.mockito.MockitoAnnotations
 
MockitoAnnotations.Mock - Annotation Type in org.mockito
Allows shorthand mock creation, see examples in javadoc for MockitoAnnotations class.
MockitoAssertionError - Error in org.mockito.exceptions.base
 
MockitoAssertionError(String) - Constructor for error org.mockito.exceptions.base.MockitoAssertionError
 
MockitoAssertionError(String, Throwable) - Constructor for error org.mockito.exceptions.base.MockitoAssertionError
 
MockitoConfiguration - Interface in org.mockito.internal.configuration
Allows configuring Mockito.
MockitoException - Exception in org.mockito.exceptions.base
 
MockitoException(String, Throwable) - Constructor for exception org.mockito.exceptions.base.MockitoException
 
MockitoException(String) - Constructor for exception org.mockito.exceptions.base.MockitoException
 
MockitoProperties - Class in org.mockito.internal.configuration
Configuration properties
MockitoProperties() - Constructor for class org.mockito.internal.configuration.MockitoProperties
 
MockitoStubber - Class in org.mockito.internal.stubbing
 
MockitoStubber(MockingProgress) - Constructor for class org.mockito.internal.stubbing.MockitoStubber
 
mocksHaveToBePassedToVerifyNoMoreInteractions() - Method in class org.mockito.exceptions.Reporter
 
mocksHaveToBePassedWhenCreatingInOrder() - Method in class org.mockito.exceptions.Reporter
 
MockUtil - Class in org.mockito.internal.util
 
MockUtil() - Constructor for class org.mockito.internal.util.MockUtil
 

N

never() - Static method in class org.mockito.Mockito
Alias to times(0), see Mockito.times(int)
neverWanted() - Method in class org.mockito.internal.progress.VerificationModeImpl
 
neverWantedButInvoked(PrintableInvocation, HasStackTrace) - Method in class org.mockito.exceptions.Reporter
 
NeverWantedButInvoked - Error in org.mockito.exceptions.verification
 
NeverWantedButInvoked(String, Throwable) - Constructor for error org.mockito.exceptions.verification.NeverWantedButInvoked
 
neverWantedButInvoked(int) - Method in class org.mockito.internal.progress.VerificationModeImpl
 
newInstance(Class) - Static method in class org.mockito.internal.creation.ObjenesisClassInstantiator
 
nextSequenceNumber() - Method in interface org.mockito.internal.progress.MockingProgress
 
nextSequenceNumber() - Method in class org.mockito.internal.progress.MockingProgressImpl
 
nextSequenceNumber() - Method in class org.mockito.internal.progress.ThreadSafeMockingProgress
 
NoInteractionsWanted - Error in org.mockito.exceptions.verification
No interactions wanted.
NoInteractionsWanted(String, Throwable) - Constructor for error org.mockito.exceptions.verification.NoInteractionsWanted
 
noMoreInteractions() - Static method in class org.mockito.internal.progress.VerificationModeImpl
 
noMoreInteractionsWanted(PrintableInvocation, HasStackTrace) - Method in class org.mockito.exceptions.Reporter
 
NoMoreInvocationsVerifier - Class in org.mockito.internal.verification
 
NoMoreInvocationsVerifier() - Constructor for class org.mockito.internal.verification.NoMoreInvocationsVerifier
 
NoMoreInvocationsVerifier(InvocationsFinder, Reporter) - Constructor for class org.mockito.internal.verification.NoMoreInvocationsVerifier
 
not(T) - Static method in class org.mockito.AdditionalMatchers
Object argument that does not match the given argument matcher.
not(short) - Static method in class org.mockito.AdditionalMatchers
short argument that does not match the given argument matcher.
not(int) - Static method in class org.mockito.AdditionalMatchers
int argument that does not match the given argument matcher.
not(long) - Static method in class org.mockito.AdditionalMatchers
long argument that does not match the given argument matcher.
not(float) - Static method in class org.mockito.AdditionalMatchers
float argument that does not match the given argument matcher.
not(double) - Static method in class org.mockito.AdditionalMatchers
double argument that does not match the given argument matcher.
not(char) - Static method in class org.mockito.AdditionalMatchers
char argument that does not match the given argument matcher.
not(boolean) - Static method in class org.mockito.AdditionalMatchers
boolean argument that does not match the given argument matcher.
not(byte) - Static method in class org.mockito.AdditionalMatchers
byte argument that does not match the given argument matcher.
Not - Class in org.mockito.internal.matchers
 
Not(Matcher) - Constructor for class org.mockito.internal.matchers.Not
 
NOT_NULL - Static variable in class org.mockito.internal.matchers.NotNull
 
NotAMockException - Exception in org.mockito.exceptions.misusing
 
NotAMockException(String) - Constructor for exception org.mockito.exceptions.misusing.NotAMockException
 
notAMockPassedToVerify() - Method in class org.mockito.exceptions.Reporter
 
notAMockPassedToVerifyNoMoreInteractions() - Method in class org.mockito.exceptions.Reporter
 
notAMockPassedToWhenMethod() - Method in class org.mockito.exceptions.Reporter
 
notAMockPassedWhenCreatingInOrder() - Method in class org.mockito.exceptions.Reporter
 
NotNull - Class in org.mockito.internal.matchers
 
notNull() - Static method in class org.mockito.Matchers
not null argument.
Null - Class in org.mockito.internal.matchers
 
NULL - Static variable in class org.mockito.internal.matchers.Null
 
NullInsteadOfMockException - Exception in org.mockito.exceptions.misusing
 
NullInsteadOfMockException(String) - Constructor for exception org.mockito.exceptions.misusing.NullInsteadOfMockException
 
nullPassedToVerify() - Method in class org.mockito.exceptions.Reporter
 
nullPassedToVerifyNoMoreInteractions() - Method in class org.mockito.exceptions.Reporter
 
nullPassedToWhenMethod() - Method in class org.mockito.exceptions.Reporter
 
nullPassedWhenCreatingInOrder() - Method in class org.mockito.exceptions.Reporter
 
NumberOfInvocationsInOrderVerifier - Class in org.mockito.internal.verification
 
NumberOfInvocationsInOrderVerifier() - Constructor for class org.mockito.internal.verification.NumberOfInvocationsInOrderVerifier
 
NumberOfInvocationsInOrderVerifier(InvocationsFinder, Reporter) - Constructor for class org.mockito.internal.verification.NumberOfInvocationsInOrderVerifier
 
NumberOfInvocationsVerifier - Class in org.mockito.internal.verification
 
NumberOfInvocationsVerifier() - Constructor for class org.mockito.internal.verification.NumberOfInvocationsVerifier
 

O

ObjenesisClassInstantiator - Class in org.mockito.internal.creation
 
ObjenesisClassInstantiator() - Constructor for class org.mockito.internal.creation.ObjenesisClassInstantiator
 
on() - Method in interface org.mockito.internal.stubbing.VoidMethodStubbable
Choose void method for stubbing.
OngoingStubbing<T> - Interface in org.mockito.internal.progress
Stubs a method call with return value or an exception.
onlyVoidMethodsCanBeSetToDoNothing() - Method in class org.mockito.exceptions.Reporter
 
or(boolean, boolean) - Static method in class org.mockito.AdditionalMatchers
boolean argument that matches any of the given argument matchers.
or(T, T) - Static method in class org.mockito.AdditionalMatchers
Object argument that matches any of the given argument matchers.
or(short, short) - Static method in class org.mockito.AdditionalMatchers
short argument that matches any of the given argument matchers.
or(long, long) - Static method in class org.mockito.AdditionalMatchers
long argument that matches any of the given argument matchers.
or(int, int) - Static method in class org.mockito.AdditionalMatchers
int argument that matches any of the given argument matchers.
or(float, float) - Static method in class org.mockito.AdditionalMatchers
float argument that matches any of the given argument matchers.
or(double, double) - Static method in class org.mockito.AdditionalMatchers
double argument that matches any of the given argument matchers.
or(char, char) - Static method in class org.mockito.AdditionalMatchers
char argument that matches any of the given argument matchers.
or(byte, byte) - Static method in class org.mockito.AdditionalMatchers
byte argument that matches any of the given argument matchers.
Or - Class in org.mockito.internal.matchers
 
Or(List<Matcher>) - Constructor for class org.mockito.internal.matchers.Or
 
org.mockito - package org.mockito
Mockito is a mock library for java - see Mockito class for for usage.
org.mockito.configuration - package org.mockito.configuration
Mockito configuration utilities
org.mockito.configuration.experimental - package org.mockito.configuration.experimental
Experimental configuration utility.
org.mockito.exceptions - package org.mockito.exceptions
Exception messages, exception hierarchies.
org.mockito.exceptions.base - package org.mockito.exceptions.base
Base classes for exceptions and errors, stack trace filtering/removing logic.
org.mockito.exceptions.cause - package org.mockito.exceptions.cause
Exceptions used as a cause to form descriptive stack trace.
org.mockito.exceptions.misusing - package org.mockito.exceptions.misusing
Exceptions thrown when Mockito is misused.
org.mockito.exceptions.verification - package org.mockito.exceptions.verification
Verification errors.
org.mockito.internal - package org.mockito.internal
Internal classes, not to be used by clients.
org.mockito.internal.configuration - package org.mockito.internal.configuration
Mockito configuration
org.mockito.internal.creation - package org.mockito.internal.creation
Mock object creation.
org.mockito.internal.invocation - package org.mockito.internal.invocation
Invocation and related classes.
org.mockito.internal.matchers - package org.mockito.internal.matchers
Argument matchers for verification and stubbing.
org.mockito.internal.matchers.apachecommons - package org.mockito.internal.matchers.apachecommons
Argument matchers that use Apache Commons Lang reflection-equality.
org.mockito.internal.progress - package org.mockito.internal.progress
Mocking progress stateful classes.
org.mockito.internal.stubbing - package org.mockito.internal.stubbing
Stubbing logic.
org.mockito.internal.util - package org.mockito.internal.util
Static utils
org.mockito.internal.verification - package org.mockito.internal.verification
Verification logic.
org.mockito.invocation - package org.mockito.invocation
Publicly visible classes related to invocation
org.mockito.stubbing - package org.mockito.stubbing
External stubbing related classes

P

PrintableInvocation - Interface in org.mockito.exceptions
 
printsInMultilines() - Method in interface org.mockito.internal.invocation.CanPrintInMultilines
 
printsInMultilines() - Method in class org.mockito.internal.invocation.Invocation
 
printsInMultilines() - Method in class org.mockito.internal.invocation.InvocationMatcher
 
pullMatchers() - Method in class org.mockito.internal.progress.LastArguments
 
pullOngoingStubbing() - Method in interface org.mockito.internal.progress.MockingProgress
 
pullOngoingStubbing() - Method in class org.mockito.internal.progress.MockingProgressImpl
 
pullOngoingStubbing() - Method in class org.mockito.internal.progress.ThreadSafeMockingProgress
 
pullVerificationMode() - Method in interface org.mockito.internal.progress.MockingProgress
 
pullVerificationMode() - Method in class org.mockito.internal.progress.MockingProgressImpl
 
pullVerificationMode() - Method in class org.mockito.internal.progress.ThreadSafeMockingProgress
 

R

recordInvocation(Invocation) - Method in class org.mockito.internal.verification.VerifyingRecorder
 
refEq(T) - Static method in class org.mockito.Matchers
Object argument that is reflection-equal to the given value.
ReflectionEquals - Class in org.mockito.internal.matchers.apachecommons
 
ReflectionEquals(Object) - Constructor for class org.mockito.internal.matchers.apachecommons.ReflectionEquals
 
RegisteredInvocations - Class in org.mockito.internal.verification
 
RegisteredInvocations() - Constructor for class org.mockito.internal.verification.RegisteredInvocations
 
remove(HasStackTrace, List<StackTraceElement>) - Method in class org.mockito.exceptions.base.CommonStackTraceRemover
 
removeLast() - Method in class org.mockito.internal.verification.RegisteredInvocations
 
reportAnd() - Method in class org.mockito.internal.progress.LastArguments
 
Reporter - Class in org.mockito.exceptions
Reports verification and misusing errors.
Reporter() - Constructor for class org.mockito.exceptions.Reporter
 
reportMatcher(Matcher) - Method in class org.mockito.internal.progress.LastArguments
 
reportNot() - Method in class org.mockito.internal.progress.LastArguments
 
reportOngoingStubbing(OngoingStubbing) - Method in interface org.mockito.internal.progress.MockingProgress
 
reportOngoingStubbing(OngoingStubbing) - Method in class org.mockito.internal.progress.MockingProgressImpl
 
reportOngoingStubbing(OngoingStubbing) - Method in class org.mockito.internal.progress.ThreadSafeMockingProgress
 
reportOr() - Method in class org.mockito.internal.progress.LastArguments
 
reset() - Method in interface org.mockito.internal.progress.MockingProgress
 
reset() - Method in class org.mockito.internal.progress.MockingProgressImpl
 
reset() - Method in class org.mockito.internal.progress.ThreadSafeMockingProgress
 
resetReturnValues() - Method in class org.mockito.internal.configuration.Configuration
 
resetReturnValues() - Method in interface org.mockito.internal.configuration.MockitoConfiguration
Resets ReturnValues implementation to the default one: MockitoProperties.DEFAULT_RETURN_VALUES
returnChar() - Method in class org.mockito.internal.progress.EmptyReturnValues
 
returnFalse() - Method in class org.mockito.internal.progress.EmptyReturnValues
 
returnNull() - Method in class org.mockito.internal.progress.EmptyReturnValues
 
Returns - Class in org.mockito.internal.stubbing
 
Returns(Object) - Constructor for class org.mockito.internal.stubbing.Returns
 
ReturnValues - Interface in org.mockito.configuration
Configures return values for an unstubbed invocation
returnZero() - Method in class org.mockito.internal.progress.EmptyReturnValues
 

S

Same - Class in org.mockito.internal.matchers
 
Same(Object) - Constructor for class org.mockito.internal.matchers.Same
 
same(T) - Static method in class org.mockito.Matchers
Object argument that is the same as the given value.
SearchingClassLoader - Class in org.mockito.internal.creation
Thanks to jMock guys for this cool ClassLoader.
SearchingClassLoader(ClassLoader, ClassLoader) - Constructor for class org.mockito.internal.creation.SearchingClassLoader
 
setAnswersForStubbing(List<Answer>) - Method in class org.mockito.internal.MockHandler
 
setAnswersForStubbing(List<Answer>) - Method in class org.mockito.internal.stubbing.MockitoStubber
 
setInstance(Object) - Method in class org.mockito.internal.creation.MethodInterceptorFilter
 
setInstance(T) - Method in interface org.mockito.internal.creation.MockAwareInterceptor
 
setInstance(T) - Method in class org.mockito.internal.MockHandler
 
setInvocationForPotentialStubbing(InvocationMatcher) - Method in class org.mockito.internal.stubbing.MockitoStubber
 
setMethodForStubbing(InvocationMatcher) - Method in class org.mockito.internal.stubbing.MockitoStubber
 
setReturnValues(ReturnValues) - Method in class org.mockito.internal.configuration.Configuration
 
setReturnValues(ReturnValues) - Method in interface org.mockito.internal.configuration.MockitoConfiguration
Sets ReturnValues implementation.
setStackTrace(StackTraceElement[]) - Method in interface org.mockito.exceptions.base.HasStackTrace
 
setStackTrace(StackTraceElement[]) - Method in class org.mockito.exceptions.base.HasStackTraceThrowableWrapper
 
shortThat(Matcher<Short>) - Static method in class org.mockito.Matchers
Allows creating custom argument matchers.
ShouldBeInvokedAfter - Exception in org.mockito.exceptions.cause
 
ShouldBeInvokedAfter(String) - Constructor for exception org.mockito.exceptions.cause.ShouldBeInvokedAfter
 
spy(T) - Static method in class org.mockito.Mockito
Creates a spy of the real object.
StackTraceFilter - Class in org.mockito.exceptions.base
 
StackTraceFilter() - Constructor for class org.mockito.exceptions.base.StackTraceFilter
 
StartsWith - Class in org.mockito.internal.matchers
 
StartsWith(String) - Constructor for class org.mockito.internal.matchers.StartsWith
 
startsWith(String) - Static method in class org.mockito.Matchers
String argument that starts with the given prefix.
stub(T) - Static method in class org.mockito.Mockito
Stubs with return value or exception.
StubbedInvocationMatcher - Class in org.mockito.internal.stubbing
 
StubbedInvocationMatcher(InvocationMatcher, Answer) - Constructor for class org.mockito.internal.stubbing.StubbedInvocationMatcher
 
Stubber - Interface in org.mockito.internal.stubbing
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style
StubberImpl - Class in org.mockito.internal.stubbing
 
StubberImpl() - Constructor for class org.mockito.internal.stubbing.StubberImpl
 
stubbingCompleted() - Method in interface org.mockito.internal.progress.MockingProgress
 
stubbingCompleted() - Method in class org.mockito.internal.progress.MockingProgressImpl
 
stubbingCompleted() - Method in class org.mockito.internal.progress.ThreadSafeMockingProgress
 
stubbingStarted() - Method in interface org.mockito.internal.progress.MockingProgress
 
stubbingStarted() - Method in class org.mockito.internal.progress.MockingProgressImpl
 
stubbingStarted() - Method in class org.mockito.internal.progress.ThreadSafeMockingProgress
 
stubVoid(T) - Static method in class org.mockito.Mockito
Deprecated. Use Mockito.doThrow(Throwable) method for stubbing voids
SyncingPrinter - Class in org.mockito.internal.verification
 
SyncingPrinter(CanPrintInMultilines, CanPrintInMultilines) - Constructor for class org.mockito.internal.verification.SyncingPrinter
 

T

ThreadSafeMockingProgress - Class in org.mockito.internal.progress
 
ThreadSafeMockingProgress() - Constructor for class org.mockito.internal.progress.ThreadSafeMockingProgress
 
ThrowsException - Class in org.mockito.internal.stubbing
 
ThrowsException(Throwable) - Constructor for class org.mockito.internal.stubbing.ThrowsException
 
times(int) - Static method in class org.mockito.internal.progress.VerificationModeImpl
 
times(int) - Static method in class org.mockito.Mockito
Allows verifying exact number of invocations.
toAnswer(Answer<?>) - Method in interface org.mockito.internal.progress.OngoingStubbing
Set a generic Answer for the stubbed method.
toAnswer(Answer<?>) - Method in interface org.mockito.internal.stubbing.VoidMethodStubbable
Stubs a void method with generic Answer
toMultilineString() - Method in interface org.mockito.internal.invocation.CanPrintInMultilines
 
toMultilineString() - Method in class org.mockito.internal.invocation.Invocation
 
toMultilineString() - Method in class org.mockito.internal.invocation.InvocationMatcher
 
tooLittleActualInvocations(int, int, PrintableInvocation, HasStackTrace) - Method in class org.mockito.exceptions.Reporter
 
TooLittleActualInvocations - Error in org.mockito.exceptions.verification
 
TooLittleActualInvocations(String, Throwable) - Constructor for error org.mockito.exceptions.verification.TooLittleActualInvocations
 
tooLittleActualInvocations(int) - Method in class org.mockito.internal.progress.VerificationModeImpl
 
tooLittleActualInvocationsInOrder(int, int, PrintableInvocation, HasStackTrace) - Method in class org.mockito.exceptions.Reporter
 
TooLittleInvocations - Exception in org.mockito.exceptions.cause
 
TooLittleInvocations(String) - Constructor for exception org.mockito.exceptions.cause.TooLittleInvocations
 
tooManyActualInvocations(int, int, PrintableInvocation, HasStackTrace) - Method in class org.mockito.exceptions.Reporter
 
TooManyActualInvocations - Error in org.mockito.exceptions.verification
 
TooManyActualInvocations(String, Throwable) - Constructor for error org.mockito.exceptions.verification.TooManyActualInvocations
 
tooManyActualInvocations(int) - Method in class org.mockito.internal.progress.VerificationModeImpl
 
tooManyActualInvocationsInOrder(int, int, PrintableInvocation, HasStackTrace) - Method in class org.mockito.exceptions.Reporter
 
toReturn(T) - Method in interface org.mockito.internal.progress.OngoingStubbing
Set a return value for the stubbed method.
toReturn() - Method in interface org.mockito.internal.stubbing.VoidMethodStubbable
Stubs void method to 'just return' (e.g.
toString() - Method in interface org.mockito.exceptions.PrintableInvocation
 
toString() - Method in interface org.mockito.internal.invocation.CanPrintInMultilines
 
toString() - Method in class org.mockito.internal.invocation.Invocation
 
toString(List<Matcher>, boolean) - Method in class org.mockito.internal.invocation.Invocation
 
toString() - Method in class org.mockito.internal.invocation.InvocationMatcher
 
toString() - Method in class org.mockito.internal.progress.MockingProgressImpl
 
toString() - Method in class org.mockito.internal.progress.ThreadSafeMockingProgress
 
toString() - Method in class org.mockito.internal.progress.VerificationModeImpl
 
toString() - Method in class org.mockito.internal.stubbing.StubbedInvocationMatcher
 
toThrow(Throwable) - Method in interface org.mockito.internal.progress.OngoingStubbing
Set a Throwable to be thrown when the stubbed method is called.
toThrow(Throwable) - Method in interface org.mockito.internal.stubbing.VoidMethodStubbable
Stubs void method with an exception.

U

UndesiredInvocation - Exception in org.mockito.exceptions.cause
 
UndesiredInvocation(String) - Constructor for exception org.mockito.exceptions.cause.UndesiredInvocation
 
unfinishedStubbing() - Method in class org.mockito.exceptions.Reporter
 
UnfinishedStubbingException - Exception in org.mockito.exceptions.misusing
 
UnfinishedStubbingException(String) - Constructor for exception org.mockito.exceptions.misusing.UnfinishedStubbingException
 
UnfinishedVerificationException - Exception in org.mockito.exceptions.misusing
 
UnfinishedVerificationException(String) - Constructor for exception org.mockito.exceptions.misusing.UnfinishedVerificationException
 
unfinishedVerificationException() - Method in class org.mockito.exceptions.Reporter
 

V

validate(Answer<?>, Invocation) - Method in class org.mockito.internal.stubbing.AnswersValidator
 
validateState() - Method in interface org.mockito.internal.progress.MockingProgress
 
validateState() - Method in class org.mockito.internal.progress.MockingProgressImpl
 
validateState() - Method in class org.mockito.internal.progress.ThreadSafeMockingProgress
 
valueFor(InvocationOnMock) - Method in interface org.mockito.configuration.ReturnValues
returns value for an unstubbed invocation
valueFor(InvocationOnMock) - Method in class org.mockito.internal.configuration.DefaultReturnValues
 
valueOf(String) - Static method in enum org.mockito.internal.matchers.LogicalOperator
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.mockito.internal.matchers.LogicalOperator
Returns an array containing the constants of this enum type, in the order they are declared.
VerifcationInOrderFailure - Error in org.mockito.exceptions.verification
 
VerifcationInOrderFailure(String, Throwable) - Constructor for error org.mockito.exceptions.verification.VerifcationInOrderFailure
 
VerifcationInOrderFailure(String) - Constructor for error org.mockito.exceptions.verification.VerifcationInOrderFailure
 
VerificationMode - Interface in org.mockito.internal.progress
Allows verifying that certain behavior happened at least once / exact number of times / never.
VerificationModeImpl - Class in org.mockito.internal.progress
Holds additional information regarding verification.
verificationStarted(VerificationMode) - Method in interface org.mockito.internal.progress.MockingProgress
 
verificationStarted(VerificationMode) - Method in class org.mockito.internal.progress.MockingProgressImpl
 
verificationStarted(VerificationMode) - Method in class org.mockito.internal.progress.ThreadSafeMockingProgress
 
Verifier - Interface in org.mockito.internal.verification
 
verify(T) - Method in interface org.mockito.InOrder
Verifies interaction happened once in order.
verify(T, VerificationMode) - Method in interface org.mockito.InOrder
Verifies interaction in order.
verify(List<Invocation>, InvocationMatcher, VerificationModeImpl) - Method in class org.mockito.internal.verification.MissingInvocationInOrderVerifier
 
verify(List<Invocation>, InvocationMatcher, VerificationModeImpl) - Method in class org.mockito.internal.verification.MissingInvocationVerifier
 
verify(List<Invocation>, InvocationMatcher, VerificationModeImpl) - Method in class org.mockito.internal.verification.NoMoreInvocationsVerifier
 
verify(List<Invocation>, InvocationMatcher, VerificationModeImpl) - Method in class org.mockito.internal.verification.NumberOfInvocationsInOrderVerifier
 
verify(List<Invocation>, InvocationMatcher, VerificationModeImpl) - Method in class org.mockito.internal.verification.NumberOfInvocationsVerifier
 
verify(List<Invocation>, InvocationMatcher, VerificationModeImpl) - Method in interface org.mockito.internal.verification.Verifier
 
verify(VerificationModeImpl) - Method in class org.mockito.internal.verification.VerifyingRecorder
 
verify(InvocationMatcher, VerificationModeImpl) - Method in class org.mockito.internal.verification.VerifyingRecorder
 
verify(T) - Static method in class org.mockito.Mockito
Verifies certain behavior happened once
verify(T, VerificationMode) - Static method in class org.mockito.Mockito
Verifies certain behavior happened at least once / exact number of times / never.
VerifyingRecorder - Class in org.mockito.internal.verification
 
VerifyingRecorder(AllInvocationsFinder, List<? extends Verifier>) - Constructor for class org.mockito.internal.verification.VerifyingRecorder
 
verifyNoMoreInteractions() - Method in class org.mockito.internal.MockHandler
 
verifyNoMoreInteractions(Object...) - Static method in class org.mockito.Mockito
Throws an AssertionError if any of given mocks has any unverified interaction.
verifyZeroInteractions(Object...) - Static method in class org.mockito.Mockito
Verifies that no interactions happened on given mocks.
voidMethodStubbable(T) - Method in class org.mockito.internal.MockHandler
 
VoidMethodStubbable<T> - Interface in org.mockito.internal.stubbing
Stubs void method with an exception.

W

WantedAnywhereAfterFollowingInteraction - Exception in org.mockito.exceptions.cause
 
WantedAnywhereAfterFollowingInteraction(String) - Constructor for exception org.mockito.exceptions.cause.WantedAnywhereAfterFollowingInteraction
 
wantedButNotInvoked(PrintableInvocation) - Method in class org.mockito.exceptions.Reporter
 
WantedButNotInvoked - Error in org.mockito.exceptions.verification
 
WantedButNotInvoked(String) - Constructor for error org.mockito.exceptions.verification.WantedButNotInvoked
 
wantedButNotInvokedInOrder(PrintableInvocation, PrintableInvocation, HasStackTrace) - Method in class org.mockito.exceptions.Reporter
 
wantedCount() - Method in class org.mockito.internal.progress.VerificationModeImpl
 
when(T) - Method in interface org.mockito.internal.stubbing.Stubber
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style
when(T) - Method in class org.mockito.internal.stubbing.StubberImpl
 

A B C D E F G H I L M N O P R S T U V W