A B C D E F G H I J 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
 
addPotentiallyUnstubbed(InvocationMatcher) - Method in class org.mockito.internal.debugging.DebuggingInfo
 
addStubbedInvocation(Invocation) - Method in class org.mockito.internal.debugging.DebuggingInfo
 
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
 
AnnotationEngine - Interface in org.mockito.configuration
Configures mock creation logic behind @Mock annotations
answer(InvocationOnMock) - Method in class org.mockito.internal.stubbing.DoesNothing
 
answer(InvocationOnMock) - Method in class org.mockito.internal.stubbing.Returns
 
answer(InvocationOnMock) - 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
 
any(Class<T>) - Static method in class org.mockito.Matchers
any object of specified class.
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
 
ArgumentMatcherStorage - Interface in org.mockito.internal.progress
 
ArgumentMatcherStorageImpl - Class in org.mockito.internal.progress
 
ArgumentMatcherStorageImpl() - Constructor for class org.mockito.internal.progress.ArgumentMatcherStorageImpl
 
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
 
ArgumentsAreDifferent - Error in org.mockito.exceptions.verification.junit
 
ArgumentsAreDifferent(String, Throwable, String, String) - Constructor for error org.mockito.exceptions.verification.junit.ArgumentsAreDifferent
 
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.
AtLeast - Class in org.mockito.internal.verification
 
AtLeast(int) - Constructor for class org.mockito.internal.verification.AtLeast
 
atLeast(int) - Static method in class org.mockito.internal.verification.VerificationModeFactory
 
atLeast(int) - Static method in class org.mockito.Mockito
Allows at-least-x verification.
atLeastOnce() - Static method in class org.mockito.internal.verification.VerificationModeFactory
 
atLeastOnce() - Static method in class org.mockito.Mockito
Allows at-least-once verification.
AtLeastXNumberOfInvocationsChecker - Class in org.mockito.internal.verification.checkers
 
AtLeastXNumberOfInvocationsChecker() - Constructor for class org.mockito.internal.verification.checkers.AtLeastXNumberOfInvocationsChecker
 
AtLeastXNumberOfInvocationsInOrderChecker - Class in org.mockito.internal.verification.checkers
 
AtLeastXNumberOfInvocationsInOrderChecker() - Constructor for class org.mockito.internal.verification.checkers.AtLeastXNumberOfInvocationsInOrderChecker
 
AtMost - Class in org.mockito.internal.verification
 
AtMost(int) - Constructor for class org.mockito.internal.verification.AtMost
 
atMost(int) - Static method in class org.mockito.internal.verification.VerificationModeFactory
 
atMost(int) - Static method in class org.mockito.Mockito
Allows at-most-x verification.

B

BecauseThisMethodWasNotStubbed - Exception in org.mockito.exceptions.cause
 
BecauseThisMethodWasNotStubbed(String) - Constructor for exception org.mockito.exceptions.cause.BecauseThisMethodWasNotStubbed
 
bindMatchers(ArgumentMatcherStorage, 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

canImposterise(Class<?>) - Method in class org.mockito.internal.creation.jmock.ClassImposterizer
 
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
 
CGLIBHacker - Class in org.mockito.internal.creation.cglib
 
CGLIBHacker() - Constructor for class org.mockito.internal.creation.cglib.CGLIBHacker
 
charThat(Matcher<Character>) - Static method in class org.mockito.Matchers
Allows creating custom argument matchers.
check(List<Invocation>, InvocationMatcher, int) - Method in class org.mockito.internal.verification.checkers.AtLeastXNumberOfInvocationsChecker
 
check(List<Invocation>, InvocationMatcher, int) - Method in class org.mockito.internal.verification.checkers.AtLeastXNumberOfInvocationsInOrderChecker
 
check(List<Invocation>, InvocationMatcher) - Method in class org.mockito.internal.verification.checkers.MissingInvocationChecker
 
check(List<Invocation>, InvocationMatcher, VerificationMode) - Method in class org.mockito.internal.verification.checkers.MissingInvocationInOrderChecker
 
check(List<Invocation>, InvocationMatcher, int) - Method in class org.mockito.internal.verification.checkers.NumberOfInvocationsChecker
 
check(List<Invocation>, InvocationMatcher, int) - Method in class org.mockito.internal.verification.checkers.NumberOfInvocationsInOrderChecker
 
checkedExceptionInvalid(Throwable) - Method in class org.mockito.exceptions.Reporter
 
ClassImposterizer - Class in org.mockito.internal.creation.jmock
Thanks to jMock guys for this handy class that wraps all the cglib magic.
ClassImposterizer.ClassWithSuperclassToWorkAroundCglibBug - Class in org.mockito.internal.creation.jmock
 
ClassImposterizer.ClassWithSuperclassToWorkAroundCglibBug() - Constructor for class org.mockito.internal.creation.jmock.ClassImposterizer.ClassWithSuperclassToWorkAroundCglibBug
 
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
 
ClassPathLoader - Class in org.mockito.internal.configuration
 
ClassPathLoader() - Constructor for class org.mockito.internal.configuration.ClassPathLoader
 
clearData() - Method in class org.mockito.internal.debugging.DebuggingInfo
 
cmpEq(Comparable<T>) - Static method in class org.mockito.AdditionalMatchers
comparable argument equals to the given value according to their compareTo method.
collectData() - Method in class org.mockito.internal.debugging.DebuggingInfo
 
combineLoadersOf(Class<?>...) - Static method in class org.mockito.internal.creation.jmock.SearchingClassLoader
 
CommonStackTraceRemover - Class in org.mockito.exceptions.base
Removes common part from exception an cause.
CommonStackTraceRemover() - Constructor for class org.mockito.exceptions.base.CommonStackTraceRemover
 
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
Deprecated.  
Configuration - Class in org.mockito.internal.configuration
Deprecated. 
ConfigurationSupport - Class in org.mockito.configuration.experimental
Deprecated. Please see IMockitoConfiguration for info on configuring Mockito

Allows configuring Mockito to enable custom 'mocking style'. It can be useful when working with legacy code, etc.

See examples from mockito/test/org/mockitousage/examples/configure subpackage. You may want to check out the project from svn repository to easily browse Mockito's test code.

Basic example:

   //create an implementation of ReturnValues interface
   
   public class FriendlyReturnValues implements ReturnValues {

   public Object valueFor(InvocationOnMock invocation) {
       
       Class returnType = invocation.getMethod().getReturnType();
       
       Object defaultReturnValue = ConfigurationSupport.defaultValueFor(invocation);
       
       if (defaultReturnValue != null || !ConfigurationSupport.isMockable(returnType)) {
           return defaultReturnValue;
       } else { 
           return Mockito.mock(returnType);
       }
   }
   
   //finally, change the configuration: 
   
   ConfigurationSupport.getConfiguration().setReturnValues(new FriendlyReturnValues());
 

Configuring Mockito is a new concept that we evaluate. Please let us know if you find it useful/harmful.

ConfigurationSupport() - Constructor for class org.mockito.configuration.experimental.ConfigurationSupport
Deprecated.  
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.
createArgumentsAreDifferentException(String, Throwable, String, String) - Static method in class org.mockito.exceptions.verification.junit.JUnitTool
 
createMock(Class<T>, MockingProgress, String, T, ReturnValues) - Static method in class org.mockito.internal.util.MockUtil
 
createMockFor(Annotation, Field) - Method in interface org.mockito.configuration.AnnotationEngine
Usually the implementation checks the annotation and then creates a mock object for specified field.
createMockFor(Annotation, Field) - Method in class org.mockito.internal.configuration.DefaultAnnotationEngine
 
createObjectArray(Object) - Static method in class org.mockito.internal.matchers.ArrayEquals
 
createTest() - Method in class org.mockito.runners.MockitoJUnit44Runner
 

D

DebuggingInfo - Class in org.mockito.internal.debugging
 
DebuggingInfo() - Constructor for class org.mockito.internal.debugging.DebuggingInfo
 
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
 
DefaultAnnotationEngine - Class in org.mockito.internal.configuration
Initializes fields annotated with @Mock
DefaultAnnotationEngine() - Constructor for class org.mockito.internal.configuration.DefaultAnnotationEngine
 
DefaultMockitoConfiguration - Class in org.mockito.configuration
DefaultConfiguration of Mockito framework
DefaultMockitoConfiguration() - Constructor for class org.mockito.configuration.DefaultMockitoConfiguration
 
defaultValueFor(InvocationOnMock) - Static method in class org.mockito.configuration.experimental.ConfigurationSupport
Deprecated. Please use DefaultMockitoConfiguration if you need default return values for mocks.

this is what Mockito returns by default for given invocation

See examples in javadoc for ConfigurationSupport

DeprecatedOngoingStubbing<T> - Interface in org.mockito.internal.progress
Stubs a method call with return value or an exception.
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.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.
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.when(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.returnvalues
Used by default by every Mockito mock.
EmptyReturnValues() - Constructor for class org.mockito.internal.returnvalues.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
 

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
 
findAnswerFor(Invocation) - Method in class org.mockito.internal.stubbing.MockitoStubber
 
findClass(String) - Method in class org.mockito.internal.creation.jmock.SearchingClassLoader
 
findFirstUnverified(List<Invocation>) - Method in class org.mockito.internal.invocation.InvocationsFinder
 
findInvocations(List<Invocation>, InvocationMatcher) - Method in class org.mockito.internal.invocation.InvocationsFinder
 
findMatchingChunk(List<Invocation>, InvocationMatcher, int) - 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 atLeast() 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) - 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
 
getAll() - Method in class org.mockito.internal.verification.RegisteredInvocations
 
getAllInvocations(List<? extends Object>) - Method in class org.mockito.internal.invocation.AllInvocationsFinder
gets all invocations from mocks.
getAllInvocations() - Method in interface org.mockito.internal.verification.api.VerificationData
 
getAllInvocations() - Method in class org.mockito.internal.verification.VerificationDataImpl
 
getAnnotationEngine() - Method in class org.mockito.configuration.DefaultMockitoConfiguration
 
getAnnotationEngine() - Method in interface org.mockito.configuration.IMockitoConfiguration
Configures annotations for mocks
getAnnotationEngine() - Method in class org.mockito.internal.configuration.GlobalConfiguration
 
getArgumentMatcherStorage() - Method in interface org.mockito.internal.progress.MockingProgress
 
getArgumentMatcherStorage() - Method in class org.mockito.internal.progress.MockingProgressImpl
 
getArgumentMatcherStorage() - Method in class org.mockito.internal.progress.ThreadSafeMockingProgress
 
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
Deprecated. Please implement IMockitoConfiguration to configure Mockito globally. IMockitoConfiguration

Please use Mockito.mock(Class, org.mockito.ReturnValues) to configure return values 'per mock'

This method returns a configuration object

See examples in javadoc for ConfigurationSupport

getDebuggingInfo() - Method in interface org.mockito.internal.progress.MockingProgress
 
getDebuggingInfo() - Method in class org.mockito.internal.progress.MockingProgressImpl
 
getDebuggingInfo() - Method in class org.mockito.internal.progress.ThreadSafeMockingProgress
 
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
 
getMessage() - Method in error org.mockito.exceptions.verification.junit.ArgumentsAreDifferent
 
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
getMethodName() - Method in class org.mockito.internal.invocation.Invocation
 
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
 
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
 
getReturnType() - Method in class org.mockito.internal.stubbing.Returns
 
getReturnValues() - Method in class org.mockito.configuration.DefaultMockitoConfiguration
 
getReturnValues() - Method in interface org.mockito.configuration.IMockitoConfiguration
Allows configuring the default return values of unstubbed invocations
getReturnValues() - Method in class org.mockito.internal.configuration.Configuration
Deprecated.  
getReturnValues() - Method in class org.mockito.internal.configuration.GlobalConfiguration
 
getReturnValues() - Method in interface org.mockito.internal.configuration.MockitoConfiguration
Deprecated. 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
 
getTag() - Method in class org.mockito.internal.creation.cglib.MockitoNamingPolicy
 
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
 
getUnfilteredStackTrace() - Method in error org.mockito.exceptions.verification.junit.ArgumentsAreDifferent
 
getWanted() - Method in class org.mockito.internal.matchers.Equals
 
getWanted() - Method in interface org.mockito.internal.verification.api.VerificationData
 
getWanted() - Method in class org.mockito.internal.verification.SyncingPrinter
 
getWanted() - Method in class org.mockito.internal.verification.VerificationDataImpl
 
GlobalConfiguration - Class in org.mockito.internal.configuration
Thread-safe wrapper on user-defined org.mockito.configuration.MockitoConfiguration implementation
GlobalConfiguration() - Constructor for class org.mockito.internal.configuration.GlobalConfiguration
 
GloballyConfiguredReturnValues - Class in org.mockito.internal.returnvalues
ReturnValues from global configuration
GloballyConfiguredReturnValues() - Constructor for class org.mockito.internal.returnvalues.GloballyConfiguredReturnValues
 
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

HandyReturnValues - Class in org.mockito.internal.progress
 
HandyReturnValues() - Constructor for class org.mockito.internal.progress.HandyReturnValues
 
hasAnswersForStubbing() - Method in class org.mockito.internal.stubbing.MockitoStubber
 
hasData() - Method in class org.mockito.internal.debugging.DebuggingInfo
 
hashCode() - Method in class org.mockito.internal.invocation.Invocation
 
hashCode() - Method in class org.mockito.internal.matchers.Equals
 
hasJUnit() - Static method in class org.mockito.exceptions.verification.junit.JUnitTool
 
hasName() - Method in class org.mockito.internal.MockHandler
 
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

IMockitoConfiguration - Interface in org.mockito.configuration
Use it to configure Mockito.
imposterise(MethodInterceptor, Class<T>, Class<?>...) - Method in class org.mockito.internal.creation.jmock.ClassImposterizer
 
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(Object...) - Static method in class org.mockito.Mockito
Creates InOrder object that allows verifying mocks in order.
inOrderRequiresFamiliarMock() - Method in class org.mockito.exceptions.Reporter
 
InOrderWrapper - Class in org.mockito.internal.verification
 
InOrderWrapper(VerificationInOrderMode, List<Object>) - Constructor for class org.mockito.internal.verification.InOrderWrapper
 
instance() - Static method in class org.mockito.internal.configuration.Configuration
Deprecated. gets the singleton instance of a configuration
INSTANCE - Static variable in class org.mockito.internal.creation.cglib.MockitoNamingPolicy
 
INSTANCE - Static variable in class org.mockito.internal.creation.jmock.ClassImposterizer
 
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
 
InvalidUseOfMatchersException(String, MockitoException) - 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
Deprecated. 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
 
isPrimitiveWrapper(Class<?>) - Static method in class org.mockito.internal.util.Primitives
 
isSurrogate() - Method in class org.mockito.internal.util.MockName
 
isToString(InvocationOnMock) - Static method in class org.mockito.internal.invocation.Invocation
 
isToString(Method) - Static method in class org.mockito.internal.invocation.Invocation
 
isValidException(Throwable) - Method in class org.mockito.internal.invocation.Invocation
 
isValidReturnType(Class) - 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
 

J

join(Object...) - Static method in class org.mockito.internal.util.StringJoiner
 
JUnitTool - Class in org.mockito.exceptions.verification.junit
 
JUnitTool() - Constructor for class org.mockito.exceptions.verification.junit.JUnitTool
 

L

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
 
loadConfiguration() - Method in class org.mockito.internal.configuration.ClassPathLoader
 
log(Object) - Method in interface org.mockito.internal.util.MockitoLogger
 
log(Object) - Method in class org.mockito.internal.util.MockitoLoggerImpl
 
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.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.
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
 
MethodInterceptorFilter<T extends MockAwareInterceptor> - Class in org.mockito.internal.creation
 
MethodInterceptorFilter(Class, T) - Constructor for class org.mockito.internal.creation.MethodInterceptorFilter
 
misplacedArgumentMatcher() - Method in class org.mockito.exceptions.Reporter
 
MissingInvocationChecker - Class in org.mockito.internal.verification.checkers
 
MissingInvocationChecker() - Constructor for class org.mockito.internal.verification.checkers.MissingInvocationChecker
 
MissingInvocationInOrderChecker - Class in org.mockito.internal.verification.checkers
 
MissingInvocationInOrderChecker() - Constructor for class org.mockito.internal.verification.checkers.MissingInvocationInOrderChecker
 
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
 
Mock - Annotation Type 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 the field name is used to identify the mock.
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.
mock(Class<T>, ReturnValues) - Static method in class org.mockito.Mockito
Creates mock with a specified strategy for its return values.
MockAwareInterceptor<T> - Interface in org.mockito.internal.creation
 
MockHandler<T> - Class in org.mockito.internal
Invocation handler set on mock objects.
MockHandler(MockName, MockingProgress, MatchersBinder, ReturnValues) - 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
Deprecated. 
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
Deprecated. 
MockitoConfigurationException - Exception in org.mockito.exceptions.misusing
 
MockitoConfigurationException(String) - Constructor for exception org.mockito.exceptions.misusing.MockitoConfigurationException
 
MockitoConfigurationException(String, Exception) - Constructor for exception org.mockito.exceptions.misusing.MockitoConfigurationException
 
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
 
MockitoJUnit44Runner - Class in org.mockito.runners
JUnit 4.4 runner initializes mocks annotated with Mock, so that explicit usage of MockitoAnnotations.initMocks(Object) is not necessary.
MockitoJUnit44Runner(Class<?>) - Constructor for class org.mockito.runners.MockitoJUnit44Runner
 
MockitoJUnitRunner - Class in org.mockito.runners
Uses JUnit 4.5 runner BlockJUnit4ClassRunner.
MockitoJUnitRunner(Class<?>) - Constructor for class org.mockito.runners.MockitoJUnitRunner
 
MockitoLogger - Interface in org.mockito.internal.util
 
MockitoLoggerImpl - Class in org.mockito.internal.util
 
MockitoLoggerImpl() - Constructor for class org.mockito.internal.util.MockitoLoggerImpl
 
MockitoNamingPolicy - Class in org.mockito.internal.creation.cglib
 
MockitoNamingPolicy() - Constructor for class org.mockito.internal.creation.cglib.MockitoNamingPolicy
 
MockitoStubber - Class in org.mockito.internal.stubbing
 
MockitoStubber(MockingProgress) - Constructor for class org.mockito.internal.stubbing.MockitoStubber
 
MockName - Class in org.mockito.internal.util
 
MockName(String, Class) - Constructor for class org.mockito.internal.util.MockName
 
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
 
MoreEmptyReturnValues - Class in org.mockito.internal.returnvalues
It's likely this implementation will be used by default by every Mockito 2.0 mock.
MoreEmptyReturnValues() - Constructor for class org.mockito.internal.returnvalues.MoreEmptyReturnValues
 

N

never() - Static method in class org.mockito.Mockito
Alias to times(0), see Mockito.times(int)
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
 
NewOngoingStubbing<T> - Interface in org.mockito.internal.progress
Simply put: "When the x method is called then return y".
next() - Static method in class org.mockito.internal.progress.SequenceNumber
 
NoInteractionsWanted - Error in org.mockito.exceptions.verification
No interactions wanted.
NoInteractionsWanted(String, Throwable) - Constructor for error org.mockito.exceptions.verification.NoInteractionsWanted
 
NoMoreInteractions - Class in org.mockito.internal.verification
 
NoMoreInteractions() - Constructor for class org.mockito.internal.verification.NoMoreInteractions
 
noMoreInteractions() - Static method in class org.mockito.internal.verification.VerificationModeFactory
 
noMoreInteractionsWanted(PrintableInvocation, HasStackTrace) - Method in class org.mockito.exceptions.Reporter
 
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
 
NumberOfInvocationsChecker - Class in org.mockito.internal.verification.checkers
 
NumberOfInvocationsChecker() - Constructor for class org.mockito.internal.verification.checkers.NumberOfInvocationsChecker
 
NumberOfInvocationsInOrderChecker - Class in org.mockito.internal.verification.checkers
 
NumberOfInvocationsInOrderChecker() - Constructor for class org.mockito.internal.verification.checkers.NumberOfInvocationsInOrderChecker
 

O

on() - Method in interface org.mockito.internal.stubbing.VoidMethodStubbable
Choose void method for stubbing.
OngoingStubbing - Interface in org.mockito.internal.progress
Marking interface to be removed when DeprecatedOngoingStubbing gets deleted
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.exceptions.verification.junit - package org.mockito.exceptions.verification.junit
JUnit integration to provide better support for junit runners in IDEs.
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.creation.cglib - package org.mockito.internal.creation.cglib
CGLIB related stuff
org.mockito.internal.creation.jmock - package org.mockito.internal.creation.jmock
Borrowed from jmock codebase
org.mockito.internal.debugging - package org.mockito.internal.debugging
Whatever helps in debugging failed tests
org.mockito.internal.experimental - package org.mockito.internal.experimental
Experimental stuff
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.returnvalues - package org.mockito.internal.returnvalues
Implementations of ReturnValues
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.internal.verification.api - package org.mockito.internal.verification.api
This package should be open to public once verification API is fully finished
org.mockito.internal.verification.checkers - package org.mockito.internal.verification.checkers
verification checkers
org.mockito.invocation - package org.mockito.invocation
Publicly visible classes related to invocation
org.mockito.runners - package org.mockito.runners
JUnit runners.
org.mockito.stubbing - package org.mockito.stubbing
External stubbing related classes

P

Primitives - Class in org.mockito.internal.util
 
Primitives() - Constructor for class org.mockito.internal.util.Primitives
 
primitiveTypeOf(Class<?>) - Static method in class org.mockito.internal.util.Primitives
 
primitiveWrapperOf(Class<?>) - Static method in class org.mockito.internal.util.Primitives
 
print(MockitoLogger) - Method in class org.mockito.internal.debugging.WarningsPrinter
 
PrintableInvocation - Interface in org.mockito.exceptions
 
printMethodReturnType() - Method in class org.mockito.internal.invocation.Invocation
 
printReturnType() - Method in class org.mockito.internal.stubbing.Returns
 
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
 
printWarnings(MockitoLogger) - Method in class org.mockito.internal.debugging.DebuggingInfo
 
pullMatchers() - Method in interface org.mockito.internal.progress.ArgumentMatcherStorage
 
pullMatchers() - Method in class org.mockito.internal.progress.ArgumentMatcherStorageImpl
 
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

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 interface org.mockito.internal.progress.ArgumentMatcherStorage
 
reportAnd() - Method in class org.mockito.internal.progress.ArgumentMatcherStorageImpl
 
Reporter - Class in org.mockito.exceptions
Reports verification and misusing errors.
Reporter() - Constructor for class org.mockito.exceptions.Reporter
 
reportMatcher(Matcher) - Method in interface org.mockito.internal.progress.ArgumentMatcherStorage
 
reportMatcher(Matcher) - Method in class org.mockito.internal.progress.ArgumentMatcherStorageImpl
 
reportNot() - Method in interface org.mockito.internal.progress.ArgumentMatcherStorage
 
reportNot() - Method in class org.mockito.internal.progress.ArgumentMatcherStorageImpl
 
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 interface org.mockito.internal.progress.ArgumentMatcherStorage
 
reportOr() - Method in class org.mockito.internal.progress.ArgumentMatcherStorageImpl
 
reportUsedStub(InvocationMatcher) - Method in class org.mockito.internal.debugging.DebuggingInfo
 
reset() - Method in interface org.mockito.internal.progress.ArgumentMatcherStorage
 
reset() - Method in class org.mockito.internal.progress.ArgumentMatcherStorageImpl
 
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
 
resetOngoingStubbing() - Method in interface org.mockito.internal.progress.MockingProgress
Removes ongoing stubbing so that in case the framework is misused state validation errors are more accurate
resetOngoingStubbing() - Method in class org.mockito.internal.progress.MockingProgressImpl
 
resetOngoingStubbing() - Method in class org.mockito.internal.progress.ThreadSafeMockingProgress
 
resetReturnValues() - Method in class org.mockito.internal.configuration.Configuration
Deprecated.  
resetReturnValues() - Method in interface org.mockito.internal.configuration.MockitoConfiguration
Deprecated. Resets ReturnValues implementation to the default one
returnChar() - Method in class org.mockito.internal.progress.HandyReturnValues
 
returnFalse() - Method in class org.mockito.internal.progress.HandyReturnValues
 
returnList() - Method in class org.mockito.internal.progress.HandyReturnValues
 
returnMap() - Method in class org.mockito.internal.progress.HandyReturnValues
 
returnNull() - Method in class org.mockito.internal.progress.HandyReturnValues
 
Returns - Class in org.mockito.internal.stubbing
 
Returns(Object) - Constructor for class org.mockito.internal.stubbing.Returns
 
RETURNS_DEFAULTS - Static variable in class org.mockito.Mockito
Default ReturnValues used by the framework.
RETURNS_SMART_NULLS - Static variable in class org.mockito.Mockito
Optional ReturnValues to be used with Mockito.mock(Class, ReturnValues)
returnsNull() - Method in class org.mockito.internal.stubbing.Returns
 
returnsPrimitive() - Method in class org.mockito.internal.invocation.Invocation
 
returnString() - Method in class org.mockito.internal.progress.HandyReturnValues
 
ReturnValues - Interface in org.mockito
Configures return values for an unstubbed invocation
returnZero() - Method in class org.mockito.internal.progress.HandyReturnValues
 
run(RunNotifier) - Method in class org.mockito.internal.experimental.VerboseMockitoJUnitRunner
 
run(RunNotifier, VerboseMockitoJUnitRunner.JunitTestBody) - Method in class org.mockito.internal.experimental.VerboseMockitoJUnitRunner
 

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.jmock
Thanks to jMock guys for this ClassLoader.
SearchingClassLoader(ClassLoader, ClassLoader) - Constructor for class org.mockito.internal.creation.jmock.SearchingClassLoader
 
SequenceNumber - Class in org.mockito.internal.progress
 
SequenceNumber() - Constructor for class org.mockito.internal.progress.SequenceNumber
 
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
 
setMockitoNamingPolicy(MethodProxy) - Method in class org.mockito.internal.creation.cglib.CGLIBHacker
 
setReturnValues(ReturnValues) - Method in class org.mockito.internal.configuration.Configuration
Deprecated.  
setReturnValues(ReturnValues) - Method in interface org.mockito.internal.configuration.MockitoConfiguration
Deprecated. 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.
SmartNullPointerException - Exception in org.mockito.exceptions.verification
 
SmartNullPointerException(String, Throwable) - Constructor for exception org.mockito.exceptions.verification.SmartNullPointerException
 
SmartNullPointerException(String) - Constructor for exception org.mockito.exceptions.verification.SmartNullPointerException
 
SmartNullReturnValues - Class in org.mockito.internal.returnvalues
Optional ReturnValues to be used with Mockito.mock(Class, ReturnValues)
SmartNullReturnValues() - Constructor for class org.mockito.internal.returnvalues.SmartNullReturnValues
 
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.
StringJoiner - Class in org.mockito.internal.util
 
StringJoiner() - Constructor for class org.mockito.internal.util.StringJoiner
 
stub(T) - Static method in class org.mockito.Mockito
Deprecated. 
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(Invocation) - Method in interface org.mockito.internal.progress.MockingProgress
 
stubbingCompleted(Invocation) - Method in class org.mockito.internal.progress.MockingProgressImpl
 
stubbingCompleted(Invocation) - 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

thenAnswer(Answer<?>) - Method in interface org.mockito.internal.progress.NewOngoingStubbing
Sets a generic Answer for the method.
thenReturn(T) - Method in interface org.mockito.internal.progress.NewOngoingStubbing
Sets a return value to be returned when the method is called.
thenReturn(T, T...) - Method in interface org.mockito.internal.progress.NewOngoingStubbing
Sets consecutive return values to be returned when the method is called.
thenThrow(Throwable...) - Method in interface org.mockito.internal.progress.NewOngoingStubbing
Sets Throwable objects to be thrown when the method is called.
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 - Class in org.mockito.internal.verification
 
Times(int) - Constructor for class org.mockito.internal.verification.Times
 
times(int) - Static method in class org.mockito.internal.verification.VerificationModeFactory
 
times(int) - Static method in class org.mockito.Mockito
Allows verifying exact number of invocations.
toAnswer(Answer<?>) - Method in interface org.mockito.internal.progress.DeprecatedOngoingStubbing
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
 
tooLittleActualInvocationsInAtLeastMode(int, int, PrintableInvocation, HasStackTrace) - Method in class org.mockito.exceptions.Reporter
 
tooLittleActualInvocationsInOrder(int, int, PrintableInvocation, HasStackTrace) - Method in class org.mockito.exceptions.Reporter
 
tooLittleActualInvocationsInOrderInAtLeastMode(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
 
tooManyActualInvocationsInOrder(int, int, PrintableInvocation, HasStackTrace) - Method in class org.mockito.exceptions.Reporter
 
toReturn(T) - Method in interface org.mockito.internal.progress.DeprecatedOngoingStubbing
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.stubbing.MockitoStubber
 
toString() - Method in class org.mockito.internal.stubbing.StubbedInvocationMatcher
 
toString() - Method in class org.mockito.internal.util.MockName
 
toString() - Method in class org.mockito.internal.verification.AtLeast
 
toString() - Method in class org.mockito.internal.verification.Times
 
toThrow(Throwable) - Method in interface org.mockito.internal.progress.DeprecatedOngoingStubbing
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() - Static method in class org.mockito.internal.configuration.GlobalConfiguration
 
validate(Answer<?>, Invocation) - Method in class org.mockito.internal.stubbing.AnswersValidator
 
validateState() - Method in interface org.mockito.internal.progress.ArgumentMatcherStorage
 
validateState() - Method in class org.mockito.internal.progress.ArgumentMatcherStorageImpl
 
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 class org.mockito.internal.returnvalues.EmptyReturnValues
 
valueFor(InvocationOnMock) - Method in class org.mockito.internal.returnvalues.GloballyConfiguredReturnValues
 
valueFor(InvocationOnMock) - Method in class org.mockito.internal.returnvalues.MoreEmptyReturnValues
 
valueFor(InvocationOnMock) - Method in class org.mockito.internal.returnvalues.SmartNullReturnValues
 
valueFor(InvocationOnMock) - Method in interface org.mockito.ReturnValues
return value for an unstubbed invocation
VerboseMockitoJUnitRunner - Class in org.mockito.internal.experimental
Uses JUnit 4.5 runner BlockJUnit4ClassRunner.
VerboseMockitoJUnitRunner(Class<?>) - Constructor for class org.mockito.internal.experimental.VerboseMockitoJUnitRunner
 
VerboseMockitoJUnitRunner(Class<?>, MockitoLogger) - Constructor for class org.mockito.internal.experimental.VerboseMockitoJUnitRunner
 
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
 
VerificationData - Interface in org.mockito.internal.verification.api
 
VerificationDataImpl - Class in org.mockito.internal.verification
 
VerificationDataImpl(List<Invocation>, InvocationMatcher) - Constructor for class org.mockito.internal.verification.VerificationDataImpl
 
VerificationInOrderMode - Interface in org.mockito.internal.verification.api
 
VerificationMode - Interface in org.mockito.internal.verification.api
Allows verifying that certain behavior happened at least once / exact number of times / never.
VerificationModeFactory - Class in org.mockito.internal.verification
 
VerificationModeFactory() - Constructor for class org.mockito.internal.verification.VerificationModeFactory
 
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
 
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(VerificationData) - Method in interface org.mockito.internal.verification.api.VerificationMode
 
verify(VerificationData) - Method in class org.mockito.internal.verification.AtLeast
 
verify(VerificationData) - Method in class org.mockito.internal.verification.AtMost
 
verify(VerificationData) - Method in class org.mockito.internal.verification.InOrderWrapper
 
verify(VerificationData) - Method in class org.mockito.internal.verification.NoMoreInteractions
 
verify(VerificationData) - Method in class org.mockito.internal.verification.Times
 
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.
verifyInOrder(VerificationData) - Method in interface org.mockito.internal.verification.api.VerificationInOrderMode
 
verifyInOrder(VerificationData) - Method in class org.mockito.internal.verification.AtLeast
 
verifyInOrder(VerificationData) - Method in class org.mockito.internal.verification.Times
 
verifyNoMoreInteractions() - Method in class org.mockito.internal.MockHandler
 
verifyNoMoreInteractions(Object...) - Static method in class org.mockito.Mockito
Checks 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
 
wantedAtMostX(int, int) - Method in class org.mockito.exceptions.Reporter
 
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
 
WarningsPrinter - Class in org.mockito.internal.debugging
 
WarningsPrinter(List<Invocation>, List<InvocationMatcher>) - Constructor for class org.mockito.internal.debugging.WarningsPrinter
 
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
 
when(T) - Static method in class org.mockito.Mockito
Enables stubbing methods.
withBefores(FrameworkMethod, Object, Statement) - Method in class org.mockito.runners.MockitoJUnitRunner
 
WrongTypeOfReturnValue - Exception in org.mockito.exceptions.misusing
 
WrongTypeOfReturnValue(String) - Constructor for exception org.mockito.exceptions.misusing.WrongTypeOfReturnValue
 
wrongTypeOfReturnValue(String, String, String) - Method in class org.mockito.exceptions.Reporter
 

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