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

A

AbstractAwareMethod - Interface in org.mockito.internal.invocation
 
AbstractThrowsException - Class in org.mockito.internal.stubbing.answers
 
AbstractThrowsException() - Constructor for class org.mockito.internal.stubbing.answers.AbstractThrowsException
 
accessor - Variable in class org.mockito.internal.configuration.injection.SpyOnInjectedFieldsHandler
 
accessor - Variable in class org.mockito.internal.util.reflection.FieldReader
 
accessor - Variable in class org.mockito.internal.util.reflection.LenientCopyTool
 
acquireFieldInstance() - Method in class org.mockito.internal.util.reflection.FieldInitializer
 
ACROSS_CLASSLOADERS - org.mockito.mock.SerializableMode
Useful if the mock is deserialized in a different classloader / vm.
actualCount - Variable in class org.mockito.internal.reporting.Discrepancy
 
actualParameterizedType(Object) - Method in class org.mockito.internal.stubbing.defaultanswers.ReturnsDeepStubs
 
actualParameterizedType(Object) - Method in class org.mockito.internal.stubbing.defaultanswers.ReturnsDeepStubs.ReturnsDeepStubsSerializationFallback
 
actuals - Variable in class org.mockito.internal.reporting.SmartPrinter
 
actualTypeArguments() - Method in class org.mockito.internal.util.reflection.GenericMetadataSupport
 
add(Object) - Method in class org.mockito.internal.util.collections.HashCodeAndEqualsSafeSet
 
add(Object) - Method in class org.mockito.internal.util.collections.IdentitySet
 
add(Invocation) - Method in class org.mockito.internal.verification.DefaultRegisteredInvocations
 
add(Invocation) - Method in interface org.mockito.internal.verification.RegisteredInvocations
 
add(Invocation) - Method in class org.mockito.internal.verification.SingleRegisteredInvocation
 
add(Invocation, Invocation) - Method in class org.mockito.internal.junit.StubbingArgMismatches
 
add(V) - Method in class org.mockito.internal.util.concurrent.WeakConcurrentSet
 
addAll(Collection<?>) - Method in class org.mockito.internal.util.collections.HashCodeAndEqualsSafeSet
 
addAnswer(Answer) - Method in class org.mockito.internal.stubbing.StubbedInvocationMatcher
 
addAnswer(Answer, boolean, Strictness) - Method in class org.mockito.internal.stubbing.InvocationContainerImpl
Adds new stubbed answer and returns the invocation matcher the answer was added to.
addAnswer(Answer, Strictness) - Method in class org.mockito.internal.stubbing.InvocationContainerImpl
 
addConsecutiveAnswer(Answer) - Method in class org.mockito.internal.stubbing.InvocationContainerImpl
 
addExports - Variable in class org.mockito.internal.creation.bytebuddy.ModuleHandler.ModuleSystemFound
 
addInterfaces(Set<Class<?>>, Class<?>[]) - Method in class org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator
 
AdditionalAnswers - Class in org.mockito
Additional answers provides factory methods for answers.
AdditionalAnswers() - Constructor for class org.mockito.AdditionalAnswers
 
AdditionalMatchers - Class in org.mockito
See Matchers for general info about matchers.
AdditionalMatchers() - Constructor for class org.mockito.AdditionalMatchers
 
addListener(MockitoListener) - Method in class org.mockito.internal.framework.DefaultMockitoFramework
 
addListener(MockitoListener) - Method in interface org.mockito.internal.progress.MockingProgress
 
addListener(MockitoListener) - Method in class org.mockito.internal.progress.MockingProgressImpl
 
addListener(MockitoListener) - Method in interface org.mockito.MockitoFramework
Adds listener to Mockito.
addListener(MockitoListener, Set<MockitoListener>) - Static method in class org.mockito.internal.progress.MockingProgressImpl
 
addListeners(T[], List<T>, String) - Static method in class org.mockito.internal.creation.MockSettingsImpl
 
addOpens - Variable in class org.mockito.internal.creation.bytebuddy.ModuleHandler.ModuleSystemFound
 
addOrderedList(List<String>, List<String>) - Method in class org.mockito.internal.debugging.LoggingListener
 
addPreparedMocks(Set<Object>) - Method in class org.mockito.internal.configuration.injection.scanner.MockScanner
Add the scanned and prepared mock instance to the given collection.
addReads - Variable in class org.mockito.internal.creation.bytebuddy.ModuleHandler.ModuleSystemFound
 
addTo(Set<Field>) - Method in class org.mockito.internal.configuration.injection.scanner.InjectMocksScanner
Add the fields annotated by @InjectMocks
adjustModuleGraph(Class<?>, Class<?>, boolean, boolean) - Method in class org.mockito.internal.creation.bytebuddy.ModuleHandler
 
adjustModuleGraph(Class<?>, Class<?>, boolean, boolean) - Method in class org.mockito.internal.creation.bytebuddy.ModuleHandler.ModuleSystemFound
 
adjustModuleGraph(Class<?>, Class<?>, boolean, boolean) - Method in class org.mockito.internal.creation.bytebuddy.ModuleHandler.NoModuleSystemFound
 
after(long) - Static method in class org.mockito.Mockito
Verification will be triggered after given amount of millis, allowing testing of async code.
After - Class in org.mockito.verification
See the javadoc for VerificationAfterDelay
After(long, long, VerificationMode) - Constructor for class org.mockito.verification.After
 
After(long, VerificationMode) - Constructor for class org.mockito.verification.After
See the javadoc for VerificationAfterDelay
After(VerificationOverTimeImpl) - Constructor for class org.mockito.verification.After
 
alias - Variable in class org.mockito.internal.configuration.plugins.PluginInitializer
 
all - Variable in class org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.InlineConstructionMockControl
 
allDeclaredFieldsOf(Object) - Static method in class org.mockito.internal.util.reflection.Fields
Instance fields declared in the class and superclasses of the given instance.
allInvocations - Variable in class org.mockito.internal.verification.api.VerificationDataInOrderImpl
 
AllInvocationsFinder - Class in org.mockito.internal.invocation.finder
 
AllInvocationsFinder() - Constructor for class org.mockito.internal.invocation.finder.AllInvocationsFinder
 
allStubbings - Variable in class org.mockito.internal.listeners.StubbingLookupNotifier.Event
 
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(ArgumentMatcher<?>, ArgumentMatcher<?>) - Constructor for class org.mockito.internal.matchers.And
 
annotateClass(Class<?>) - Method in class org.mockito.internal.creation.bytebuddy.ByteBuddyCrossClassLoaderSerializationSupport.MockitoMockObjectOutputStream
Annotates (marks) the class if this class is a Mockito mock.
annotatedBy(Class<? extends Annotation>...) - Static method in class org.mockito.internal.util.reflection.Fields
Accept fields annotated by the given annotations.
annotation(Class<A>) - Method in class org.mockito.internal.util.reflection.InstanceField
Returns the annotation instance for the given annotation type.
annotationEngine - Variable in class org.mockito.internal.configuration.plugins.PluginRegistry
 
AnnotationEngine - Interface in org.mockito.configuration
Deprecated.
Please use AnnotationEngine instead, this interface will probably be removed in mockito 4.
AnnotationEngine - Interface in org.mockito.plugins
Configures test via annotations.
AnnotationEngine.NoAction - Class in org.mockito.plugins
 
annotationProcessorMap - Variable in class org.mockito.internal.configuration.IndependentAnnotationEngine
 
anotherCandidateMatchesMockName(Collection<Object>, Field, List<Field>) - Method in class org.mockito.internal.configuration.injection.filter.NameBasedCandidateFilter
 
answer - Variable in class org.mockito.internal.stubbing.answers.AnswersWithDelay
 
answer() - Method in annotation type org.mockito.Mock
Mock will have custom answer, see MockSettings.defaultAnswer(Answer).
answer(A0) - Method in interface org.mockito.stubbing.Answer1
 
answer(A0) - Method in interface org.mockito.stubbing.VoidAnswer1
 
answer(A0, A1) - Method in interface org.mockito.stubbing.Answer2
 
answer(A0, A1) - Method in interface org.mockito.stubbing.VoidAnswer2
 
answer(A0, A1, A2) - Method in interface org.mockito.stubbing.Answer3
 
answer(A0, A1, A2) - Method in interface org.mockito.stubbing.VoidAnswer3
 
answer(A0, A1, A2, A3) - Method in interface org.mockito.stubbing.Answer4
 
answer(A0, A1, A2, A3) - Method in interface org.mockito.stubbing.VoidAnswer4
 
answer(A0, A1, A2, A3, A4) - Method in interface org.mockito.stubbing.Answer5
 
answer(A0, A1, A2, A3, A4) - Method in interface org.mockito.stubbing.VoidAnswer5
 
answer(A0, A1, A2, A3, A4, A5) - Method in interface org.mockito.stubbing.Answer6
 
answer(A0, A1, A2, A3, A4, A5) - Method in interface org.mockito.stubbing.VoidAnswer6
 
answer(InvocationOnMock) - Method in enum org.mockito.Answers
 
answer(InvocationOnMock) - Method in class org.mockito.internal.stubbing.answers.AbstractThrowsException
 
answer(InvocationOnMock) - Method in class org.mockito.internal.stubbing.answers.AnswersWithDelay
 
answer(InvocationOnMock) - Method in class org.mockito.internal.stubbing.answers.CallsRealMethods
 
answer(InvocationOnMock) - Method in class org.mockito.internal.stubbing.answers.ClonesArguments
 
answer(InvocationOnMock) - Method in class org.mockito.internal.stubbing.answers.DoesNothing
 
answer(InvocationOnMock) - Method in class org.mockito.internal.stubbing.answers.Returns
 
answer(InvocationOnMock) - Method in class org.mockito.internal.stubbing.answers.ReturnsArgumentAt
 
answer(InvocationOnMock) - Method in class org.mockito.internal.stubbing.answers.ReturnsElementsOf
 
answer(InvocationOnMock) - Method in class org.mockito.internal.stubbing.defaultanswers.ForwardsInvocations
 
answer(InvocationOnMock) - Method in class org.mockito.internal.stubbing.defaultanswers.GloballyConfiguredAnswer
 
answer(InvocationOnMock) - Method in class org.mockito.internal.stubbing.defaultanswers.ReturnsDeepStubs
 
answer(InvocationOnMock) - Method in class org.mockito.internal.stubbing.defaultanswers.ReturnsDeepStubs.DeeplyStubbedAnswer
 
answer(InvocationOnMock) - Method in class org.mockito.internal.stubbing.defaultanswers.ReturnsEmptyValues
 
answer(InvocationOnMock) - Method in class org.mockito.internal.stubbing.defaultanswers.ReturnsMocks
 
answer(InvocationOnMock) - Method in class org.mockito.internal.stubbing.defaultanswers.ReturnsMoreEmptyValues
 
answer(InvocationOnMock) - Method in class org.mockito.internal.stubbing.defaultanswers.ReturnsSmartNulls
 
answer(InvocationOnMock) - Method in class org.mockito.internal.stubbing.defaultanswers.ReturnsSmartNulls.ThrowsSmartNullPointer
 
answer(InvocationOnMock) - Method in class org.mockito.internal.stubbing.defaultanswers.TriesToReturnSelf
 
answer(InvocationOnMock) - Method in class org.mockito.internal.stubbing.StubbedInvocationMatcher
 
answer(InvocationOnMock) - Method in interface org.mockito.stubbing.Answer
 
answer(Answer1<T, A>) - Static method in class org.mockito.AdditionalAnswers
Creates an answer from a functional interface - allows for a strongly typed answer to be created ideally in Java 8
answer(Answer2<T, A, B>) - Static method in class org.mockito.AdditionalAnswers
Creates an answer from a functional interface - allows for a strongly typed answer to be created ideally in Java 8
answer(Answer3<T, A, B, C>) - Static method in class org.mockito.AdditionalAnswers
Creates an answer from a functional interface - allows for a strongly typed answer to be created ideally in Java 8
answer(Answer4<T, A, B, C, D>) - Static method in class org.mockito.AdditionalAnswers
Creates an answer from a functional interface - allows for a strongly typed answer to be created ideally in Java 8
answer(Answer5<T, A, B, C, D, E>) - Static method in class org.mockito.AdditionalAnswers
Creates an answer from a functional interface - allows for a strongly typed answer to be created ideally in Java 8
answer(Answer6<T, A, B, C, D, E, F>) - Static method in class org.mockito.AdditionalAnswers
Creates an answer from a functional interface - allows for a strongly typed answer to be created idiomatically in Java 8
Answer<T> - Interface in org.mockito.stubbing
Generic interface to be used for configuring mock's answer.
Answer1<T,​A0> - Interface in org.mockito.stubbing
Generic interface to be used for configuring mock's answer for a single argument invocation.
Answer2<T,​A0,​A1> - Interface in org.mockito.stubbing
Generic interface to be used for configuring mock's answer for a two argument invocation.
Answer3<T,​A0,​A1,​A2> - Interface in org.mockito.stubbing
Generic interface to be used for configuring mock's answer for a three argument invocation.
Answer4<T,​A0,​A1,​A2,​A3> - Interface in org.mockito.stubbing
Generic interface to be used for configuring mock's answer for a four argument invocation.
Answer5<T,​A0,​A1,​A2,​A3,​A4> - Interface in org.mockito.stubbing
Generic interface to be used for configuring mock's answer for a five argument invocation.
Answer6<T,​A0,​A1,​A2,​A3,​A4,​A5> - Interface in org.mockito.stubbing
Generic interface to be used for configuring mock's answer for a six argument invocation.
AnswerFunctionalInterfaces - Class in org.mockito.internal.stubbing.answers
Functional interfaces to make it easy to implement answers in Java 8
AnswerFunctionalInterfaces() - Constructor for class org.mockito.internal.stubbing.answers.AnswerFunctionalInterfaces
Hide constructor to avoid instantiation of class with only static methods
answers - Variable in class org.mockito.internal.stubbing.DoAnswerStyleStubbing
 
answers - Variable in class org.mockito.internal.stubbing.StubbedInvocationMatcher
 
answers - Variable in class org.mockito.internal.stubbing.StubberImpl
 
Answers - Enum in org.mockito
Enumeration of pre-configured mock answers
Answers(Answer<Object>) - Constructor for enum org.mockito.Answers
 
answersWithDelay(long, Answer<T>) - Static method in class org.mockito.AdditionalAnswers
Returns an answer after a delay with a defined length.
AnswersWithDelay - Class in org.mockito.internal.stubbing.answers
Returns as the provided answer would return, after delaying the specified amount.
AnswersWithDelay(long, Answer<Object>) - Constructor for class org.mockito.internal.stubbing.answers.AnswersWithDelay
 
answerTo(Invocation) - Method in class org.mockito.internal.stubbing.InvocationContainerImpl
 
answerVoid(VoidAnswer1<A>) - Static method in class org.mockito.AdditionalAnswers
Creates an answer from a functional interface - allows for a strongly typed answer to be created ideally in Java 8
answerVoid(VoidAnswer2<A, B>) - Static method in class org.mockito.AdditionalAnswers
Creates an answer from a functional interface - allows for a strongly typed answer to be created ideally in Java 8
answerVoid(VoidAnswer3<A, B, C>) - Static method in class org.mockito.AdditionalAnswers
Creates an answer from a functional interface - allows for a strongly typed answer to be created ideally in Java 8
answerVoid(VoidAnswer4<A, B, C, D>) - Static method in class org.mockito.AdditionalAnswers
Creates an answer from a functional interface - allows for a strongly typed answer to be created ideally in Java 8
answerVoid(VoidAnswer5<A, B, C, D, E>) - Static method in class org.mockito.AdditionalAnswers
Creates an answer from a functional interface - allows for a strongly typed answer to be created ideally in Java 8
answerVoid(VoidAnswer6<A, B, C, D, E, F>) - Static method in class org.mockito.AdditionalAnswers
Creates an answer from a functional interface - allows for a strongly typed answer to be created idiomatically in Java 8
any() - Static method in class org.mockito.ArgumentMatchers
Matches anything, including nulls and varargs.
any(Class<T>) - Static method in class org.mockito.ArgumentMatchers
Matches any object of given type, excluding nulls.
Any - Class in org.mockito.internal.matchers
 
Any() - Constructor for class org.mockito.internal.matchers.Any
 
ANY - Static variable in class org.mockito.internal.matchers.Any
 
anyBoolean() - Static method in class org.mockito.ArgumentMatchers
Any boolean or non-null Boolean
anyByte() - Static method in class org.mockito.ArgumentMatchers
Any byte or non-null Byte.
anyChar() - Static method in class org.mockito.ArgumentMatchers
Any char or non-null Character.
anyCollection() - Static method in class org.mockito.ArgumentMatchers
Any non-null Collection.
anyCollectionOf(Class<T>) - Static method in class org.mockito.ArgumentMatchers
Deprecated.
With Java 8 this method will be removed in Mockito 4.0. This method is only used for generic friendliness to avoid casting, this is not anymore needed in Java 8.
anyDouble() - Static method in class org.mockito.ArgumentMatchers
Any double or non-null Double.
anyFloat() - Static method in class org.mockito.ArgumentMatchers
Any float or non-null Float.
anyInt() - Static method in class org.mockito.ArgumentMatchers
Any int or non-null Integer.
anyIterable() - Static method in class org.mockito.ArgumentMatchers
Any non-null Iterable.
anyIterableOf(Class<T>) - Static method in class org.mockito.ArgumentMatchers
Deprecated.
With Java 8 this method will be removed in Mockito 4.0. This method is only used for generic friendliness to avoid casting, this is not anymore needed in Java 8.
anyList() - Static method in class org.mockito.ArgumentMatchers
Any non-null List.
anyListOf(Class<T>) - Static method in class org.mockito.ArgumentMatchers
Deprecated.
With Java 8 this method will be removed in Mockito 4.0. This method is only used for generic friendliness to avoid casting, this is not anymore needed in Java 8.
anyLong() - Static method in class org.mockito.ArgumentMatchers
Any long or non-null Long.
anyMap() - Static method in class org.mockito.ArgumentMatchers
Any non-null Map.
anyMapOf(Class<K>, Class<V>) - Static method in class org.mockito.ArgumentMatchers
Deprecated.
With Java 8 this method will be removed in Mockito 4.0. This method is only used for generic friendliness to avoid casting, this is not anymore needed in Java 8.
anyObject() - Static method in class org.mockito.ArgumentMatchers
Deprecated.
This will be removed in Mockito 4.0 This method is only used for generic friendliness to avoid casting, this is not anymore needed in Java 8.
anySet() - Static method in class org.mockito.ArgumentMatchers
Any non-null Set.
anySetOf(Class<T>) - Static method in class org.mockito.ArgumentMatchers
Deprecated.
With Java 8 this method will be removed in Mockito 4.0. This method is only used for generic friendliness to avoid casting, this is not anymore needed in Java 8.
anyShort() - Static method in class org.mockito.ArgumentMatchers
Any short or non-null Short.
anyString() - Static method in class org.mockito.ArgumentMatchers
Any non-null String
anyVararg() - Static method in class org.mockito.ArgumentMatchers
Deprecated.
as of 2.1.0 use ArgumentMatchers.any()
append(boolean[], boolean[]) - Method in class org.mockito.internal.matchers.apachecommons.EqualsBuilder
Deep comparison of array of boolean.
append(boolean, boolean) - Method in class org.mockito.internal.matchers.apachecommons.EqualsBuilder
Test if two booleanss are equal.
append(byte[], byte[]) - Method in class org.mockito.internal.matchers.apachecommons.EqualsBuilder
Deep comparison of array of byte.
append(byte, byte) - Method in class org.mockito.internal.matchers.apachecommons.EqualsBuilder
Test if two bytes are equal.
append(char[], char[]) - Method in class org.mockito.internal.matchers.apachecommons.EqualsBuilder
Deep comparison of array of char.
append(char, char) - Method in class org.mockito.internal.matchers.apachecommons.EqualsBuilder
Test if two chars are equal.
append(double[], double[]) - Method in class org.mockito.internal.matchers.apachecommons.EqualsBuilder
Deep comparison of array of double.
append(double, double) - Method in class org.mockito.internal.matchers.apachecommons.EqualsBuilder
Test if two doubles are equal by testing that the pattern of bits returned by doubleToLong are equal.
append(float[], float[]) - Method in class org.mockito.internal.matchers.apachecommons.EqualsBuilder
Deep comparison of array of float.
append(float, float) - Method in class org.mockito.internal.matchers.apachecommons.EqualsBuilder
Test if two floats are equal byt testing that the pattern of bits returned by doubleToLong are equal.
append(int[], int[]) - Method in class org.mockito.internal.matchers.apachecommons.EqualsBuilder
Deep comparison of array of int.
append(int, int) - Method in class org.mockito.internal.matchers.apachecommons.EqualsBuilder
Test if two ints are equal.
append(long[], long[]) - Method in class org.mockito.internal.matchers.apachecommons.EqualsBuilder
Deep comparison of array of long.
append(long, long) - Method in class org.mockito.internal.matchers.apachecommons.EqualsBuilder
Test if two long s are equal.
append(short[], short[]) - Method in class org.mockito.internal.matchers.apachecommons.EqualsBuilder
Deep comparison of array of short.
append(short, short) - Method in class org.mockito.internal.matchers.apachecommons.EqualsBuilder
Test if two shorts are equal.
append(Object[], Object[]) - Method in class org.mockito.internal.matchers.apachecommons.EqualsBuilder
Performs a deep comparison of two Object arrays.
append(Object, Object) - Method in class org.mockito.internal.matchers.apachecommons.EqualsBuilder
Test if two Objects are equal using their equals method.
append(String) - Method in class org.mockito.internal.junit.VerificationCollectorImpl
 
appendArray(Object[]) - Method in class org.mockito.internal.matchers.ArrayEquals
 
appendLastMatcherNTimes(List<ArgumentMatcher<?>>, int) - Static method in class org.mockito.internal.invocation.MatcherApplicationStrategy
 
appendLine(Object...) - Method in class org.mockito.internal.junit.StubbingHint
 
appendSuper(boolean) - Method in class org.mockito.internal.matchers.apachecommons.EqualsBuilder
Adds the result of super.equals() to this builder.
appendWarnings(Failure, String) - Method in class org.mockito.internal.junit.util.JUnitFailureHacker
Deprecated.
 
apply() - Method in class org.mockito.internal.configuration.injection.MockInjection.OngoingMockInjection
 
apply() - Method in interface org.mockito.MockedStatic.Verification
 
apply(Class<?>) - Method in interface org.mockito.internal.stubbing.defaultanswers.RetrieveGenericsForDefaultAnswers.AnswerCallback
 
apply(Class<?>, Object, Object[], String[]) - Method in interface org.mockito.internal.creation.bytebuddy.ConstructionCallback
 
apply(Statement, Description) - Method in class org.mockito.internal.junit.JUnitTestRule
 
apply(Statement, Description) - Method in class org.mockito.internal.junit.VerificationCollectorImpl
 
apply(Statement, FrameworkMethod, Object) - Method in class org.mockito.internal.junit.JUnitRule
 
apply(ArgumentMatcher<?>, Object) - Method in interface org.mockito.internal.invocation.ArgumentMatcherAction
Implementations must apply the given matcher to the argument and return true if the operation was successful or false if not.
apply(ArgumentMatcher, Object) - Method in class org.mockito.internal.invocation.TypeSafeMatching
 
applyPrintSettings(List<ArgumentMatcher>, PrintSettings) - Method in class org.mockito.internal.matchers.text.MatchersPrinter
 
approximateSize() - Method in class org.mockito.internal.util.concurrent.WeakConcurrentMap
Returns the approximate size of this map where the returned number is at least as big as the actual number of entries.
approximateSize() - Method in class org.mockito.internal.util.concurrent.WeakConcurrentMap.WithInlinedExpunction
 
approximateSize() - Method in class org.mockito.internal.util.concurrent.WeakConcurrentSet
Returns the approximate size of this set where the returned number is at least as big as the actual number of entries.
areArrayElementsEqual(Object, Object) - Static method in class org.mockito.internal.matchers.Equality
 
areArrayLengthsEqual(Object, Object) - Static method in class org.mockito.internal.matchers.Equality
 
areArraysEqual(Object, Object) - Static method in class org.mockito.internal.matchers.Equality
 
areEqual(Object, Object) - Static method in class org.mockito.internal.matchers.Equality
 
areSameMocks(Object, Object) - Static method in class org.mockito.internal.util.MockUtil
 
ArgMismatchFinder - Class in org.mockito.internal.junit
For given mocks, finds stubbing arg mismatches
ArgMismatchFinder() - Constructor for class org.mockito.internal.junit.ArgMismatchFinder
 
argMismatchStubs - Variable in class org.mockito.internal.debugging.LoggingListener
 
argResolver - Variable in class org.mockito.internal.util.reflection.FieldInitializer.ParameterizedConstructorInstantiator
 
args - Variable in class org.mockito.internal.creation.proxy.ProxyMockMaker.RealDefaultMethod
 
argThat(Matcher<T>) - Static method in class org.mockito.hamcrest.MockitoHamcrest
Allows matching arguments with hamcrest matchers.
argThat(ArgumentMatcher<T>) - Static method in class org.mockito.ArgumentMatchers
Allows creating custom argument matchers.
ArgumentCaptor<T> - Class in org.mockito
Use it to capture argument values for further assertions.
ArgumentCaptor(Class<? extends T>) - Constructor for class org.mockito.ArgumentCaptor
 
ArgumentMatcher<T> - Interface in org.mockito
Allows creating customized argument matchers.
ArgumentMatcherAction - Interface in org.mockito.internal.invocation
 
ArgumentMatchers - Class in org.mockito
Allow flexible verification or stubbing.
ArgumentMatchers() - Constructor for class org.mockito.ArgumentMatchers
 
argumentMatcherStorage - Variable in class org.mockito.internal.progress.MockingProgressImpl
 
ArgumentMatcherStorage - Interface in org.mockito.internal.progress
 
ArgumentMatcherStorageImpl - Class in org.mockito.internal.progress
 
ArgumentMatcherStorageImpl() - Constructor for class org.mockito.internal.progress.ArgumentMatcherStorageImpl
 
ArgumentMatchingTool - Class in org.mockito.internal.verification.argumentmatching
 
ArgumentMatchingTool() - Constructor for class org.mockito.internal.verification.argumentmatching.ArgumentMatchingTool
 
arguments - Variable in class org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.InlineConstructionMockContext
 
arguments - Variable in class org.mockito.internal.creation.bytebuddy.MockMethodAdvice.RealMethodCall
 
arguments - Variable in class org.mockito.internal.creation.bytebuddy.MockMethodAdvice.SerializableRealMethodCall
 
arguments - Variable in class org.mockito.internal.creation.bytebuddy.MockMethodAdvice.StaticMethodCall
 
arguments - Variable in class org.mockito.internal.invocation.InterceptedInvocation
 
arguments - Variable in class org.mockito.internal.matchers.CapturingMatcher
 
arguments() - Method in class org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.InlineConstructionMockContext
 
arguments() - Method in interface org.mockito.MockedConstruction.Context
 
argumentsAreDifferent(String, List<String>, List<Location>) - Static method in class org.mockito.internal.exceptions.Reporter
 
ArgumentsAreDifferent - Error in org.mockito.exceptions.verification
 
ArgumentsAreDifferent - Error in org.mockito.exceptions.verification.junit
 
ArgumentsAreDifferent - Error in org.mockito.exceptions.verification.opentest4j
 
ArgumentsAreDifferent(String) - Constructor for error org.mockito.exceptions.verification.ArgumentsAreDifferent
 
ArgumentsAreDifferent(String, String, String) - Constructor for error org.mockito.exceptions.verification.ArgumentsAreDifferent
Three-arg constructor for compatibility with ExceptionFactory's three-arg create method.
ArgumentsAreDifferent(String, String, String) - Constructor for error org.mockito.exceptions.verification.junit.ArgumentsAreDifferent
 
ArgumentsAreDifferent(String, String, String) - Constructor for error org.mockito.exceptions.verification.opentest4j.ArgumentsAreDifferent
 
argumentsMatch(Invocation) - Method in class org.mockito.internal.invocation.InvocationMatcher
 
ArgumentsProcessor - Class in org.mockito.internal.invocation
by Szczepan Faber, created at: 3/31/12
ArgumentsProcessor() - Constructor for class org.mockito.internal.invocation.ArgumentsProcessor
 
argumentsToMatchers(Object[]) - Static method in class org.mockito.internal.invocation.ArgumentsProcessor
 
arity - Variable in class org.mockito.internal.util.reflection.GenericMetadataSupport.GenericArrayReturnType
 
ArrayEquals - Class in org.mockito.internal.matchers
 
ArrayEquals(Object) - Constructor for class org.mockito.internal.matchers.ArrayEquals
 
aryEq(boolean[]) - Static method in class org.mockito.AdditionalMatchers
boolean 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(char[]) - Static method in class org.mockito.AdditionalMatchers
char 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(float[]) - Static method in class org.mockito.AdditionalMatchers
float 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(long[]) - Static method in class org.mockito.AdditionalMatchers
long 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(T[]) - Static method in class org.mockito.AdditionalMatchers
Object array argument that is equal to the given array, i.e.
assertCompatibleTypes(Object, MockCreationSettings) - Static method in class org.mockito.internal.listeners.VerificationStartedNotifier
 
assertGoodMock() - Method in class org.mockito.internal.util.DefaultMockingDetails
 
assertLazily() - Method in class org.mockito.internal.junit.VerificationCollectorImpl
 
assertLazily() - Method in interface org.mockito.junit.VerificationCollector
Enforce all verifications are performed lazily.
assertMocksNotEmpty(Object[]) - Method in class org.mockito.internal.MockitoCore
 
assertNoAnnotations(Field, Class<? extends Annotation>...) - Static method in class org.mockito.internal.configuration.injection.scanner.InjectMocksScanner
 
assertNoIncompatibleAnnotations(Class<? extends Annotation>, Field, Class<? extends Annotation>...) - Static method in class org.mockito.internal.configuration.SpyAnnotationEngine
 
assertNotClosed() - Method in class org.mockito.internal.MockedConstructionImpl
 
assertNotClosed() - Method in class org.mockito.internal.MockedStaticImpl
 
assertNotStubOnlyMock(Object) - Method in class org.mockito.internal.MockitoCore
 
assertStateFor(String, int) - Method in class org.mockito.internal.progress.ArgumentMatcherStorageImpl
 
assertVisibility(Class<?>) - Static method in class org.mockito.internal.creation.bytebuddy.SubclassBytecodeGenerator
 
assertWantedIsVerifiable() - Method in class org.mockito.internal.verification.VerificationDataImpl
 
assignedValues() - Method in class org.mockito.internal.util.reflection.Fields.InstanceFields
 
assureArguments(AccessibleObject, Object, Class<?>, Object[], Class<?>[]) - Static method in class org.mockito.internal.util.reflection.InstrumentationMemberAccessor
 
assureCanReadMockito(Set<Class<?>>) - Method in class org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator
 
assureInitialization(Class<?>) - Static method in class org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator
 
assureOpen(Object, String) - Method in class org.mockito.internal.util.reflection.InstrumentationMemberAccessor
 
asWrappedMocks(Collection<?>) - Method in class org.mockito.internal.util.collections.HashCodeAndEqualsSafeSet
 
atLeast(int) - Static method in class org.mockito.internal.verification.VerificationModeFactory
 
atLeast(int) - Method in class org.mockito.internal.verification.VerificationWrapper
 
atLeast(int) - Static method in class org.mockito.Mockito
Allows at-least-x verification.
atLeast(int) - Method in interface org.mockito.verification.VerificationAfterDelay
Verifies that there is are least N invocations during the given period.
atLeast(int) - Method in interface org.mockito.verification.VerificationWithTimeout
Allows at-least-x verification within given timeout.
AtLeast - Class in org.mockito.internal.verification
 
AtLeast(int) - Constructor for class org.mockito.internal.verification.AtLeast
 
AtLeastDiscrepancy - Class in org.mockito.internal.verification.checkers
 
AtLeastDiscrepancy(int, int) - Constructor for class org.mockito.internal.verification.checkers.AtLeastDiscrepancy
 
atLeastOnce() - Static method in class org.mockito.internal.verification.VerificationModeFactory
 
atLeastOnce() - Method in class org.mockito.internal.verification.VerificationWrapper
 
atLeastOnce() - Static method in class org.mockito.Mockito
Allows at-least-once verification.
atLeastOnce() - Method in interface org.mockito.verification.VerificationAfterDelay
Verifies that there is at least 1 invocation during the given period.
atLeastOnce() - Method in interface org.mockito.verification.VerificationWithTimeout
Allows at-least-once verification within given timeout.
AtLeastXNumberOfInvocationsChecker - Class in org.mockito.internal.verification.checkers
 
AtLeastXNumberOfInvocationsChecker() - Constructor for class org.mockito.internal.verification.checkers.AtLeastXNumberOfInvocationsChecker
 
atMost(int) - Static method in class org.mockito.internal.verification.VerificationModeFactory
 
atMost(int) - Method in class org.mockito.internal.verification.VerificationWrapper
 
atMost(int) - Static method in class org.mockito.Mockito
Allows at-most-x verification.
atMost(int) - Method in class org.mockito.verification.Timeout
 
atMost(int) - Method in interface org.mockito.verification.VerificationAfterDelay
Verifies that there is are most N invocations during the given period.
AtMost - Class in org.mockito.internal.verification
 
AtMost(int) - Constructor for class org.mockito.internal.verification.AtMost
 
atMostAndNeverShouldNotBeUsedWithTimeout() - Static method in class org.mockito.internal.exceptions.Reporter
 
atMostOnce() - Static method in class org.mockito.internal.verification.VerificationModeFactory
 
atMostOnce() - Method in class org.mockito.internal.verification.VerificationWrapper
 
atMostOnce() - Static method in class org.mockito.Mockito
Allows at-most-once verification.
atMostOnce() - Method in interface org.mockito.verification.VerificationAfterDelay
Verifies that there is most 1 invocation during the given period.
AutoCleanableListener - Interface in org.mockito.internal.listeners
Listener that is automatically cleaned up (removed from the the global list of subscribers).

B

backingHashSet - Variable in class org.mockito.internal.util.collections.HashCodeAndEqualsSafeSet
 
baseAllInvocations - Variable in class org.mockito.internal.debugging.WarningsFinder
 
BaseStubber - Interface in org.mockito.stubbing
Base interface for stubbing consecutive method calls with Mockito.doReturn(Object) syntax.
BaseStubbing<T> - Class in org.mockito.internal.stubbing
 
BaseStubbing(Object) - Constructor for class org.mockito.internal.stubbing.BaseStubbing
 
baseUnusedStubs - Variable in class org.mockito.internal.debugging.WarningsFinder
 
BASIC - org.mockito.mock.SerializableMode
Basic serializable mode for mock objects.
BDDMockito - Class in org.mockito
Behavior Driven Development style of writing tests uses //given //when //then comments as fundamental parts of your test methods.
BDDMockito() - Constructor for class org.mockito.BDDMockito
 
BDDMockito.BDDMyOngoingStubbing<T> - Interface in org.mockito
See original OngoingStubbing
BDDMockito.BDDOngoingStubbingImpl<T> - Class in org.mockito
 
BDDMockito.BDDStubber - Interface in org.mockito
See original Stubber
BDDMockito.BDDStubberImpl - Class in org.mockito
 
BDDMockito.Then<T> - Interface in org.mockito
Provides fluent way of mock verification.
BDDMockito.ThenImpl<T> - Class in org.mockito
 
BDDOngoingStubbingImpl(OngoingStubbing<T>) - Constructor for class org.mockito.BDDMockito.BDDOngoingStubbingImpl
 
BDDStubberImpl(Stubber) - Constructor for class org.mockito.BDDMockito.BDDStubberImpl
 
BeanPropertySetter - Class in org.mockito.internal.util.reflection
This utility class will call the setter of the property to inject a new value.
BeanPropertySetter(Object, Field) - Constructor for class org.mockito.internal.util.reflection.BeanPropertySetter
New BeanPropertySetter that don't report failure
BeanPropertySetter(Object, Field, boolean) - Constructor for class org.mockito.internal.util.reflection.BeanPropertySetter
New BeanPropertySetter
behavior - Variable in class org.mockito.internal.invocation.RealMethod.FromBehavior
 
biggestConstructor(Class<?>) - Method in class org.mockito.internal.util.reflection.FieldInitializer.ParameterizedConstructorInstantiator
 
bindMatchers(ArgumentMatcherStorage, Invocation) - Method in class org.mockito.internal.invocation.MatchersBinder
 
booleanThat(Matcher<Boolean>) - Static method in class org.mockito.hamcrest.MockitoHamcrest
Enables integrating hamcrest matchers that match primitive boolean arguments.
booleanThat(ArgumentMatcher<Boolean>) - Static method in class org.mockito.ArgumentMatchers
Allows creating custom boolean argument matchers.
BOOTSTRAP_LOCK - Static variable in class org.mockito.internal.creation.bytebuddy.TypeCachingBytecodeGenerator
 
boundsOf(TypeVariable<?>) - Method in class org.mockito.internal.util.reflection.GenericMetadataSupport
 
boundsOf(WildcardType) - Method in class org.mockito.internal.util.reflection.GenericMetadataSupport
 
build(Class<T>) - Method in interface org.mockito.MockSettings
Creates immutable view of mock settings used later by Mockito.
build(Class<T2>) - Method in class org.mockito.internal.creation.MockSettingsImpl
 
builder - Variable in class org.mockito.internal.junit.VerificationCollectorImpl
 
buildStatic(Class<T>) - Method in interface org.mockito.MockSettings
Creates immutable view of mock settings used later by Mockito, for use within a static mocking.
buildStatic(Class<T2>) - Method in class org.mockito.internal.creation.MockSettingsImpl
 
byParameterNumber - Variable in class org.mockito.internal.util.reflection.FieldInitializer.ParameterizedConstructorInstantiator
 
byteBuddy - Variable in class org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator
 
byteBuddy - Variable in class org.mockito.internal.creation.bytebuddy.ModuleHandler.ModuleSystemFound
 
byteBuddy - Variable in class org.mockito.internal.creation.bytebuddy.SubclassBytecodeGenerator
 
ByteBuddyCrossClassLoaderSerializationSupport - Class in org.mockito.internal.creation.bytebuddy
This is responsible for serializing a mock, it is enabled if the mock is implementing Serializable.
ByteBuddyCrossClassLoaderSerializationSupport() - Constructor for class org.mockito.internal.creation.bytebuddy.ByteBuddyCrossClassLoaderSerializationSupport
 
ByteBuddyCrossClassLoaderSerializationSupport.CrossClassLoaderSerializableMock - Interface in org.mockito.internal.creation.bytebuddy
Simple interface that hold a correct writeReplace signature that can be seen by an ObjectOutputStream.
ByteBuddyCrossClassLoaderSerializationSupport.CrossClassLoaderSerializationProxy - Class in org.mockito.internal.creation.bytebuddy
This is the serialization proxy that will encapsulate the real mock data as a byte array.
ByteBuddyCrossClassLoaderSerializationSupport.MockitoMockObjectInputStream - Class in org.mockito.internal.creation.bytebuddy
Special Mockito aware ObjectInputStream that will resolve the Mockito proxy class.
ByteBuddyCrossClassLoaderSerializationSupport.MockitoMockObjectOutputStream - Class in org.mockito.internal.creation.bytebuddy
Special Mockito aware ObjectOutputStream.
ByteBuddyMockMaker - Class in org.mockito.internal.creation.bytebuddy
ByteBuddy MockMaker.
ByteBuddyMockMaker() - Constructor for class org.mockito.internal.creation.bytebuddy.ByteBuddyMockMaker
 
ByteBuddyMockMaker(SubclassByteBuddyMockMaker) - Constructor for class org.mockito.internal.creation.bytebuddy.ByteBuddyMockMaker
 
bytecodeGenerator - Variable in class org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker
 
bytecodeGenerator - Variable in class org.mockito.internal.creation.bytebuddy.TypeCachingBytecodeGenerator
 
BytecodeGenerator - Interface in org.mockito.internal.creation.bytebuddy
 
byteThat(Matcher<Byte>) - Static method in class org.mockito.hamcrest.MockitoHamcrest
Enables integrating hamcrest matchers that match primitive byte arguments.
byteThat(ArgumentMatcher<Byte>) - Static method in class org.mockito.ArgumentMatchers
Allows creating custom byte argument matchers.

C

cachingMockBytecodeGenerator - Variable in class org.mockito.internal.creation.bytebuddy.SubclassByteBuddyMockMaker
 
call() - Method in class org.mockito.internal.creation.bytebuddy.MockMethodAdvice.ReturnValueWrapper
 
call() - Method in interface org.mockito.invocation.InvocationFactory.RealMethodBehavior
 
callRealMethod() - Method in class org.mockito.internal.invocation.InterceptedInvocation
 
callRealMethod() - Method in interface org.mockito.invocation.InvocationOnMock
calls real method
calls(int) - Static method in class org.mockito.internal.verification.VerificationModeFactory
 
calls(int) - Static method in class org.mockito.Mockito
Allows non-greedy verification in order.
Calls - Class in org.mockito.internal.verification
 
Calls(int) - Constructor for class org.mockito.internal.verification.Calls
 
CALLS_REAL_METHODS - org.mockito.Answers
An answer that calls the real methods (used for partial mocks).
CALLS_REAL_METHODS - Static variable in class org.mockito.Mockito
Optional Answer to be used with Mockito.mock(Class, Answer)
CallsRealMethods - Class in org.mockito.internal.stubbing.answers
Optional Answer that adds partial mocking support
CallsRealMethods() - Constructor for class org.mockito.internal.stubbing.answers.CallsRealMethods
 
cannotCallAbstractRealMethod() - Static method in class org.mockito.internal.exceptions.Reporter
 
cannotCreateTimerWithNegativeDurationTime(long) - Static method in class org.mockito.internal.exceptions.Reporter
 
cannotInitializeForInjectMocksAnnotation(String, String) - Static method in class org.mockito.internal.exceptions.Reporter
 
cannotInitializeForSpyAnnotation(String, Exception) - Static method in class org.mockito.internal.exceptions.Reporter
 
cannotInjectDependency(Field, Object, Exception) - Static method in class org.mockito.internal.exceptions.Reporter
 
cannotMockClass(Class<?>, String) - Static method in class org.mockito.internal.exceptions.Reporter
 
cannotStubVoidMethodWithAReturnValue(String) - Static method in class org.mockito.internal.exceptions.Reporter
 
CannotStubVoidMethodWithReturnValue - Exception in org.mockito.exceptions.misusing
 
CannotStubVoidMethodWithReturnValue(String) - Constructor for exception org.mockito.exceptions.misusing.CannotStubVoidMethodWithReturnValue
 
cannotStubWithNullThrowable() - Static method in class org.mockito.internal.exceptions.Reporter
 
CannotVerifyStubOnlyMock - Exception in org.mockito.exceptions.misusing
 
CannotVerifyStubOnlyMock(String) - Constructor for exception org.mockito.exceptions.misusing.CannotVerifyStubOnlyMock
 
cannotVerifyToString() - Static method in class org.mockito.internal.exceptions.Reporter
 
canRead - Variable in class org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator
 
canRead - Variable in class org.mockito.internal.creation.bytebuddy.ModuleHandler.ModuleSystemFound
 
canRead(Class<?>, Class<?>) - Method in class org.mockito.internal.creation.bytebuddy.ModuleHandler
 
canRead(Class<?>, Class<?>) - Method in class org.mockito.internal.creation.bytebuddy.ModuleHandler.ModuleSystemFound
 
canRead(Class<?>, Class<?>) - Method in class org.mockito.internal.creation.bytebuddy.ModuleHandler.NoModuleSystemFound
 
canRecoverFromFailure(VerificationMode) - Method in class org.mockito.internal.verification.VerificationOverTimeImpl
 
CAPS - Static variable in class org.mockito.internal.util.StringUtil
 
Captor - Annotation Type in org.mockito
Allows shorthand ArgumentCaptor creation on fields.
CaptorAnnotationProcessor - Class in org.mockito.internal.configuration
Instantiate ArgumentCaptor a field annotated by @Captor.
CaptorAnnotationProcessor() - Constructor for class org.mockito.internal.configuration.CaptorAnnotationProcessor
 
capture() - Method in class org.mockito.ArgumentCaptor
Use it to capture the argument.
captureArgument() - Method in class org.mockito.internal.invocation.InvocationMatcher
 
captureArgumentsFrom(Invocation) - Method in class org.mockito.internal.invocation.InvocationMatcher
 
captureArgumentsFrom(Invocation) - Method in interface org.mockito.invocation.MatchableInvocation
This method is used by Mockito to implement argument captor functionality (see ArgumentCaptor.
captureFrom(Object) - Method in interface org.mockito.internal.matchers.CapturesArguments
 
captureFrom(Object) - Method in class org.mockito.internal.matchers.CapturingMatcher
 
CapturesArguments - Interface in org.mockito.internal.matchers
 
capturingMatcher - Variable in class org.mockito.ArgumentCaptor
 
CapturingMatcher<T> - Class in org.mockito.internal.matchers
 
CapturingMatcher() - Constructor for class org.mockito.internal.matchers.CapturingMatcher
 
cause - Variable in class org.mockito.internal.verification.VerificationEventImpl
 
charThat(Matcher<Character>) - Static method in class org.mockito.hamcrest.MockitoHamcrest
Enables integrating hamcrest matchers that match primitive char arguments.
charThat(ArgumentMatcher<Character>) - Static method in class org.mockito.ArgumentMatchers
Allows creating custom char argument matchers.
checkAtLeastNumberOfInvocations(List<Invocation>, MatchableInvocation, int) - Static method in class org.mockito.internal.verification.checkers.AtLeastXNumberOfInvocationsChecker
 
checkAtLeastNumberOfInvocations(List<Invocation>, MatchableInvocation, int, InOrderContext) - Static method in class org.mockito.internal.verification.checkers.AtLeastXNumberOfInvocationsChecker
 
checkedExceptionInvalid(Throwable) - Static method in class org.mockito.internal.exceptions.Reporter
 
checkItemsNotNull(T, String) - Static method in class org.mockito.internal.util.Checks
 
checkMissingInvocation(List<Invocation>, MatchableInvocation) - Static method in class org.mockito.internal.verification.checkers.MissingInvocationChecker
 
checkMissingInvocation(List<Invocation>, MatchableInvocation, InOrderContext) - Static method in class org.mockito.internal.verification.checkers.MissingInvocationChecker
 
checkNotAbstract(Field) - Method in class org.mockito.internal.util.reflection.FieldInitializer
 
checkNotEnum(Field) - Method in class org.mockito.internal.util.reflection.FieldInitializer
 
checkNotInner(Field) - Method in class org.mockito.internal.util.reflection.FieldInitializer
 
checkNotInterface(Field) - Method in class org.mockito.internal.util.reflection.FieldInitializer
 
checkNotLocal(Field) - Method in class org.mockito.internal.util.reflection.FieldInitializer
 
checkNotNull(T, String) - Static method in class org.mockito.internal.util.Checks
 
checkNotNull(T, String, String) - Static method in class org.mockito.internal.util.Checks
 
checkNumberOfInvocations(List<Invocation>, MatchableInvocation, int) - Static method in class org.mockito.internal.verification.checkers.NumberOfInvocationsChecker
 
checkNumberOfInvocations(List<Invocation>, MatchableInvocation, int, InOrderContext) - Static method in class org.mockito.internal.verification.checkers.NumberOfInvocationsChecker
 
checkNumberOfInvocationsNonGreedy(List<Invocation>, MatchableInvocation, int, InOrderContext) - Static method in class org.mockito.internal.verification.checkers.NumberOfInvocationsChecker
 
checkParameterized(Constructor<?>, Field) - Method in class org.mockito.internal.util.reflection.FieldInitializer.ParameterizedConstructorInstantiator
 
CheckReturnValue - Annotation Type in org.mockito
This annotation is not supposed to be used by Mockito end-users.
Checks - Class in org.mockito.internal.util
Pre-made preconditions
Checks() - Constructor for class org.mockito.internal.util.Checks
 
checkSelfCall(Object) - Method in class org.mockito.internal.creation.bytebuddy.MockMethodAdvice.SelfCallInfo
 
checkSupportedCombination(boolean, MockFeatures<T>) - Method in class org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator
 
ClassCreatingMockMaker - Interface in org.mockito.internal.creation.bytebuddy
 
ClassPathLoader - Class in org.mockito.internal.configuration
Loads configuration or extension points available in the classpath.
ClassPathLoader() - Constructor for class org.mockito.internal.configuration.ClassPathLoader
 
clazz - Variable in class org.mockito.ArgumentCaptor
 
clazz - Variable in class org.mockito.internal.configuration.injection.scanner.InjectMocksScanner
 
clazz - Variable in class org.mockito.internal.configuration.injection.scanner.MockScanner
 
clazz - Variable in class org.mockito.internal.matchers.InstanceOf
 
clazz - Variable in class org.mockito.internal.util.reflection.GenericMetadataSupport.FromClassGenericMetadataSupport
 
Cleaner() - Constructor for enum org.mockito.internal.util.concurrent.DetachedThreadLocal.Cleaner
 
Cleaner() - Constructor for enum org.mockito.internal.util.concurrent.WeakConcurrentSet.Cleaner
 
CLEANER - Static variable in class org.mockito.internal.exceptions.stacktrace.StackTraceFilter
 
cleansStackTrace() - Method in class org.mockito.configuration.DefaultMockitoConfiguration
 
cleansStackTrace() - Method in interface org.mockito.configuration.IMockitoConfiguration
This should be turned on unless you're a Mockito developer and you wish to have verbose (read: messy) stack traces that only few understand (eg: Mockito developers)
cleansStackTrace() - Method in class org.mockito.internal.configuration.GlobalConfiguration
 
clear() - Method in class org.mockito.internal.stubbing.DoAnswerStyleStubbing
 
clear() - Method in class org.mockito.internal.util.collections.HashCodeAndEqualsSafeSet
 
clear() - Method in class org.mockito.internal.util.concurrent.DetachedThreadLocal
 
clear() - Method in class org.mockito.internal.util.concurrent.WeakConcurrentMap
Clears the entire map.
clear() - Method in class org.mockito.internal.util.concurrent.WeakConcurrentSet
Clears the set.
clear() - Method in class org.mockito.internal.verification.DefaultRegisteredInvocations
 
clear() - Method in interface org.mockito.internal.verification.RegisteredInvocations
 
clear() - Method in class org.mockito.internal.verification.SingleRegisteredInvocation
 
clearAll() - Method in class org.mockito.internal.util.concurrent.DetachedThreadLocal
Clears all thread local references for all threads.
clearAllCaches() - Method in class org.mockito.internal.creation.bytebuddy.ByteBuddyMockMaker
 
clearAllCaches() - Method in interface org.mockito.internal.creation.bytebuddy.BytecodeGenerator
 
clearAllCaches() - Method in class org.mockito.internal.creation.bytebuddy.InlineByteBuddyMockMaker
 
clearAllCaches() - Method in class org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator
 
clearAllCaches() - Method in class org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker
 
clearAllCaches() - Method in class org.mockito.internal.creation.bytebuddy.SubclassByteBuddyMockMaker
 
clearAllCaches() - Method in class org.mockito.internal.creation.bytebuddy.TypeCachingBytecodeGenerator
 
clearAllCaches() - Method in class org.mockito.internal.MockitoCore
 
clearAllCaches() - Static method in class org.mockito.internal.util.MockUtil
 
clearAllCaches() - Static method in class org.mockito.Mockito
Clears all mocks, type caches and instrumentations.
clearAllCaches() - Method in interface org.mockito.plugins.MockMaker
Clears all cashes for mocked types and removes all byte code alterations, if possible.
clearAllMocks() - Method in class org.mockito.internal.creation.bytebuddy.InlineByteBuddyMockMaker
 
clearAllMocks() - Method in class org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker
 
clearAllMocks() - Method in interface org.mockito.plugins.InlineMockMaker
Cleans up internal state for all existing mocks.
clearInlineMock(Object) - Method in class org.mockito.internal.framework.DefaultMockitoFramework
 
clearInlineMock(Object) - Method in interface org.mockito.MockitoFramework
Clears up internal state of specific inline mock.
clearInlineMocks() - Method in class org.mockito.internal.framework.DefaultMockitoFramework
 
clearInlineMocks() - Method in interface org.mockito.MockitoFramework
Clears up internal state of all inline mocks.
clearInvocations() - Method in class org.mockito.internal.MockedStaticImpl
 
clearInvocations() - Method in class org.mockito.internal.stubbing.InvocationContainerImpl
 
clearInvocations() - Method in interface org.mockito.MockedStatic
clearInvocations(T...) - Method in class org.mockito.internal.MockitoCore
 
clearInvocations(T...) - Static method in class org.mockito.Mockito
Use this method in order to only clear invocations, when stubbing is non-trivial.
clearListeners() - Method in interface org.mockito.internal.progress.MockingProgress
Removes all listeners added via MockingProgress.addListener(MockitoListener).
clearListeners() - Method in class org.mockito.internal.progress.MockingProgressImpl
 
clearMock(Object) - Method in class org.mockito.internal.creation.bytebuddy.InlineByteBuddyMockMaker
 
clearMock(Object) - Method in class org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker
 
clearMock(Object) - Method in interface org.mockito.plugins.InlineMockMaker
Clean up internal state for specified mock.
clone() - Method in class org.mockito.internal.util.collections.HashCodeAndEqualsSafeSet
 
ClonesArguments - Class in org.mockito.internal.stubbing.answers
 
ClonesArguments() - Constructor for class org.mockito.internal.stubbing.answers.ClonesArguments
 
close() - Method in class org.mockito.internal.MockedConstructionImpl
 
close() - Method in class org.mockito.internal.MockedStaticImpl
 
close() - Method in class org.mockito.plugins.AnnotationEngine.NoAction
 
close() - Method in interface org.mockito.ScopedMock
Closes this scoped mock and throws an exception if already closed.
close(Closeable) - Static method in class org.mockito.internal.util.io.IOUtil
Closes the target.
closeables - Variable in class org.mockito.internal.framework.DefaultMockitoSession
 
closed - Variable in class org.mockito.internal.MockedConstructionImpl
 
closed - Variable in class org.mockito.internal.MockedStaticImpl
 
closeOnDemand() - Method in class org.mockito.internal.MockedConstructionImpl
 
closeOnDemand() - Method in class org.mockito.internal.MockedStaticImpl
 
closeOnDemand() - Method in interface org.mockito.ScopedMock
Releases this scoped mock and is non-operational if already released.
closeQuietly(Closeable) - Static method in class org.mockito.internal.util.io.IOUtil
Closes the target.
cmpEq(T) - Static method in class org.mockito.AdditionalMatchers
comparable argument equals to the given value according to their compareTo method.
CODEGEN_PACKAGE - Static variable in class org.mockito.internal.creation.bytebuddy.SubclassBytecodeGenerator
 
codegenLookup - Variable in class org.mockito.internal.creation.bytebuddy.SubclassInjectionLoader.WithLookup
 
collectAndReport() - Method in class org.mockito.internal.junit.VerificationCollectorImpl
 
collectAndReport() - Method in interface org.mockito.junit.VerificationCollector
Collect all lazily verified behaviour.
collector() - Static method in class org.mockito.junit.MockitoJUnit
Creates a rule instance that can perform lazy verifications.
compare(Invocation, Invocation) - Method in class org.mockito.internal.invocation.InvocationComparator
 
compare(Stubbing, Stubbing) - Method in class org.mockito.internal.stubbing.StubbingComparator
 
CompareEqual<T extends java.lang.Comparable<T>> - Class in org.mockito.internal.matchers
 
CompareEqual(T) - Constructor for class org.mockito.internal.matchers.CompareEqual
 
compareFieldsByName - Static variable in class org.mockito.internal.util.reflection.SuperTypesLastSorter
 
CompareTo<T extends java.lang.Comparable<T>> - Class in org.mockito.internal.matchers
 
CompareTo(T) - Constructor for class org.mockito.internal.matchers.CompareTo
 
compatibleReturnTypes(Class<?>, Class<?>) - Static method in class org.mockito.internal.stubbing.defaultanswers.ForwardsInvocations
 
compiler - Variable in class org.mockito.internal.creation.bytebuddy.MockMethodAdvice
 
computeStackTraceInformation(StackTraceFilter, Throwable, boolean) - Method in class org.mockito.internal.debugging.LocationImpl
Eagerly compute the stacktrace line from the stackTraceHolder.
ConditionalStackTraceFilter - Class in org.mockito.internal.exceptions.stacktrace
 
ConditionalStackTraceFilter() - Constructor for class org.mockito.internal.exceptions.stacktrace.ConditionalStackTraceFilter
 
config - Variable in class org.mockito.internal.exceptions.stacktrace.ConditionalStackTraceFilter
 
ConsecutiveStubbing<T> - Class in org.mockito.internal.stubbing
 
ConsecutiveStubbing(InvocationContainerImpl) - Constructor for class org.mockito.internal.stubbing.ConsecutiveStubbing
 
ConsoleMockitoLogger - Class in org.mockito.internal.util
 
ConsoleMockitoLogger() - Constructor for class org.mockito.internal.util.ConsoleMockitoLogger
 
ConsoleSpammingMockitoJUnitRunner - Class in org.mockito.runners
Deprecated.
as of 2.1.0. Use the MockitoJUnitRunner runner instead which contains support for detecting unused stubs.

If you still prefer using this runner, tell us why (create ticket in our issue tracker).

ConsoleSpammingMockitoJUnitRunner(Class<?>) - Constructor for class org.mockito.runners.ConsoleSpammingMockitoJUnitRunner
Deprecated.
 
ConsoleSpammingMockitoJUnitRunner(MockitoLogger, InternalRunner) - Constructor for class org.mockito.runners.ConsoleSpammingMockitoJUnitRunner
Deprecated.
 
constructed() - Method in class org.mockito.internal.MockedConstructionImpl
 
constructed() - Method in interface org.mockito.MockedConstruction
 
ConstructionCallback - Interface in org.mockito.internal.creation.bytebuddy
 
constructor() - Method in class org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.InlineConstructionMockContext
 
constructor() - Method in interface org.mockito.MockedConstruction.Context
 
constructorArgs - Variable in class org.mockito.internal.creation.instance.ConstructorInstantiator
 
constructorArgs - Variable in class org.mockito.internal.creation.MockSettingsImpl
 
constructorArgs - Variable in class org.mockito.internal.creation.settings.CreationSettings
 
constructorArgsString() - Method in class org.mockito.internal.creation.instance.ConstructorInstantiator
 
constructorArgTypes() - Method in class org.mockito.internal.creation.instance.ConstructorInstantiator
 
ConstructorInjection - Class in org.mockito.internal.configuration.injection
Injection strategy based on constructor.
ConstructorInjection() - Constructor for class org.mockito.internal.configuration.injection.ConstructorInjection
 
ConstructorInjection.SimpleArgumentResolver - Class in org.mockito.internal.configuration.injection
Returns mocks that match the argument type, if not possible assigns null.
ConstructorInstantiator - Class in org.mockito.internal.creation.instance
 
ConstructorInstantiator(boolean, Object...) - Constructor for class org.mockito.internal.creation.instance.ConstructorInstantiator
 
ConstructorShortcut(String) - Constructor for class org.mockito.internal.creation.bytebuddy.MockMethodAdvice.ConstructorShortcut
 
contains(Object) - Method in class org.mockito.internal.util.collections.HashCodeAndEqualsSafeSet
 
contains(Object) - Method in class org.mockito.internal.util.collections.IdentitySet
 
contains(String) - Static method in class org.mockito.ArgumentMatchers
String argument that contains the given substring.
contains(V) - Method in class org.mockito.internal.util.concurrent.WeakConcurrentSet
 
Contains - Class in org.mockito.internal.matchers
 
Contains(String) - Constructor for class org.mockito.internal.matchers.Contains
 
containsAll(Collection<?>) - Method in class org.mockito.internal.util.collections.HashCodeAndEqualsSafeSet
 
ContainsExtraTypeInfo - Interface in org.mockito.internal.matchers
Intended to use in certain ArgumentMatchers.
containsKey(K) - Method in class org.mockito.internal.util.concurrent.WeakConcurrentMap
 
containsKey(K) - Method in class org.mockito.internal.util.concurrent.WeakConcurrentMap.WithInlinedExpunction
 
contextualActualTypeParameters - Variable in class org.mockito.internal.util.reflection.GenericMetadataSupport
Represents actual type variables resolved for current class.
control - Variable in class org.mockito.internal.MockedConstructionImpl
 
control - Variable in class org.mockito.internal.MockedStaticImpl
 
convert(FromT) - Method in interface org.mockito.internal.util.collections.ListUtil.Converter
 
convert(Collection<FromT>, ListUtil.Converter<FromT, To>) - Static method in class org.mockito.internal.util.collections.ListUtil
 
copy(T, T, Class<?>) - Method in class org.mockito.internal.util.reflection.LenientCopyTool
 
copySelfWithNewVerificationMode(VerificationMode) - Method in class org.mockito.internal.verification.VerificationWrapper
 
copySelfWithNewVerificationMode(VerificationMode) - Method in class org.mockito.verification.After
 
copySelfWithNewVerificationMode(VerificationMode) - Method in class org.mockito.verification.Timeout
 
copyToMock(T, T) - Method in class org.mockito.internal.util.reflection.LenientCopyTool
 
copyToRealObject(T, T) - Method in class org.mockito.internal.util.reflection.LenientCopyTool
 
copyValues(T, T, Class<?>) - Method in class org.mockito.internal.util.reflection.LenientCopyTool
 
copyWithVerificationMode(VerificationMode) - Method in class org.mockito.internal.verification.VerificationOverTimeImpl
 
count - Variable in class org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.InlineConstructionMockContext
 
count - Variable in class org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.InlineConstructionMockControl
 
create(Class<?>) - Method in class org.mockito.internal.runners.RunnerFactory
Creates silent runner implementation
create(Class<?>, Supplier<MockitoTestListener>) - Method in class org.mockito.internal.runners.RunnerFactory
Creates runner implementation with provided listener supplier
create(Class<T>, String) - Method in class org.mockito.internal.configuration.plugins.DefaultMockitoPlugins
Creates an instance of given plugin type, using specific implementation class.
create(String, String, String) - Method in interface org.mockito.internal.junit.ExceptionFactory.ExceptionFactoryImpl
 
createAllLocationsArgsMessage(List<Invocation>) - Static method in class org.mockito.internal.exceptions.Reporter
 
createAllLocationsMessage(List<Location>) - Static method in class org.mockito.internal.exceptions.Reporter
 
createArgumentsAreDifferentException(String, String, String) - Static method in class org.mockito.internal.junit.ExceptionFactory
Returns an AssertionError that describes the fact that the arguments of an invocation are different.
createConfig() - Method in class org.mockito.internal.configuration.GlobalConfiguration
 
createConstructionMock(Class<T>, Function<MockedConstruction.Context, MockCreationSettings<T>>, Function<MockedConstruction.Context, MockHandler<T>>, MockedConstruction.MockInitializer<T>) - Method in class org.mockito.internal.creation.bytebuddy.ByteBuddyMockMaker
 
createConstructionMock(Class<T>, Function<MockedConstruction.Context, MockCreationSettings<T>>, Function<MockedConstruction.Context, MockHandler<T>>, MockedConstruction.MockInitializer<T>) - Method in class org.mockito.internal.creation.bytebuddy.InlineByteBuddyMockMaker
 
createConstructionMock(Class<T>, Function<MockedConstruction.Context, MockCreationSettings<T>>, Function<MockedConstruction.Context, MockHandler<T>>, MockedConstruction.MockInitializer<T>) - Method in class org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker
 
createConstructionMock(Class<T>, Function<MockedConstruction.Context, MockCreationSettings<T>>, Function<MockedConstruction.Context, MockHandler<T>>, MockedConstruction.MockInitializer<T>) - Method in interface org.mockito.plugins.MockMaker
If you want to provide your own implementation of MockMaker this method should: Intercept all constructions of the specified type in the current thread Only intercept the construction after being enabled. Stops the interception when disabled.
createConstructionMock(Class<T>, Function<MockedConstruction.Context, MockCreationSettings<T>>, MockedConstruction.MockInitializer<T>) - Static method in class org.mockito.internal.util.MockUtil
 
createdMocks - Variable in class org.mockito.internal.debugging.WarningsCollector
Deprecated.
 
createFrom(List<Invocation>) - Static method in class org.mockito.internal.invocation.InvocationMatcher
 
createInvocation(Object, Method, Object[], RealMethod, MockCreationSettings) - Static method in class org.mockito.internal.invocation.DefaultInvocationFactory
 
createInvocation(Object, Method, Object[], RealMethod, MockCreationSettings, Location) - Static method in class org.mockito.internal.invocation.DefaultInvocationFactory
 
createInvocation(Object, MockCreationSettings, Method, Callable, Object...) - Method in class org.mockito.internal.invocation.DefaultInvocationFactory
 
createInvocation(Object, MockCreationSettings, Method, Callable, Object...) - Method in interface org.mockito.invocation.InvocationFactory
Deprecated.
Use InvocationFactory.createInvocation(Object, MockCreationSettings, Method, RealMethodBehavior, Object...) instead. Why deprecated? We found use cases where we need to handle Throwable and ensure correct stack trace filtering (removing Mockito internals from the stack trace). Hence the introduction of InvocationFactory.RealMethodBehavior. Creates instance of an Invocation object. This method is useful for framework integrators to programmatically simulate method calls on mocks using MockHandler. It enables advanced framework integrations.
createInvocation(Object, MockCreationSettings, Method, RealMethod, Object[]) - Method in class org.mockito.internal.invocation.DefaultInvocationFactory
 
createInvocation(Object, MockCreationSettings, Method, InvocationFactory.RealMethodBehavior, Object...) - Method in class org.mockito.internal.invocation.DefaultInvocationFactory
 
createInvocation(Object, MockCreationSettings, Method, InvocationFactory.RealMethodBehavior, Object...) - Method in interface org.mockito.invocation.InvocationFactory
Creates instance of an Invocation object.
createMock(MockCreationSettings<T>) - Static method in class org.mockito.internal.util.MockUtil
 
createMock(MockCreationSettings<T>, MockHandler) - Method in class org.mockito.internal.creation.bytebuddy.ByteBuddyMockMaker
 
createMock(MockCreationSettings<T>, MockHandler) - Method in class org.mockito.internal.creation.bytebuddy.InlineByteBuddyMockMaker
 
createMock(MockCreationSettings<T>, MockHandler) - Method in class org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker
 
createMock(MockCreationSettings<T>, MockHandler) - Method in class org.mockito.internal.creation.bytebuddy.SubclassByteBuddyMockMaker
 
createMock(MockCreationSettings<T>, MockHandler) - Method in class org.mockito.internal.creation.proxy.ProxyMockMaker
 
createMock(MockCreationSettings<T>, MockHandler) - Method in interface org.mockito.plugins.MockMaker
If you want to provide your own implementation of MockMaker this method should: Create a proxy object that implements settings.typeToMock and potentially also settings.extraInterfaces. You may use the information from settings to create/configure your proxy object. Your proxy object should carry the handler with it.
createMockFor(Annotation, Field) - Method in class org.mockito.internal.configuration.IndependentAnnotationEngine
 
createMockHandler(MockCreationSettings<T>) - Static method in class org.mockito.internal.handler.MockHandlerFactory
 
createMockitoMethod(Method, MockCreationSettings) - Static method in class org.mockito.internal.invocation.DefaultInvocationFactory
 
createMockType(MockCreationSettings<T>) - Method in class org.mockito.internal.creation.bytebuddy.ByteBuddyMockMaker
 
createMockType(MockCreationSettings<T>) - Method in interface org.mockito.internal.creation.bytebuddy.ClassCreatingMockMaker
 
createMockType(MockCreationSettings<T>) - Method in class org.mockito.internal.creation.bytebuddy.InlineByteBuddyMockMaker
 
createMockType(MockCreationSettings<T>) - Method in class org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker
 
createMockType(MockCreationSettings<T>) - Method in class org.mockito.internal.creation.bytebuddy.SubclassByteBuddyMockMaker
 
createObjectArray(Object) - Static method in class org.mockito.internal.matchers.ArrayEquals
 
createRegisteredInvocations(MockCreationSettings) - Method in class org.mockito.internal.stubbing.InvocationContainerImpl
 
createSpy(MockCreationSettings<T>, MockHandler, T) - Method in class org.mockito.internal.creation.bytebuddy.ByteBuddyMockMaker
 
createSpy(MockCreationSettings<T>, MockHandler, T) - Method in class org.mockito.internal.creation.bytebuddy.InlineByteBuddyMockMaker
 
createSpy(MockCreationSettings<T>, MockHandler, T) - Method in class org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker
 
createSpy(MockCreationSettings<T>, MockHandler, T) - Method in interface org.mockito.plugins.MockMaker
By implementing this method, a mock maker can optionally support the creation of spies where all fields are set within a constructor.
createStatement(Statement, String, Object) - Method in class org.mockito.internal.junit.JUnitSessionStore
 
createStaticMock(Class<T>, MockCreationSettings<T>) - Static method in class org.mockito.internal.util.MockUtil
 
createStaticMock(Class<T>, MockCreationSettings<T>, MockHandler) - Method in class org.mockito.internal.creation.bytebuddy.ByteBuddyMockMaker
 
createStaticMock(Class<T>, MockCreationSettings<T>, MockHandler) - Method in class org.mockito.internal.creation.bytebuddy.InlineByteBuddyMockMaker
 
createStaticMock(Class<T>, MockCreationSettings<T>, MockHandler) - Method in class org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker
 
createStaticMock(Class<T>, MockCreationSettings<T>, MockHandler) - Method in interface org.mockito.plugins.MockMaker
If you want to provide your own implementation of MockMaker this method should: Alter the supplied class to only change its behavior in the current thread. Only alters the static method's behavior after being enabled. Stops the altered behavior when disabled.
createStrict(Class<?>) - Method in class org.mockito.internal.runners.RunnerFactory
Creates strict runner implementation
createStrictStubs(Class<?>) - Method in class org.mockito.internal.runners.RunnerFactory
Creates strict stubs runner implementation TODO, let's try to apply Brice suggestion and use switch + Strictness
createTooFewInvocationsMessage(Discrepancy, DescribedInvocation, List<Location>) - Static method in class org.mockito.internal.exceptions.Reporter
 
createTooManyInvocationsMessage(int, int, DescribedInvocation, List<Location>) - Static method in class org.mockito.internal.exceptions.Reporter
 
createWantedButNotInvokedMessage(DescribedInvocation) - Static method in class org.mockito.internal.exceptions.Reporter
 
CreationSettings<T> - Class in org.mockito.internal.creation.settings
 
CreationSettings() - Constructor for class org.mockito.internal.creation.settings.CreationSettings
 
CreationSettings(CreationSettings) - Constructor for class org.mockito.internal.creation.settings.CreationSettings
 
CrossClassLoaderSerializationProxy(Object) - Constructor for class org.mockito.internal.creation.bytebuddy.ByteBuddyCrossClassLoaderSerializationSupport.CrossClassLoaderSerializationProxy
Creates the wrapper that be used in the serialization stream.
currentSpied - Variable in class org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker
 
currentStrictness - Variable in class org.mockito.internal.junit.DefaultStubbingLookupListener
 
currentStrictness - Variable in class org.mockito.internal.junit.UniversalTestListener
 

D

data - Variable in class org.mockito.internal.verification.VerificationEventImpl
 
debug() - Static method in class org.mockito.Mockito
Deprecated.
- please use MockingDetails.printInvocations() instead. An instance of MockingDetails can be retrieved via Mockito.mockingDetails(Object).
decamelizeClassName(String) - Static method in class org.mockito.internal.util.StringUtil
 
decamelizeMatcherName(String) - Static method in class org.mockito.internal.util.StringUtil
 
declaredFieldsOf(Object) - Static method in class org.mockito.internal.util.reflection.Fields
Instance fields declared in the class of the given instance.
declaringClass - Variable in class org.mockito.internal.invocation.SerializableMethod
 
DeeplyStubbedAnswer(Object) - Constructor for class org.mockito.internal.stubbing.defaultanswers.ReturnsDeepStubs.DeeplyStubbedAnswer
 
deepStub(InvocationOnMock, GenericMetadataSupport) - Method in class org.mockito.internal.stubbing.defaultanswers.ReturnsDeepStubs
 
DEFAULT_PLUGINS - Static variable in class org.mockito.internal.configuration.plugins.DefaultMockitoPlugins
 
defaultAnswer - Variable in class org.mockito.internal.creation.bytebuddy.MockFeatures
 
defaultAnswer - Variable in class org.mockito.internal.creation.settings.CreationSettings
 
defaultAnswer(Answer) - Method in class org.mockito.internal.creation.MockSettingsImpl
 
defaultAnswer(Answer) - Method in interface org.mockito.MockSettings
Specifies default answers to interactions.
defaultAnswerDoesNotAcceptNullParameter() - Static method in class org.mockito.internal.exceptions.Reporter
 
DefaultAnswerValidator - Class in org.mockito.internal.stubbing.answers
 
DefaultAnswerValidator() - Constructor for class org.mockito.internal.stubbing.answers.DefaultAnswerValidator
 
DefaultInjectionEngine - Class in org.mockito.internal.configuration
Inject mock/spies dependencies for fields annotated with @InjectMocks
DefaultInjectionEngine() - Constructor for class org.mockito.internal.configuration.DefaultInjectionEngine
 
DefaultInstantiatorProvider - Class in org.mockito.internal.creation.instance
 
DefaultInstantiatorProvider() - Constructor for class org.mockito.internal.creation.instance.DefaultInstantiatorProvider
 
DefaultInternalRunner - Class in org.mockito.internal.runners
 
DefaultInternalRunner(Class<?>, Supplier<MockitoTestListener>) - Constructor for class org.mockito.internal.runners.DefaultInternalRunner
 
DefaultInvocationFactory - Class in org.mockito.internal.invocation
 
DefaultInvocationFactory() - Constructor for class org.mockito.internal.invocation.DefaultInvocationFactory
 
DefaultLenientStubber - Class in org.mockito.internal.stubbing
 
DefaultLenientStubber() - Constructor for class org.mockito.internal.stubbing.DefaultLenientStubber
 
DefaultMockingDetails - Class in org.mockito.internal.util
Class to inspect any object, and identify whether a particular object is either a mock or a spy.
DefaultMockingDetails(Object) - Constructor for class org.mockito.internal.util.DefaultMockingDetails
 
DefaultMockitoConfiguration - Class in org.mockito.configuration
DefaultConfiguration of Mockito framework
DefaultMockitoConfiguration() - Constructor for class org.mockito.configuration.DefaultMockitoConfiguration
 
DefaultMockitoFramework - Class in org.mockito.internal.framework
 
DefaultMockitoFramework() - Constructor for class org.mockito.internal.framework.DefaultMockitoFramework
 
DefaultMockitoPlugins - Class in org.mockito.internal.configuration.plugins
 
DefaultMockitoPlugins() - Constructor for class org.mockito.internal.configuration.plugins.DefaultMockitoPlugins
 
DefaultMockitoSession - Class in org.mockito.internal.framework
 
DefaultMockitoSession(List<Object>, String, Strictness, MockitoLogger) - Constructor for class org.mockito.internal.framework.DefaultMockitoSession
 
DefaultMockitoSessionBuilder - Class in org.mockito.internal.session
 
DefaultMockitoSessionBuilder() - Constructor for class org.mockito.internal.session.DefaultMockitoSessionBuilder
 
defaultName - Variable in class org.mockito.internal.util.MockNameImpl
 
DefaultPluginSwitch - Class in org.mockito.internal.configuration.plugins
 
DefaultPluginSwitch() - Constructor for class org.mockito.internal.configuration.plugins.DefaultPluginSwitch
 
DefaultRegisteredInvocations - Class in org.mockito.internal.verification
 
DefaultRegisteredInvocations() - Constructor for class org.mockito.internal.verification.DefaultRegisteredInvocations
 
DefaultRegisteredInvocations.RemoveToString - Class in org.mockito.internal.verification
 
defaultReturn - Variable in class org.mockito.internal.stubbing.defaultanswers.TriesToReturnSelf
 
DefaultStackTraceCleaner - Class in org.mockito.internal.exceptions.stacktrace
This predicate is used to filter "good" StackTraceElement.
DefaultStackTraceCleaner() - Constructor for class org.mockito.internal.exceptions.stacktrace.DefaultStackTraceCleaner
 
DefaultStackTraceCleanerProvider - Class in org.mockito.internal.exceptions.stacktrace
by Szczepan Faber, created at: 7/29/12
DefaultStackTraceCleanerProvider() - Constructor for class org.mockito.internal.exceptions.stacktrace.DefaultStackTraceCleanerProvider
 
DefaultStubbingLookupListener - Class in org.mockito.internal.junit
Default implementation of stubbing lookup listener.
DefaultStubbingLookupListener(Strictness) - Constructor for class org.mockito.internal.junit.DefaultStubbingLookupListener
 
DefaultTestFinishedEvent - Class in org.mockito.internal.junit
 
DefaultTestFinishedEvent(Object, String, Throwable) - Constructor for class org.mockito.internal.junit.DefaultTestFinishedEvent
 
defaultValue(Class<T>) - Static method in class org.mockito.internal.util.Primitives
Returns the boxed default value for a primitive or a primitive wrapper.
defaultValue(K) - Method in class org.mockito.internal.util.concurrent.WeakConcurrentMap
Creates a default value.
define(Thread, T) - Method in class org.mockito.internal.util.concurrent.DetachedThreadLocal
 
delegate - Variable in class org.mockito.internal.configuration.InjectingAnnotationEngine
 
delegate - Variable in class org.mockito.internal.handler.NullResultGuardian
 
delegate - Variable in class org.mockito.internal.junit.VerificationCollectorImpl.VerificationWrapper
 
delegate - Variable in class org.mockito.internal.stubbing.defaultanswers.ReturnsMocks
 
delegate - Variable in class org.mockito.internal.stubbing.defaultanswers.ReturnsMoreEmptyValues
 
delegate - Variable in class org.mockito.internal.stubbing.defaultanswers.ReturnsSmartNulls
 
delegate - Variable in class org.mockito.internal.util.reflection.ModuleMemberAccessor
 
delegate - Variable in class org.mockito.internal.verification.VerificationOverTimeImpl
 
delegate - Variable in class org.mockito.internal.verification.VerificationWrapperInOrderWrapper
 
delegate() - Static method in class org.mockito.internal.stubbing.defaultanswers.ReturnsDeepStubs
 
delegate() - Static method in class org.mockito.internal.util.reflection.ModuleMemberAccessor
 
DELEGATE - Static variable in class org.mockito.internal.stubbing.defaultanswers.ReturnsDeepStubs.LazyHolder
 
delegateChains(Class<?>) - Static method in class org.mockito.internal.stubbing.defaultanswers.RetrieveGenericsForDefaultAnswers
Try to resolve the result value using ReturnsEmptyValues and ReturnsMoreEmptyValues.
delegatedMethodDoesNotExistOnDelegate(Method, Object, Object) - Static method in class org.mockito.internal.exceptions.Reporter
 
delegatedMethodHasWrongReturnType(Method, Method, Object, Object) - Static method in class org.mockito.internal.exceptions.Reporter
 
delegatedObject - Variable in class org.mockito.internal.stubbing.defaultanswers.ForwardsInvocations
 
delegatesTo(Object) - Static method in class org.mockito.AdditionalAnswers
An answer that directly forwards the calls to the delegate.
DelegatingMethod - Class in org.mockito.internal.creation
 
DelegatingMethod(Method) - Constructor for class org.mockito.internal.creation.DelegatingMethod
 
delta - Variable in class org.mockito.internal.matchers.EqualsWithDelta
 
describe() - Static method in class org.mockito.internal.util.Platform
 
describe(Object) - Method in class org.mockito.internal.matchers.Equals
 
describeClass(Class<?>) - Static method in class org.mockito.internal.creation.bytebuddy.SubclassByteBuddyMockMaker
 
describeClass(Object) - Static method in class org.mockito.internal.creation.bytebuddy.SubclassByteBuddyMockMaker
 
DescribedInvocation - Interface in org.mockito.invocation
Provides information about the invocation, specifically a human readable description and the location.
description - Variable in class org.mockito.internal.matchers.InstanceOf
 
description - Variable in class org.mockito.internal.verification.Description
 
description(String) - Method in class org.mockito.internal.junit.VerificationCollectorImpl.VerificationWrapper
 
description(String) - Method in class org.mockito.internal.verification.Times
 
description(String) - Static method in class org.mockito.Mockito
Adds a description to be printed if verification fails.
description(String) - Method in interface org.mockito.verification.VerificationMode
Description will be prepended to the assertion error if verification fails.
description(VerificationMode, String) - Static method in class org.mockito.internal.verification.VerificationModeFactory
Verification mode will prepend the specified failure message if verification fails with the given implementation.
Description - Class in org.mockito.internal.verification
Description verification mode wraps an existing verification mode and prepends a custom message to the assertion error if verification fails.
Description(VerificationMode, String) - Constructor for class org.mockito.internal.verification.Description
Constructs a verification mode which wraps the given verification mode.
descriptionOf(Object) - Static method in class org.mockito.internal.matchers.text.ValuePrinter
 
deserializeAsWeakRef - Variable in class org.mockito.internal.invocation.mockref.MockStrongReference
 
DetachedThreadLocal<T> - Class in org.mockito.internal.util.concurrent
A detached local that allows for explicit control of setting and removing values from a thread-local context.
DetachedThreadLocal(DetachedThreadLocal.Cleaner) - Constructor for class org.mockito.internal.util.concurrent.DetachedThreadLocal
 
DetachedThreadLocal.Cleaner - Enum in org.mockito.internal.util.concurrent
Determines the cleaning format.
determineStrictness(Stubbing, MockCreationSettings, Strictness) - Static method in class org.mockito.internal.stubbing.StrictnessSelector
Determines the actual strictness in the following importance order: 1st - strictness configured when declaring stubbing; 2nd - strictness configured at mock level; 3rd - strictness configured at test level (rule, mockito session)
disable() - Method in class org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.InlineConstructionMockControl
 
disable() - Method in class org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.InlineStaticMockControl
 
disable() - Method in interface org.mockito.plugins.MockMaker.ConstructionMockControl
 
disable() - Method in interface org.mockito.plugins.MockMaker.StaticMockControl
 
Discrepancy - Class in org.mockito.internal.reporting
 
Discrepancy(int, int) - Constructor for class org.mockito.internal.reporting.Discrepancy
 
dispatcher - Variable in class org.mockito.internal.creation.bytebuddy.SubclassBytecodeGenerator
 
DISPATCHER - Static variable in class org.mockito.internal.util.reflection.InstrumentationMemberAccessor
 
DispatcherDefaultingToRealMethod() - Constructor for class org.mockito.internal.creation.bytebuddy.MockMethodInterceptor.DispatcherDefaultingToRealMethod
 
DISPATCHERS - Static variable in class org.mockito.internal.creation.bytebuddy.inject.MockMethodDispatcher
 
doAnswer(Answer) - Method in class org.mockito.internal.stubbing.DefaultLenientStubber
 
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.
doAnswer(Answer) - Method in interface org.mockito.stubbing.BaseStubber
Use it for stubbing consecutive calls in Mockito.doAnswer(Answer) style:
doAnswerStyleStubbing - Variable in class org.mockito.internal.stubbing.InvocationContainerImpl
 
DoAnswerStyleStubbing - Class in org.mockito.internal.stubbing
Holds answers declared using 'doAnswer' stubbing style.
DoAnswerStyleStubbing() - Constructor for class org.mockito.internal.stubbing.DoAnswerStyleStubbing
 
doCallRealMethod() - Method in class org.mockito.internal.stubbing.DefaultLenientStubber
 
doCallRealMethod() - Method in class org.mockito.internal.stubbing.StubberImpl
 
doCallRealMethod() - Static method in class org.mockito.Mockito
Use doCallRealMethod() when you want to call the real implementation of a method.
doCallRealMethod() - Method in interface org.mockito.stubbing.BaseStubber
Use it for stubbing consecutive calls in Mockito.doCallRealMethod() style.
doCreateMock(MockCreationSettings<T>, MockHandler, boolean) - Method in class org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker
 
doesNothing() - Static method in class org.mockito.internal.stubbing.answers.DoesNothing
 
DoesNothing - Class in org.mockito.internal.stubbing.answers
 
DoesNothing() - Constructor for class org.mockito.internal.stubbing.answers.DoesNothing
 
doIdentityEquals(Object, Object) - Static method in class org.mockito.internal.creation.bytebuddy.MockMethodInterceptor.ForEquals
 
doIdentityHashCode(Object) - Static method in class org.mockito.internal.creation.bytebuddy.MockMethodInterceptor.ForHashCode
 
doIntercept(Object, Method, Object[], RealMethod) - Method in class org.mockito.internal.creation.bytebuddy.MockMethodInterceptor
 
doIntercept(Object, Method, Object[], RealMethod, Location) - Method in class org.mockito.internal.creation.bytebuddy.MockMethodInterceptor
 
doNothing() - Method in class org.mockito.internal.stubbing.DefaultLenientStubber
 
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.
doNothing() - Method in interface org.mockito.stubbing.BaseStubber
Use it for stubbing consecutive calls in Mockito.doNothing() style:
doReadObject(String, MockAccess, ObjectInputStream) - Static method in class org.mockito.internal.creation.bytebuddy.MockMethodAdvice.ForReadObject
 
doReturn(Object) - Method in class org.mockito.internal.stubbing.DefaultLenientStubber
 
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).
doReturn(Object) - Method in interface org.mockito.stubbing.BaseStubber
Use it for stubbing consecutive calls in Mockito.doReturn(Object) style.
doReturn(Object, Object...) - Method in class org.mockito.internal.stubbing.DefaultLenientStubber
 
doReturn(Object, Object...) - Method in class org.mockito.internal.stubbing.StubberImpl
 
doReturn(Object, Object...) - Static method in class org.mockito.Mockito
Same as Mockito.doReturn(Object) but sets consecutive values to be returned.
doReturn(Object, Object...) - Method in interface org.mockito.stubbing.BaseStubber
Use it for stubbing consecutive calls in Mockito.doReturn(Object) style.
doReturnValues(Object...) - Method in class org.mockito.internal.stubbing.StubberImpl
 
doThrow(Class<? extends Throwable>) - Method in class org.mockito.internal.stubbing.DefaultLenientStubber
 
doThrow(Class<? extends Throwable>) - Method in class org.mockito.internal.stubbing.StubberImpl
 
doThrow(Class<? extends Throwable>) - Static method in class org.mockito.Mockito
Use doThrow() when you want to stub the void method with an exception.
doThrow(Class<? extends Throwable>) - Method in interface org.mockito.stubbing.BaseStubber
Use it for stubbing consecutive calls in Mockito.doThrow(Class) style:
doThrow(Class<? extends Throwable>, Class<? extends Throwable>...) - Method in class org.mockito.internal.stubbing.DefaultLenientStubber
 
doThrow(Class<? extends Throwable>, Class<? extends Throwable>...) - Method in class org.mockito.internal.stubbing.StubberImpl
 
doThrow(Class<? extends Throwable>, Class<? extends Throwable>...) - Static method in class org.mockito.Mockito
Same as Mockito.doThrow(Class) but sets consecutive exception classes to be thrown.
doThrow(Class<? extends Throwable>, Class<? extends Throwable>...) - Method in interface org.mockito.stubbing.BaseStubber
Use it for stubbing consecutive calls in Mockito.doThrow(Class) style:
doThrow(Throwable...) - Method in class org.mockito.internal.stubbing.DefaultLenientStubber
 
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.
doThrow(Throwable...) - Method in interface org.mockito.stubbing.BaseStubber
Use it for stubbing consecutive calls in Mockito.doThrow(Throwable[]) style:
doubleThat(Matcher<Double>) - Static method in class org.mockito.hamcrest.MockitoHamcrest
Enables integrating hamcrest matchers that match primitive double arguments.
doubleThat(ArgumentMatcher<Double>) - Static method in class org.mockito.ArgumentMatchers
Allows creating custom double argument matchers.
doWriteReplace(MockAccess) - Static method in class org.mockito.internal.creation.bytebuddy.MockMethodInterceptor.ForWriteReplace
 
duration() - Method in class org.mockito.internal.util.Timer
 
durationMillis - Variable in class org.mockito.internal.util.Timer
 

E

elements - Variable in class org.mockito.internal.stubbing.answers.ReturnsElementsOf
 
emitWarnings(MockitoLogger, TestFinishedEvent, Collection<Object>) - Static method in class org.mockito.internal.junit.UniversalTestListener
 
EMPTY - Static variable in class org.mockito.internal.creation.proxy.ProxyMockMaker
 
emptyDoubleStream() - Static method in class org.mockito.internal.util.JavaEightUtil
Creates an empty DoubleStream using reflection to stay backwards-compatible with older JDKs.
emptyDuration - Static variable in class org.mockito.internal.util.JavaEightUtil
 
emptyDuration() - Static method in class org.mockito.internal.util.JavaEightUtil
Creates an empty Duration using reflection to stay backwards-compatible with older JDKs.
emptyIntStream() - Static method in class org.mockito.internal.util.JavaEightUtil
Creates an empty IntStream using reflection to stay backwards-compatible with older JDKs.
emptyLongStream() - Static method in class org.mockito.internal.util.JavaEightUtil
Creates an empty LongStream using reflection to stay backwards-compatible with older JDKs.
emptyOptional - Static variable in class org.mockito.internal.util.JavaEightUtil
 
emptyOptional() - Static method in class org.mockito.internal.util.JavaEightUtil
Creates an empty Optional using reflection to stay backwards-compatible with older JDKs.
emptyOptionalDouble - Static variable in class org.mockito.internal.util.JavaEightUtil
 
emptyOptionalDouble() - Static method in class org.mockito.internal.util.JavaEightUtil
Creates an empty OptionalDouble using reflection to stay backwards-compatible with older JDKs.
emptyOptionalInt - Static variable in class org.mockito.internal.util.JavaEightUtil
 
emptyOptionalInt() - Static method in class org.mockito.internal.util.JavaEightUtil
Creates an empty OptionalInt using reflection to stay backwards-compatible with older JDKs.
emptyOptionalLong - Static variable in class org.mockito.internal.util.JavaEightUtil
 
emptyOptionalLong() - Static method in class org.mockito.internal.util.JavaEightUtil
Creates an empty OptionalLong using reflection to stay backwards-compatible with older JDKs.
emptyPeriod - Static variable in class org.mockito.internal.util.JavaEightUtil
 
emptyPeriod() - Static method in class org.mockito.internal.util.JavaEightUtil
Creates an empty Period using reflection to stay backwards-compatible with older JDKs.
emptyStream() - Static method in class org.mockito.internal.util.JavaEightUtil
Creates an empty Stream using reflection to stay backwards-compatible with older JDKs.
enable() - Method in class org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.InlineConstructionMockControl
 
enable() - Method in class org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.InlineStaticMockControl
 
enable() - Method in interface org.mockito.plugins.MockMaker.ConstructionMockControl
 
enable() - Method in interface org.mockito.plugins.MockMaker.StaticMockControl
 
enableClassCache() - Method in class org.mockito.configuration.DefaultMockitoConfiguration
 
enableClassCache() - Method in interface org.mockito.configuration.IMockitoConfiguration
Allow objenesis to cache classes.
enableClassCache() - Method in class org.mockito.internal.configuration.GlobalConfiguration
 
endsWith(String) - Static method in class org.mockito.ArgumentMatchers
String argument that ends with the given suffix.
EndsWith - Class in org.mockito.internal.matchers
 
EndsWith(String) - Constructor for class org.mockito.internal.matchers.EndsWith
 
ensureMockIsAssignableToMockedType(MockCreationSettings<T>, T) - Static method in class org.mockito.internal.creation.bytebuddy.SubclassByteBuddyMockMaker
 
enter(Object, int, boolean) - Static method in class org.mockito.internal.creation.bytebuddy.MockMethodAdvice.ForHashCode
 
enter(Object, Object, boolean, boolean) - Static method in class org.mockito.internal.creation.bytebuddy.MockMethodAdvice.ForEquals
 
enter(String, Class<?>, Method, Object[]) - Static method in class org.mockito.internal.creation.bytebuddy.MockMethodAdvice.ForStatic
 
enter(String, Object) - Static method in class org.mockito.internal.creation.bytebuddy.MockMethodAdvice.ForEquals
 
enter(String, Object) - Static method in class org.mockito.internal.creation.bytebuddy.MockMethodAdvice.ForHashCode
 
enter(String, Object, Method, Object[]) - Static method in class org.mockito.internal.creation.bytebuddy.MockMethodAdvice
 
entry - Variable in class org.mockito.internal.util.concurrent.WeakConcurrentMap.SimpleEntry
 
EntryIterator(Iterator<Map.Entry<WeakConcurrentMap.WeakKey<K>, V>>) - Constructor for class org.mockito.internal.util.concurrent.WeakConcurrentMap.EntryIterator
 
eq(boolean) - Static method in class org.mockito.ArgumentMatchers
boolean argument that is equal to the given value.
eq(byte) - Static method in class org.mockito.ArgumentMatchers
byte argument that is equal to the given value.
eq(char) - Static method in class org.mockito.ArgumentMatchers
char argument that is equal to the given value.
eq(double) - Static method in class org.mockito.ArgumentMatchers
double argument that is equal to the given value.
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) - Static method in class org.mockito.ArgumentMatchers
float argument that is equal to the given value.
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(int) - Static method in class org.mockito.ArgumentMatchers
int argument that is equal to the given value.
eq(long) - Static method in class org.mockito.ArgumentMatchers
long argument that is equal to the given value.
eq(short) - Static method in class org.mockito.ArgumentMatchers
short argument that is equal to the given value.
eq(T) - Static method in class org.mockito.ArgumentMatchers
Object argument that is equal to the given value.
equalArguments(Object[]) - Method in class org.mockito.internal.invocation.InterceptedInvocation
 
Equality - Class in org.mockito.internal.matchers
 
Equality() - Constructor for class org.mockito.internal.matchers.Equality
 
equals - Variable in class org.mockito.internal.creation.bytebuddy.SubclassBytecodeGenerator
 
equals(Object) - Method in class org.mockito.internal.creation.bytebuddy.TypeCachingBytecodeGenerator.MockitoMockKey
 
equals(Object) - Method in class org.mockito.internal.creation.DelegatingMethod
 
equals(Object) - Method in class org.mockito.internal.handler.NotifiedMethodInvocationReport
 
equals(Object) - Method in class org.mockito.internal.invocation.InterceptedInvocation
 
equals(Object) - Method in class org.mockito.internal.invocation.SerializableMethod
 
equals(Object) - Method in class org.mockito.internal.matchers.Equals
 
equals(Object) - Method in class org.mockito.internal.util.collections.HashCodeAndEqualsMockWrapper
 
equals(Object) - Method in class org.mockito.internal.util.collections.HashCodeAndEqualsSafeSet
 
equals(Object) - Method in class org.mockito.internal.util.concurrent.WeakConcurrentMap.LatentKey
 
equals(Object) - Method in class org.mockito.internal.util.concurrent.WeakConcurrentMap.WeakKey
 
equals(Object) - Method in class org.mockito.internal.util.reflection.GenericMetadataSupport.TypeVarBoundedType
 
equals(Object) - Method in class org.mockito.internal.util.reflection.GenericMetadataSupport.WildCardBoundedType
 
equals(Object) - Method in class org.mockito.internal.util.reflection.InstanceField
 
Equals - Class in org.mockito.internal.matchers
 
Equals(Object) - Constructor for class org.mockito.internal.matchers.Equals
 
EqualsBuilder - Class in org.mockito.internal.matchers.apachecommons
Assists in implementing Object.equals(Object) methods.
EqualsBuilder() - Constructor for class org.mockito.internal.matchers.apachecommons.EqualsBuilder
Constructor for EqualsBuilder.
EqualsWithDelta - Class in org.mockito.internal.matchers
 
EqualsWithDelta(Number, Number) - Constructor for class org.mockito.internal.matchers.EqualsWithDelta
 
ERROR_MESSAGE - Static variable in class org.mockito.internal.creation.bytebuddy.SubclassInjectionLoader
 
ERROR_UNSUPPORTED_NUMBER_OF_MATCHERS - org.mockito.internal.invocation.MatcherApplicationStrategy.MatcherApplicationType
 
evaluateConstructor(List<Constructor<?>>, Constructor<?>) - Method in class org.mockito.internal.creation.instance.ConstructorInstantiator
Evalutes constructor against the currently found matchingConstructors and determines if it's a better match to the given arguments, a worse match, or an equivalently good match.
Event(Invocation, Stubbing, Collection<Stubbing>, MockCreationSettings) - Constructor for class org.mockito.internal.listeners.StubbingLookupNotifier.Event
 
Event(MockingDetails) - Constructor for class org.mockito.internal.listeners.VerificationStartedNotifier.Event
 
exceptionCauseMessageIfAvailable(Exception) - Static method in class org.mockito.internal.exceptions.Reporter
 
ExceptionFactory - Class in org.mockito.internal.junit
 
ExceptionFactory() - Constructor for class org.mockito.internal.junit.ExceptionFactory
 
ExceptionFactory.ExceptionFactoryImpl - Interface in org.mockito.internal.junit
 
ExceptionIncludingMockitoWarnings - Exception in org.mockito.internal.exceptions
 
ExceptionIncludingMockitoWarnings(String, Throwable) - Constructor for exception org.mockito.internal.exceptions.ExceptionIncludingMockitoWarnings
 
exceptionTypes - Variable in class org.mockito.internal.invocation.SerializableMethod
 
excludeFields - Variable in class org.mockito.internal.matchers.apachecommons.ReflectionEquals
 
EXCLUDES - Static variable in class org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator
 
exit(Object, Callable<?>) - Static method in class org.mockito.internal.creation.bytebuddy.MockMethodAdvice
 
exit(Object, Callable<?>) - Static method in class org.mockito.internal.creation.bytebuddy.MockMethodAdvice.ForStatic
 
expandArgs(MockitoMethod, Object[]) - Static method in class org.mockito.internal.invocation.ArgumentsProcessor
 
expandVarArgs(boolean, Object[]) - Static method in class org.mockito.internal.invocation.ArgumentsProcessor
 
expungeStaleEntries() - Method in class org.mockito.internal.util.concurrent.WeakConcurrentMap
Cleans all unused references.
expungeStaleEntries() - Method in class org.mockito.internal.util.concurrent.WeakConcurrentSet
Cleans all unused references.
extractActualBoundedTypeOf(Type) - Method in class org.mockito.internal.util.reflection.GenericMetadataSupport.TypeVariableReturnType
 
extractGeneric(Type) - Static method in class org.mockito.internal.util.reflection.GenericTypeExtractor
Attempts to extract generic parameter type of given type.
extractRawTypeOf(Type) - Method in class org.mockito.internal.util.reflection.GenericMetadataSupport
 
extraInterfaces - Variable in class org.mockito.internal.creation.bytebuddy.ByteBuddyCrossClassLoaderSerializationSupport.CrossClassLoaderSerializationProxy
 
extraInterfaces - Variable in class org.mockito.internal.creation.bytebuddy.ByteBuddyCrossClassLoaderSerializationSupport.MockitoMockObjectInputStream
 
extraInterfaces - Variable in class org.mockito.internal.creation.settings.CreationSettings
 
extraInterfaces - Variable in class org.mockito.internal.util.reflection.GenericMetadataSupport.TypeVariableReturnType
 
extraInterfaces() - Method in class org.mockito.internal.util.reflection.GenericMetadataSupport
 
extraInterfaces() - Method in class org.mockito.internal.util.reflection.GenericMetadataSupport.TypeVariableReturnType
 
extraInterfaces() - Method in annotation type org.mockito.Mock
Mock will have extra interfaces, see MockSettings.extraInterfaces(Class[]).
extraInterfaces(Class<?>...) - Method in class org.mockito.internal.creation.MockSettingsImpl
 
extraInterfaces(Class<?>...) - Method in interface org.mockito.MockSettings
Specifies extra interfaces the mock should implement.
extraInterfacesAcceptsOnlyInterfaces(Class<?>) - Static method in class org.mockito.internal.exceptions.Reporter
 
extraInterfacesCannotContainMockedType(Class<?>) - Static method in class org.mockito.internal.exceptions.Reporter
 
extraInterfacesDoesNotAcceptNullParameters() - Static method in class org.mockito.internal.exceptions.Reporter
 
extraInterfacesRequiresAtLeastOneInterface() - Static method in class org.mockito.internal.exceptions.Reporter
 
extraTypeInfoFor(int) - Method in class org.mockito.internal.reporting.PrintSettings
 

F

factory - Static variable in class org.mockito.internal.junit.ExceptionFactory
 
failed - Variable in class org.mockito.internal.runners.util.FailureDetector
 
FailureDetector - Class in org.mockito.internal.runners.util
Implementation of JUnit run listener that knows when any of the tests failed
FailureDetector() - Constructor for class org.mockito.internal.runners.util.FailureDetector
 
fetchFrom(Thread) - Method in class org.mockito.internal.util.concurrent.DetachedThreadLocal
 
field - Variable in class org.mockito.internal.util.reflection.BeanPropertySetter
 
field - Variable in class org.mockito.internal.util.reflection.FieldInitializer
 
field - Variable in class org.mockito.internal.util.reflection.FieldInitializer.NoArgConstructorInstantiator
 
field - Variable in class org.mockito.internal.util.reflection.FieldInitializer.ParameterizedConstructorInstantiator
 
field - Variable in class org.mockito.internal.util.reflection.FieldReader
 
field - Variable in class org.mockito.internal.util.reflection.InstanceField
 
FieldAnnotationProcessor<A extends java.lang.annotation.Annotation> - Interface in org.mockito.internal.configuration
Simple annotation processor interface.
fieldClass() - Method in class org.mockito.internal.util.reflection.FieldInitializationReport
Returns the class of the actual instance in the field.
fieldInitialisationThrewException(Field, Throwable) - Static method in class org.mockito.internal.exceptions.Reporter
 
FieldInitializationReport - Class in org.mockito.internal.util.reflection
Report on field initialization
FieldInitializationReport(Object, boolean, boolean) - Constructor for class org.mockito.internal.util.reflection.FieldInitializationReport
 
FieldInitializer - Class in org.mockito.internal.util.reflection
Initialize a field with type instance if a default constructor can be found.
FieldInitializer(Object, Field) - Constructor for class org.mockito.internal.util.reflection.FieldInitializer
Prepare initializer with the given field on the given instance.
FieldInitializer(Object, Field, FieldInitializer.ConstructorArgumentResolver) - Constructor for class org.mockito.internal.util.reflection.FieldInitializer
Prepare initializer with the given field on the given instance.
FieldInitializer(Object, Field, FieldInitializer.ConstructorInstantiator) - Constructor for class org.mockito.internal.util.reflection.FieldInitializer
 
FieldInitializer.ConstructorArgumentResolver - Interface in org.mockito.internal.util.reflection
Represents the strategy used to resolve actual instances to be given to a constructor given the argument types.
FieldInitializer.ConstructorInstantiator - Interface in org.mockito.internal.util.reflection
 
FieldInitializer.NoArgConstructorInstantiator - Class in org.mockito.internal.util.reflection
Constructor instantiating strategy for no-arg constructor.
FieldInitializer.ParameterizedConstructorInstantiator - Class in org.mockito.internal.util.reflection
Constructor instantiating strategy for parameterized constructors.
fieldInstance - Variable in class org.mockito.internal.util.reflection.FieldInitializationReport
 
fieldInstance() - Method in class org.mockito.internal.util.reflection.FieldInitializationReport
Returns the actual field instance.
fieldOwner - Variable in class org.mockito.internal.configuration.injection.MockInjection.OngoingMockInjection
 
fieldOwner - Variable in class org.mockito.internal.util.reflection.FieldInitializer
 
fieldReader - Variable in class org.mockito.internal.util.reflection.InstanceField
 
FieldReader - Class in org.mockito.internal.util.reflection
 
FieldReader(Object, Field) - Constructor for class org.mockito.internal.util.reflection.FieldReader
 
fields - Variable in class org.mockito.internal.configuration.injection.MockInjection.OngoingMockInjection
 
Fields - Class in org.mockito.internal.util.reflection
Small fluent reflection tools to work with fields.
Fields() - Constructor for class org.mockito.internal.util.reflection.Fields
 
Fields.InstanceFields - Class in org.mockito.internal.util.reflection
 
fieldWasInitialized() - Method in class org.mockito.internal.util.reflection.FieldInitializationReport
Indicate whether the field was created during the process or not.
fieldWasInitializedUsingContructorArgs() - Method in class org.mockito.internal.util.reflection.FieldInitializationReport
Indicate whether the field was created using constructor args.
filter - Variable in class org.mockito.internal.exceptions.stacktrace.ConditionalStackTraceFilter
 
filter - Variable in class org.mockito.internal.stubbing.answers.AbstractThrowsException
 
filter(StackTraceElement[], boolean) - Method in class org.mockito.internal.exceptions.stacktrace.StackTraceFilter
Example how the filter works (+/- means good/bad): [a+, b+, c-, d+, e+, f-, g+] -> [a+, b+, d+, e+, g+] Basically removes all bad from the middle.
filter(Throwable) - Method in class org.mockito.internal.exceptions.stacktrace.ConditionalStackTraceFilter
 
filter(Collection<T>, ListUtil.Filter<T>) - Static method in class org.mockito.internal.util.collections.ListUtil
 
filter(Filter) - Method in class org.mockito.internal.runners.DefaultInternalRunner
 
filter(Filter) - Method in class org.mockito.internal.runners.StrictRunner
 
filter(Filter) - Method in class org.mockito.junit.MockitoJUnitRunner
 
filter(Filter) - Method in class org.mockito.runners.ConsoleSpammingMockitoJUnitRunner
Deprecated.
 
filter(Filter) - Method in class org.mockito.runners.MockitoJUnitRunner
Deprecated.
filter(Filter) - Method in class org.mockito.runners.VerboseMockitoJUnitRunner
Deprecated.
 
filter(ListUtil.Filter<InstanceField>) - Method in class org.mockito.internal.util.reflection.Fields.InstanceFields
 
filterCandidate(Collection<Object>, Field, List<Field>, Object) - Method in interface org.mockito.internal.configuration.injection.filter.MockCandidateFilter
 
filterCandidate(Collection<Object>, Field, List<Field>, Object) - Method in class org.mockito.internal.configuration.injection.filter.NameBasedCandidateFilter
 
filterCandidate(Collection<Object>, Field, List<Field>, Object) - Method in class org.mockito.internal.configuration.injection.filter.TerminalMockCandidateFilter
 
filterCandidate(Collection<Object>, Field, List<Field>, Object) - Method in class org.mockito.internal.configuration.injection.filter.TypeBasedCandidateFilter
 
filterFirst(Throwable, boolean) - Method in class org.mockito.internal.exceptions.stacktrace.StackTraceFilter
This filtering strategy makes use of a fast-path computation to retrieve stackTraceElements from a Stacktrace of a Throwable.
filterRequested - Variable in class org.mockito.internal.runners.StrictRunner
 
filterStackTrace() - Method in exception org.mockito.exceptions.base.MockitoException
 
filterStackTrace() - Method in exception org.mockito.exceptions.base.MockitoSerializationIssue
 
find(Iterable<?>) - Static method in class org.mockito.internal.invocation.finder.AllInvocationsFinder
gets all invocations from mocks.
find(String) - Static method in class org.mockito.AdditionalMatchers
String argument that contains a substring that matches the given regular expression.
find(List<?>) - Static method in class org.mockito.internal.invocation.finder.VerifiableInvocationsFinder
 
find(List<?>) - Method in class org.mockito.internal.invocation.UnusedStubsFinder
Deprecated.
Finds all unused stubs for given mocks
find(FindingsListener) - Method in class org.mockito.internal.debugging.WarningsFinder
 
Find - Class in org.mockito.internal.matchers
 
Find(String) - Constructor for class org.mockito.internal.matchers.Find
 
findAllMatchingUnverifiedChunks(List<Invocation>, MatchableInvocation, InOrderContext) - Static method in class org.mockito.internal.invocation.InvocationsFinder
 
findAnswerFor(Invocation) - Method in class org.mockito.internal.stubbing.InvocationContainerImpl
 
finder - Variable in class org.mockito.internal.debugging.WarningsPrinterImpl
 
findFirstMatchingUnverifiedInvocation(List<Invocation>, MatchableInvocation, InOrderContext) - Static method in class org.mockito.internal.invocation.InvocationsFinder
 
findFirstUnverified(List<Invocation>) - Static method in class org.mockito.internal.invocation.InvocationsFinder
 
findFirstUnverified(List<Invocation>, Object) - Static method in class org.mockito.internal.invocation.InvocationsFinder
 
findFirstUnverifiedInOrder(InOrderContext, List<Invocation>) - Static method in class org.mockito.internal.invocation.InvocationsFinder
i3 is unverified here: i1, i2, i3 v all good here: i1, i2, i3 v v
findGenericInterface(Class<?>, Class<?>) - Static method in class org.mockito.internal.util.reflection.GenericTypeExtractor
Finds generic interface implementation based on the source class and the target interface.
FindingsListener - Interface in org.mockito.internal.debugging
 
findInvocations(List<Invocation>, MatchableInvocation) - Static method in class org.mockito.internal.invocation.InvocationsFinder
 
findMatchingChunk(List<Invocation>, MatchableInvocation, int, InOrderContext) - Static 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
findNext() - Method in class org.mockito.internal.util.concurrent.WeakConcurrentMap.EntryIterator
 
findPluginClass(Iterable<URL>) - Method in class org.mockito.internal.configuration.plugins.PluginFinder
 
findPluginClasses(Iterable<URL>) - Method in class org.mockito.internal.configuration.plugins.PluginFinder
 
findPreviousVerifiedInOrder(List<Invocation>, InOrderContext) - Static method in class org.mockito.internal.invocation.InvocationsFinder
 
findSimilarInvocation(List<Invocation>, MatchableInvocation) - Static method in class org.mockito.internal.invocation.InvocationsFinder
 
findSourceFile(StackTraceElement[], String) - Method in class org.mockito.internal.exceptions.stacktrace.StackTraceFilter
Finds the source file of the target stack trace.
findStubbings(Iterable<?>) - Static method in class org.mockito.internal.invocation.finder.AllInvocationsFinder
Gets all stubbings from mocks.
findTypeFromGeneric(InvocationOnMock, TypeVariable) - Static method in class org.mockito.internal.stubbing.defaultanswers.RetrieveGenericsForDefaultAnswers
Retrieve the expected type when it came from a primitive.
findTypeFromGenericInArguments(InvocationOnMock, TypeVariable) - Static method in class org.mockito.internal.stubbing.defaultanswers.RetrieveGenericsForDefaultAnswers
Find a return type using generic arguments provided by the calling method.
finishMocking() - Method in class org.mockito.internal.framework.DefaultMockitoSession
 
finishMocking() - Method in interface org.mockito.MockitoSession
Must be invoked when the user is done with mocking for given session (test method).
finishMocking(Throwable) - Method in class org.mockito.internal.framework.DefaultMockitoSession
 
finishMocking(Throwable) - Method in interface org.mockito.MockitoSession
Must be invoked when the user is done with mocking for given session (test method).
firstBound() - Method in interface org.mockito.internal.util.reflection.GenericMetadataSupport.BoundedType
 
firstBound() - Method in class org.mockito.internal.util.reflection.GenericMetadataSupport.TypeVarBoundedType
 
firstBound() - Method in class org.mockito.internal.util.reflection.GenericMetadataSupport.WildCardBoundedType
 
firstOf(Iterable<T>) - Static method in class org.mockito.internal.util.collections.Iterables
Returns first element of provided iterable or fails fast when iterable is empty.
flatMocked - Variable in class org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator
 
floatThat(Matcher<Float>) - Static method in class org.mockito.hamcrest.MockitoHamcrest
Enables integrating hamcrest matchers that match primitive float arguments.
floatThat(ArgumentMatcher<Float>) - Static method in class org.mockito.ArgumentMatchers
Allows creating custom float argument matchers.
forAnnotation(A) - Method in class org.mockito.internal.configuration.IndependentAnnotationEngine
 
forClass(Class<S>) - Static method in class org.mockito.ArgumentCaptor
Build a new ArgumentCaptor.
forEachMatcherAndArgument(ArgumentMatcherAction) - Method in class org.mockito.internal.invocation.MatcherApplicationStrategy
Applies the given ArgumentMatcherAction to all arguments and corresponding matchers
ForEquals() - Constructor for class org.mockito.internal.creation.bytebuddy.MockMethodAdvice.ForEquals
 
ForEquals() - Constructor for class org.mockito.internal.creation.bytebuddy.MockMethodInterceptor.ForEquals
 
ForHashCode() - Constructor for class org.mockito.internal.creation.bytebuddy.MockMethodAdvice.ForHashCode
 
ForHashCode() - Constructor for class org.mockito.internal.creation.bytebuddy.MockMethodInterceptor.ForHashCode
 
format(String, MockitoLogger) - Method in class org.mockito.internal.junit.StubbingArgMismatches
 
format(String, MockitoLogger) - Method in class org.mockito.internal.junit.UnusedStubbings
 
FormattedText - Class in org.mockito.internal.matchers.text
Contains text that has already been formatted and hence it does not need any formatting (like quotes around string, etc.)
FormattedText(String) - Constructor for class org.mockito.internal.matchers.text.FormattedText
 
formatUnncessaryStubbingException(Class<?>, Collection<Invocation>) - Static method in class org.mockito.internal.exceptions.Reporter
 
forName - Variable in class org.mockito.internal.creation.bytebuddy.ModuleHandler.ModuleSystemFound
 
ForReadObject() - Constructor for class org.mockito.internal.creation.bytebuddy.MockMethodAdvice.ForReadObject
 
ForStatic() - Constructor for class org.mockito.internal.creation.bytebuddy.MockMethodAdvice.ForStatic
 
ForwardsInvocations - Class in org.mockito.internal.stubbing.defaultanswers
Internal answer to forward invocations on a real instance.
ForwardsInvocations(Object) - Constructor for class org.mockito.internal.stubbing.defaultanswers.ForwardsInvocations
 
ForWriteReplace() - Constructor for class org.mockito.internal.creation.bytebuddy.MockMethodInterceptor.ForWriteReplace
 
foundStubCalledWithDifferentArgs(Invocation, InvocationMatcher) - Method in interface org.mockito.internal.debugging.FindingsListener
 
foundStubCalledWithDifferentArgs(Invocation, InvocationMatcher) - Method in class org.mockito.internal.debugging.LoggingListener
 
foundUnstubbed(InvocationMatcher) - Method in interface org.mockito.internal.debugging.FindingsListener
 
foundUnstubbed(InvocationMatcher) - Method in class org.mockito.internal.debugging.LoggingListener
 
foundUnusedStub(Invocation) - Method in interface org.mockito.internal.debugging.FindingsListener
 
foundUnusedStub(Invocation) - Method in class org.mockito.internal.debugging.LoggingListener
 
framework() - Static method in class org.mockito.Mockito
For advanced users or framework integrators.
FriendlyReminderException - Exception in org.mockito.exceptions.misusing
 
FriendlyReminderException(String) - Constructor for exception org.mockito.exceptions.misusing.FriendlyReminderException
 
FromBehavior(InvocationFactory.RealMethodBehavior<?>) - Constructor for class org.mockito.internal.invocation.RealMethod.FromBehavior
 
FromCallable(Callable<?>) - Constructor for class org.mockito.internal.invocation.RealMethod.FromCallable
 
FromClassGenericMetadataSupport(Class<?>) - Constructor for class org.mockito.internal.util.reflection.GenericMetadataSupport.FromClassGenericMetadataSupport
 
FromParameterizedTypeGenericMetadataSupport(ParameterizedType) - Constructor for class org.mockito.internal.util.reflection.GenericMetadataSupport.FromParameterizedTypeGenericMetadataSupport
 
fullyQualifiedNameFor(String) - Method in class org.mockito.internal.reporting.PrintSettings
 

G

GenericArrayReturnType(GenericMetadataSupport, int) - Constructor for class org.mockito.internal.util.reflection.GenericMetadataSupport.GenericArrayReturnType
 
genericArrayType - Variable in class org.mockito.internal.util.reflection.GenericMetadataSupport.GenericArrayReturnType
 
GenericMaster - Class in org.mockito.internal.util.reflection
 
GenericMaster() - Constructor for class org.mockito.internal.util.reflection.GenericMaster
 
GenericMetadataSupport - Class in org.mockito.internal.util.reflection
This class can retrieve generic meta-data that the compiler stores on classes and accessible members.
GenericMetadataSupport() - Constructor for class org.mockito.internal.util.reflection.GenericMetadataSupport
 
GenericMetadataSupport.BoundedType - Interface in org.mockito.internal.util.reflection
Type representing bounds of a type
GenericMetadataSupport.FromClassGenericMetadataSupport - Class in org.mockito.internal.util.reflection
Generic metadata implementation for Class.
GenericMetadataSupport.FromParameterizedTypeGenericMetadataSupport - Class in org.mockito.internal.util.reflection
Generic metadata implementation for "standalone" ParameterizedType.
GenericMetadataSupport.GenericArrayReturnType - Class in org.mockito.internal.util.reflection
 
GenericMetadataSupport.NotGenericReturnTypeSupport - Class in org.mockito.internal.util.reflection
Non-Generic metadata for Class returned via Method.getGenericReturnType().
GenericMetadataSupport.ParameterizedReturnType - Class in org.mockito.internal.util.reflection
Generic metadata specific to ParameterizedType returned via Method.getGenericReturnType().
GenericMetadataSupport.TypeVarBoundedType - Class in org.mockito.internal.util.reflection
Type representing bounds of a type variable, allows to keep all bounds information.
GenericMetadataSupport.TypeVariableReturnType - Class in org.mockito.internal.util.reflection
Generic metadata for TypeVariable returned via Method.getGenericReturnType().
GenericMetadataSupport.WildCardBoundedType - Class in org.mockito.internal.util.reflection
Type representing bounds of a wildcard, allows to keep all bounds information.
GenericTypeExtractor - Class in org.mockito.internal.util.reflection
Attempts to extract generic type of given target base class or target interface
GenericTypeExtractor() - Constructor for class org.mockito.internal.util.reflection.GenericTypeExtractor
 
genericTypeOf(Class<?>, Class<?>, Class<?>) - Static method in class org.mockito.internal.util.reflection.GenericTypeExtractor
Extract generic type of root class either from the target base class or from target base interface.
genericTypeOfMatcher(Class<?>) - Static method in class org.mockito.internal.hamcrest.MatcherGenericTypeExtractor
Gets the generic type of given matcher.
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.
geq(T) - Static method in class org.mockito.AdditionalMatchers
argument greater than or equal the given value.
get() - Method in enum org.mockito.Answers
Deprecated.
as of 2.1.0 Use the enum-constant directly, instead of this getter. This method will be removed in a future release
E.g. instead of Answers.CALLS_REAL_METHODS.get() use Answers.CALLS_REAL_METHODS .
get() - Method in interface org.mockito.internal.invocation.mockref.MockReference
 
get() - Method in class org.mockito.internal.invocation.mockref.MockStrongReference
 
get() - Method in class org.mockito.internal.invocation.mockref.MockWeakReference
 
get() - Method in class org.mockito.internal.util.collections.HashCodeAndEqualsMockWrapper
 
get() - Method in class org.mockito.internal.util.concurrent.DetachedThreadLocal
 
get() - Method in interface org.mockito.internal.util.Supplier
Provides an instance.
get(Field, Object) - Method in class org.mockito.internal.util.reflection.InstrumentationMemberAccessor
 
get(Field, Object) - Method in class org.mockito.internal.util.reflection.ModuleMemberAccessor
 
get(Field, Object) - Method in class org.mockito.internal.util.reflection.ReflectionMemberAccessor
 
get(Field, Object) - Method in interface org.mockito.plugins.MemberAccessor
 
get(String, Object) - Static method in class org.mockito.internal.creation.bytebuddy.inject.MockMethodDispatcher
 
get(Thread) - Method in class org.mockito.internal.util.concurrent.DetachedThreadLocal
 
get(K) - Method in class org.mockito.internal.util.concurrent.WeakConcurrentMap
 
get(K) - Method in class org.mockito.internal.util.concurrent.WeakConcurrentMap.WithInlinedExpunction
 
GET_STACK_TRACE_ELEMENT - Static variable in class org.mockito.internal.exceptions.stacktrace.StackTraceFilter
 
getActualCount() - Method in class org.mockito.internal.reporting.Discrepancy
 
getActuals() - Method in class org.mockito.internal.reporting.SmartPrinter
 
getActualTypeArgumentFor(TypeVariable<?>) - Method in class org.mockito.internal.util.reflection.GenericMetadataSupport
 
getAll() - Method in class org.mockito.internal.verification.DefaultRegisteredInvocations
 
getAll() - Method in interface org.mockito.internal.verification.RegisteredInvocations
 
getAll() - Method in class org.mockito.internal.verification.SingleRegisteredInvocation
 
getAllInvocations() - Method in interface org.mockito.internal.verification.api.VerificationData
All invocations recorded on the mock object that is being verified.
getAllInvocations() - Method in interface org.mockito.internal.verification.api.VerificationDataInOrder
 
getAllInvocations() - Method in class org.mockito.internal.verification.api.VerificationDataInOrderImpl
 
getAllInvocations() - Method in class org.mockito.internal.verification.VerificationDataImpl
 
getAllLocations(List<Invocation>) - Static method in class org.mockito.internal.invocation.InvocationsFinder
 
getAllStubbings() - Method in class org.mockito.internal.listeners.StubbingLookupNotifier.Event
 
getAllStubbings() - Method in interface org.mockito.listeners.StubbingLookupEvent
 
getAllTypes(Class<T>) - Method in class org.mockito.internal.creation.bytebuddy.SubclassBytecodeGenerator
 
getAllValues() - Method in class org.mockito.ArgumentCaptor
Returns all captured values.
getAllValues() - Method in class org.mockito.internal.matchers.CapturingMatcher
 
getAnnotationEngine() - Method in class org.mockito.configuration.DefaultMockitoConfiguration
 
getAnnotationEngine() - Method in interface org.mockito.configuration.IMockitoConfiguration
Deprecated.
Please use the extension mechanism AnnotationEngine instead, this method will probably be removed in mockito 4.
getAnnotationEngine() - Method in class org.mockito.internal.configuration.GlobalConfiguration
 
getAnnotationEngine() - Method in class org.mockito.internal.configuration.plugins.PluginRegistry
Returns the annotation engine available for the current runtime.
getAnnotationEngine() - Static method in class org.mockito.internal.configuration.plugins.Plugins
Returns the annotation engine available for the current runtime.
getAnswers() - Method in class org.mockito.internal.stubbing.DoAnswerStyleStubbing
 
getArgument(int) - Method in class org.mockito.internal.invocation.InterceptedInvocation
 
getArgument(int) - Method in interface org.mockito.invocation.InvocationOnMock
Returns casted argument at the given index.
getArgument(int, Class<T>) - Method in class org.mockito.internal.invocation.InterceptedInvocation
 
getArgument(int, Class<T>) - Method in interface org.mockito.invocation.InvocationOnMock
Returns casted argument at the given index.
getArgumentMatcherStorage() - Method in interface org.mockito.internal.progress.MockingProgress
 
getArgumentMatcherStorage() - Method in class org.mockito.internal.progress.MockingProgressImpl
 
getArguments() - Method in class org.mockito.internal.invocation.InterceptedInvocation
 
getArguments() - Method in interface org.mockito.invocation.InvocationOnMock
Returns arguments passed to the method.
getArgumentsAsMatchers() - Method in class org.mockito.internal.invocation.InterceptedInvocation
 
getArgumentsAsMatchers() - Method in interface org.mockito.invocation.Invocation
Wraps each argument using ArgumentMatchers.eq(Object) or AdditionalMatchers.aryEq(Object[]) Used internally for the purposes of human-readable invocation printing.
getArgumentsBlock(List<ArgumentMatcher>, PrintSettings) - Method in class org.mockito.internal.matchers.text.MatchersPrinter
 
getArgumentsLine(List<ArgumentMatcher>, PrintSettings) - Method in class org.mockito.internal.matchers.text.MatchersPrinter
 
getArgumentType(ArgumentMatcher<?>) - Static method in class org.mockito.internal.invocation.TypeSafeMatching
Returns the type of ArgumentMatcher.matches(Object) of the given ArgumentMatcher implementation.
getBackingMap() - Method in class org.mockito.internal.util.concurrent.DetachedThreadLocal
 
getClass(String) - Static method in class org.mockito.internal.util.JavaEightUtil
Returns the Class object associated with the class or interface with the given string name.
getCleanerThread() - Method in class org.mockito.internal.util.concurrent.WeakConcurrentMap
 
getCleanerThread() - Method in class org.mockito.internal.util.concurrent.WeakConcurrentSet
 
getConstructorArgs() - Method in class org.mockito.internal.creation.MockSettingsImpl
 
getConstructorArgs() - Method in class org.mockito.internal.creation.settings.CreationSettings
 
getConstructorArgs() - Method in interface org.mockito.mock.MockCreationSettings
Used when arguments should be passed to the mocked object's constructor, regardless of whether these arguments are supplied directly, or whether they include the outer instance.
getCount() - Method in class org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.InlineConstructionMockContext
 
getCount() - Method in interface org.mockito.MockedConstruction.Context
 
getData() - Method in class org.mockito.internal.verification.VerificationEventImpl
 
getData() - Method in interface org.mockito.verification.VerificationEvent
 
getDefaultAnswer() - Method in class org.mockito.configuration.DefaultMockitoConfiguration
 
getDefaultAnswer() - Method in interface org.mockito.configuration.IMockitoConfiguration
Allows configuring the default answers of unstubbed invocations
getDefaultAnswer() - Method in class org.mockito.internal.configuration.GlobalConfiguration
 
getDefaultAnswer() - Method in class org.mockito.internal.creation.MockSettingsImpl
 
getDefaultAnswer() - Method in class org.mockito.internal.creation.settings.CreationSettings
 
getDefaultAnswer() - Method in interface org.mockito.mock.MockCreationSettings
the default answer for this mock, see MockSettings.defaultAnswer(org.mockito.stubbing.Answer).
getDefaultPlugin(Class<T>) - Method in class org.mockito.internal.configuration.plugins.DefaultMockitoPlugins
 
getDefaultPlugin(Class<T>) - Method in interface org.mockito.plugins.MockitoPlugins
Returns the default plugin implementation used by Mockito.
getDefaultPluginClass(String) - Method in class org.mockito.internal.configuration.plugins.DefaultMockitoPlugins
 
getDefaultVerificationStrategy() - Static method in class org.mockito.internal.progress.MockingProgressImpl
 
getDelegate() - Method in class org.mockito.internal.verification.VerificationOverTimeImpl
 
getDelegateMethod(Method) - Method in class org.mockito.internal.stubbing.defaultanswers.ForwardsInvocations
 
getDescription() - Method in class org.mockito.internal.runners.DefaultInternalRunner
 
getDescription() - Method in interface org.mockito.internal.runners.InternalRunner
 
getDescription() - Method in class org.mockito.internal.runners.StrictRunner
 
getDescription() - Method in class org.mockito.junit.MockitoJUnitRunner
 
getDescription() - Method in class org.mockito.runners.ConsoleSpammingMockitoJUnitRunner
Deprecated.
 
getDescription() - Method in class org.mockito.runners.MockitoJUnitRunner
Deprecated.
getDescription() - Method in class org.mockito.runners.VerboseMockitoJUnitRunner
Deprecated.
 
getExceptionTypes() - Method in class org.mockito.internal.creation.DelegatingMethod
 
getExceptionTypes() - Method in interface org.mockito.internal.invocation.MockitoMethod
 
getExceptionTypes() - Method in class org.mockito.internal.invocation.SerializableMethod
 
getExtraInterfaces() - Method in class org.mockito.internal.creation.MockSettingsImpl
 
getExtraInterfaces() - Method in class org.mockito.internal.creation.settings.CreationSettings
 
getExtraInterfaces() - Method in interface org.mockito.mock.MockCreationSettings
the extra interfaces the mock object should implement.
getFailure() - Method in class org.mockito.internal.junit.DefaultTestFinishedEvent
 
getFailure() - Method in interface org.mockito.internal.junit.TestFinishedEvent
 
getField(Class<?>, String) - Static method in class org.mockito.internal.junit.util.JUnitFailureHacker
Deprecated.
 
getFieldFromHierarchy(Class<?>, String) - Static method in class org.mockito.internal.junit.util.JUnitFailureHacker
Deprecated.
 
getFirstMatchingChunk(MatchableInvocation, List<Invocation>) - Static method in class org.mockito.internal.invocation.InvocationsFinder
 
getGenericType(Field) - Method in class org.mockito.internal.util.reflection.GenericMaster
Finds the generic type (parametrized type) of the field.
getHandler(Object) - Method in class org.mockito.internal.creation.bytebuddy.ByteBuddyMockMaker
 
getHandler(Object) - Method in class org.mockito.internal.creation.bytebuddy.InlineByteBuddyMockMaker
 
getHandler(Object) - Method in class org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker
 
getHandler(Object) - Method in class org.mockito.internal.creation.bytebuddy.SubclassByteBuddyMockMaker
 
getHandler(Object) - Method in class org.mockito.internal.creation.proxy.ProxyMockMaker
 
getHandler(Object) - Method in interface org.mockito.plugins.MockMaker
Returns the handler for the mock.
getInlineMockMaker() - Method in class org.mockito.internal.configuration.plugins.DefaultMockitoPlugins
 
getInlineMockMaker() - Method in class org.mockito.internal.framework.DefaultMockitoFramework
 
getInlineMockMaker() - Method in interface org.mockito.plugins.MockitoPlugins
Returns inline mock maker, an optional mock maker that is bundled with Mockito distribution.
getInstantiator(MockCreationSettings<?>) - Method in class org.mockito.internal.creation.instance.DefaultInstantiatorProvider
 
getInstantiator(MockCreationSettings<?>) - Method in class org.mockito.internal.creation.instance.InstantiatorProvider2Adapter
 
getInstantiator(MockCreationSettings<?>) - Method in class org.mockito.internal.creation.instance.InstantiatorProviderAdapter
 
getInstantiator(MockCreationSettings<?>) - Method in interface org.mockito.plugins.InstantiatorProvider
Deprecated.
, see InstantiatorProvider. Returns an instantiator, used to create new class instances.
getInstantiator(MockCreationSettings<?>) - Method in interface org.mockito.plugins.InstantiatorProvider2
Returns an instantiator, used to create new class instances.
getInstantiatorProvider() - Method in class org.mockito.internal.configuration.plugins.PluginRegistry
Returns the instantiator provider available for the current runtime.
getInstantiatorProvider() - Static method in class org.mockito.internal.configuration.plugins.Plugins
Returns the instantiator provider available for the current runtime.
getInternalState(Object, String) - Static method in class org.mockito.internal.junit.util.JUnitFailureHacker
Deprecated.
 
getInvocation() - Method in class org.mockito.internal.handler.NotifiedMethodInvocationReport
 
getInvocation() - Method in class org.mockito.internal.invocation.InvocationMatcher
 
getInvocation() - Method in class org.mockito.internal.listeners.StubbingLookupNotifier.Event
 
getInvocation() - Method in interface org.mockito.invocation.MatchableInvocation
The actual invocation Mockito will match against.
getInvocation() - Method in interface org.mockito.listeners.MethodInvocationReport
 
getInvocation() - Method in interface org.mockito.listeners.StubbingLookupEvent
 
getInvocation() - Method in interface org.mockito.stubbing.Stubbing
Returns the method invocation that is stubbed.
getInvocationContainer() - Method in class org.mockito.internal.handler.InvocationNotifierHandler
 
getInvocationContainer() - Method in class org.mockito.internal.handler.MockHandlerImpl
 
getInvocationContainer() - Method in class org.mockito.internal.handler.NullResultGuardian
 
getInvocationContainer() - Method in class org.mockito.internal.util.DefaultMockingDetails
 
getInvocationContainer() - Method in interface org.mockito.invocation.MockHandler
Returns the object that holds all invocations on the mock object, including stubbings with declared answers.
getInvocationContainer(Object) - Static method in class org.mockito.internal.util.MockUtil
 
getInvocationFactory() - Method in class org.mockito.internal.framework.DefaultMockitoFramework
 
getInvocationFactory() - Method in interface org.mockito.MockitoFramework
Returns a factory that can create instances of Invocation.
getInvocationForStubbing() - Method in class org.mockito.internal.stubbing.InvocationContainerImpl
 
getInvocationListeners() - Method in class org.mockito.internal.creation.settings.CreationSettings
 
getInvocationListeners() - Method in interface org.mockito.mock.MockCreationSettings
getInvocations() - Method in class org.mockito.internal.stubbing.InvocationContainerImpl
 
getInvocations() - Method in class org.mockito.internal.util.DefaultMockingDetails
 
getInvocations() - Method in interface org.mockito.MockingDetails
All method invocations on this mock.
getIt() - Method in class org.mockito.internal.configuration.GlobalConfiguration
 
getJavaMethod() - Method in class org.mockito.internal.creation.DelegatingMethod
 
getJavaMethod() - Method in interface org.mockito.internal.invocation.MockitoMethod
 
getJavaMethod() - Method in class org.mockito.internal.invocation.SerializableMethod
 
getKey() - Method in class org.mockito.internal.util.concurrent.WeakConcurrentMap.SimpleEntry
 
getLastInvocation() - Method in class org.mockito.internal.MockitoCore
For testing purposes only.
getLastLocation(List<Invocation>) - Static method in class org.mockito.internal.invocation.InvocationsFinder
 
getLastValue() - Method in class org.mockito.internal.matchers.CapturingMatcher
 
getLocation() - Method in class org.mockito.internal.debugging.Localized
 
getLocation() - Method in class org.mockito.internal.invocation.InterceptedInvocation
 
getLocation() - Method in class org.mockito.internal.invocation.InvocationMatcher
 
getLocation() - Method in class org.mockito.internal.matchers.LocalizedMatcher
 
getLocation() - Method in interface org.mockito.invocation.DescribedInvocation
The place in the code where the invocation happened.
getLocation() - Method in interface org.mockito.invocation.Invocation
 
getLocationOfStubbing() - Method in class org.mockito.internal.handler.NotifiedMethodInvocationReport
 
getLocationOfStubbing() - Method in interface org.mockito.listeners.MethodInvocationReport
 
getLookup() - Method in interface org.mockito.internal.util.reflection.InstrumentationMemberAccessor.Dispatcher
 
getMatcher() - Method in class org.mockito.internal.matchers.LocalizedMatcher
 
getMatcherApplicationStrategyFor(Invocation, List<ArgumentMatcher<?>>) - Static method in class org.mockito.internal.invocation.MatcherApplicationStrategy
Returns the MatcherApplicationStrategy that must be used to capture the arguments of the given invocation using the given matchers.
getMatcherApplicationType(Invocation, List<ArgumentMatcher<?>>) - Static method in class org.mockito.internal.invocation.MatcherApplicationStrategy
 
getMatchers() - Method in class org.mockito.internal.invocation.InvocationMatcher
 
getMatchers() - Method in interface org.mockito.invocation.MatchableInvocation
The argument matchers of this invocation.
getMemberAccessor() - Method in class org.mockito.internal.configuration.plugins.PluginRegistry
Returns the implementation of the member accessor available for the current runtime.
getMemberAccessor() - Static method in class org.mockito.internal.configuration.plugins.Plugins
Returns the implementation of the member accessor available for the current runtime.
getMessage() - Method in error org.mockito.exceptions.verification.ArgumentsAreDifferent
 
getMessage() - Method in error org.mockito.exceptions.verification.junit.ArgumentsAreDifferent
 
getMessage() - Method in error org.mockito.exceptions.verification.opentest4j.ArgumentsAreDifferent
 
getMethod() - Method in class org.mockito.internal.invocation.InterceptedInvocation
 
getMethod() - Method in class org.mockito.internal.invocation.InvocationMatcher
 
getMethod() - Method in class org.mockito.internal.stubbing.answers.InvocationInfo
 
getMethod() - Method in interface org.mockito.invocation.InvocationOnMock
returns the method
getMethod(String, String, Class<?>...) - Static method in class org.mockito.internal.util.JavaEightUtil
Returns a Method object that reflects the specified public member method of the class or interface represented by the fully qualified class name.
getMethodName() - Method in class org.mockito.internal.stubbing.answers.InvocationInfo
 
getMock() - Method in interface org.mockito.BDDMockito.BDDMyOngoingStubbing
getMock() - Method in class org.mockito.BDDMockito.BDDOngoingStubbingImpl
 
getMock() - Method in class org.mockito.internal.invocation.InterceptedInvocation
 
getMock() - Method in class org.mockito.internal.listeners.VerificationStartedNotifier.Event
 
getMock() - Method in class org.mockito.internal.stubbing.BaseStubbing
 
getMock() - Method in class org.mockito.internal.util.DefaultMockingDetails
 
getMock() - Method in class org.mockito.internal.verification.MockAwareVerificationMode
 
getMock() - Method in class org.mockito.internal.verification.VerificationEventImpl
 
getMock() - Method in interface org.mockito.invocation.InvocationOnMock
returns the mock object
getMock() - Method in interface org.mockito.listeners.VerificationStartedEvent
The mock object that will be used during verification.
getMock() - Method in interface org.mockito.MockingDetails
Returns the mock object which is associated with this this instance of MockingDetails.
getMock() - Method in interface org.mockito.stubbing.OngoingStubbing
Returns the mock that was used for this stub.
getMock() - Method in interface org.mockito.verification.VerificationEvent
 
getMockCreationSettings() - Method in class org.mockito.internal.util.DefaultMockingDetails
 
getMockCreationSettings() - Method in interface org.mockito.MockingDetails
Returns various mock settings provided when the mock was created, for example: mocked class, mock name (if any), any extra interfaces (if any), etc.
getMockHandler() - Method in class org.mockito.internal.creation.bytebuddy.MockMethodInterceptor
 
getMockHandler() - Method in class org.mockito.internal.util.DefaultMockingDetails
 
getMockHandler() - Method in interface org.mockito.MockingDetails
Returns the MockHandler associated with this mock object.
getMockHandler(Object) - Static method in class org.mockito.internal.util.MockUtil
 
getMockitoInterceptor() - Method in interface org.mockito.internal.creation.bytebuddy.MockAccess
 
getMockitoLogger() - Method in class org.mockito.internal.configuration.plugins.PluginRegistry
Returns the logger available for the current runtime.
getMockitoLogger() - Static method in class org.mockito.internal.configuration.plugins.Plugins
Returns the logger available for the current runtime.
getMockitoMethod() - Method in class org.mockito.internal.invocation.InterceptedInvocation
Deprecated.
Not used by Mockito but by mockito-scala
getMockMaker() - Method in class org.mockito.internal.configuration.plugins.PluginRegistry
Returns the implementation of the mock maker available for the current runtime.
getMockMaker() - Static method in class org.mockito.internal.configuration.plugins.Plugins
Returns the implementation of the mock maker available for the current runtime.
getMockName() - Method in class org.mockito.internal.creation.MockSettingsImpl
 
getMockName() - Method in class org.mockito.internal.creation.settings.CreationSettings
 
getMockName() - Method in interface org.mockito.mock.MockCreationSettings
the name of this mock, as printed on verification errors; see MockSettings.name(java.lang.String).
getMockName(Object) - Static method in class org.mockito.internal.util.MockUtil
 
getMockRef() - Method in class org.mockito.internal.invocation.InterceptedInvocation
Deprecated.
Not used by Mockito but by mockito-scala
getMockResolvers() - Method in class org.mockito.internal.configuration.plugins.PluginRegistry
Returns a list of available mock resolvers if any.
getMockResolvers() - Static method in class org.mockito.internal.configuration.plugins.Plugins
Returns a list of available mock resolvers if any.
getMocks() - Method in class org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.InlineConstructionMockControl
 
getMocks() - Method in interface org.mockito.plugins.MockMaker.ConstructionMockControl
 
getMockSettings() - Method in class org.mockito.internal.handler.InvocationNotifierHandler
 
getMockSettings() - Method in class org.mockito.internal.handler.MockHandlerImpl
 
getMockSettings() - Method in class org.mockito.internal.handler.NullResultGuardian
 
getMockSettings() - Method in class org.mockito.internal.listeners.StubbingLookupNotifier.Event
 
getMockSettings() - Method in interface org.mockito.invocation.MockHandler
Read-only settings the mock object was created with.
getMockSettings() - Method in interface org.mockito.listeners.StubbingLookupEvent
 
getMockSettings(Object) - Static method in class org.mockito.internal.util.MockUtil
 
getMocksToBeVerifiedInOrder() - Method in class org.mockito.internal.InOrderImpl
 
getMode() - Method in class org.mockito.internal.verification.VerificationEventImpl
 
getMode() - Method in interface org.mockito.verification.VerificationEvent
 
getModule - Variable in class org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator
 
getModule - Variable in class org.mockito.internal.creation.bytebuddy.ModuleHandler.ModuleSystemFound
 
getModule - Variable in class org.mockito.internal.util.reflection.InstrumentationMemberAccessor
 
getModule() - Method in interface org.mockito.internal.util.reflection.InstrumentationMemberAccessor.Dispatcher
 
getName() - Method in class org.mockito.internal.creation.DelegatingMethod
 
getName() - Method in class org.mockito.internal.creation.settings.CreationSettings
 
getName() - Method in interface org.mockito.internal.invocation.MockitoMethod
 
getName() - Method in class org.mockito.internal.invocation.SerializableMethod
 
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
 
getNotMatchingArgsWithSameName(List<ArgumentMatcher>, Object[]) - Static method in class org.mockito.internal.verification.argumentmatching.ArgumentMatchingTool
Suspiciously not matching arguments are those that don't match, and the classes have same simple name.
getObject() - Method in class org.mockito.internal.debugging.Localized
 
getOrderingContext() - Method in interface org.mockito.internal.verification.api.VerificationDataInOrder
 
getOrderingContext() - Method in class org.mockito.internal.verification.api.VerificationDataInOrderImpl
 
getOuterClassInstance() - Method in class org.mockito.internal.creation.MockSettingsImpl
 
getOuterClassInstance() - Method in class org.mockito.internal.creation.settings.CreationSettings
 
getOuterClassInstance() - Method in interface org.mockito.mock.MockCreationSettings
Used when mocking non-static inner classes in conjunction with MockCreationSettings.isUsingConstructor()
getParameterTypes() - Method in class org.mockito.internal.creation.DelegatingMethod
 
getParameterTypes() - Method in interface org.mockito.internal.invocation.MockitoMethod
 
getParameterTypes() - Method in class org.mockito.internal.invocation.SerializableMethod
 
getPlugins() - Static method in class org.mockito.internal.configuration.plugins.Plugins
 
getPlugins() - Method in class org.mockito.internal.framework.DefaultMockitoFramework
 
getPlugins() - Method in interface org.mockito.MockitoFramework
Returns an object that has access to Mockito plugins.
getPluralizedActualCount() - Method in class org.mockito.internal.reporting.Discrepancy
 
getPluralizedWantedCount() - Method in class org.mockito.internal.reporting.Discrepancy
 
getPluralizedWantedCount() - Method in class org.mockito.internal.verification.checkers.AtLeastDiscrepancy
 
getPollingPeriodMillis() - Method in class org.mockito.internal.verification.VerificationOverTimeImpl
 
getRawArguments() - Method in class org.mockito.internal.invocation.InterceptedInvocation
 
getRawArguments() - Method in interface org.mockito.invocation.Invocation
Returns unprocessed arguments whereas InvocationOnMock.getArguments() returns arguments already processed (e.g.
getRawReturnType() - Method in class org.mockito.internal.invocation.InterceptedInvocation
 
getRawReturnType() - Method in interface org.mockito.invocation.Invocation
Returns unprocessed arguments whereas InvocationOnMock.getArguments() returns arguments already processed (e.g.
getRealMethod() - Method in class org.mockito.internal.invocation.InterceptedInvocation
Deprecated.
Not used by Mockito but by mockito-scala
getRegisteredInvocations() - Method in class org.mockito.internal.stubbing.OngoingStubbingImpl
 
getReturnedValue() - Method in class org.mockito.internal.handler.NotifiedMethodInvocationReport
 
getReturnedValue() - Method in interface org.mockito.listeners.MethodInvocationReport
 
getReturnType() - Method in class org.mockito.internal.creation.DelegatingMethod
 
getReturnType() - Method in interface org.mockito.internal.invocation.MockitoMethod
 
getReturnType() - Method in class org.mockito.internal.invocation.SerializableMethod
 
getSequenceNumber() - Method in class org.mockito.internal.invocation.InterceptedInvocation
 
getSequenceNumber() - Method in interface org.mockito.invocation.Invocation
 
getSerializableMode() - Method in class org.mockito.internal.creation.settings.CreationSettings
 
getSerializableMode() - Method in interface org.mockito.mock.MockCreationSettings
 
getSerializationSupport() - Method in class org.mockito.internal.creation.bytebuddy.MockMethodInterceptor
 
getSourceFile() - Method in class org.mockito.internal.debugging.LocationImpl
 
getSourceFile() - Method in interface org.mockito.invocation.Location
Source file of this location
getSpiedInstance() - Method in class org.mockito.internal.creation.MockSettingsImpl
 
getSpiedInstance() - Method in class org.mockito.internal.creation.settings.CreationSettings
 
getSpiedInstance() - Method in interface org.mockito.mock.MockCreationSettings
the spied instance - needed for spies.
getStackTraceCleaner(StackTraceCleaner) - Method in class org.mockito.internal.exceptions.stacktrace.DefaultStackTraceCleanerProvider
 
getStackTraceCleaner(StackTraceCleaner) - Method in interface org.mockito.plugins.StackTraceCleanerProvider
Allows configuring custom StackTraceCleaner.
getStackTraceCleanerProvider() - Method in class org.mockito.internal.configuration.plugins.PluginRegistry
The implementation of the stack trace cleaner
getStackTraceCleanerProvider() - Static method in class org.mockito.internal.configuration.plugins.Plugins
The implementation of the stack trace cleaner
getStatic(String, Class<?>) - Static method in class org.mockito.internal.creation.bytebuddy.inject.MockMethodDispatcher
 
getStaticFieldValue(String, String) - Static method in class org.mockito.internal.util.JavaEightUtil
Gets a value of the classes' field using reflection to stay backwards-compatible with older JDKs.
getStrictness() - Method in class org.mockito.internal.stubbing.StubbedInvocationMatcher
 
getStrictness() - Method in interface org.mockito.stubbing.Stubbing
Informs about the Strictness level of this stubbing.
getStubbingArgMismatches(Iterable<?>) - Method in class org.mockito.internal.junit.ArgMismatchFinder
 
getStubbingFound() - Method in class org.mockito.internal.listeners.StubbingLookupNotifier.Event
 
getStubbingFound() - Method in interface org.mockito.listeners.StubbingLookupEvent
 
getStubbingInfo() - Method in class org.mockito.internal.debugging.LoggingListener
 
getStubbingLookupListeners() - Method in class org.mockito.internal.creation.settings.CreationSettings
 
getStubbingLookupListeners() - Method in interface org.mockito.mock.MockCreationSettings
getStubbings() - Method in class org.mockito.internal.util.DefaultMockingDetails
 
getStubbings() - Method in interface org.mockito.MockingDetails
Returns stubbings declared on this mock object.
getStubbingsAscending() - Method in class org.mockito.internal.stubbing.InvocationContainerImpl
Stubbings in ascending order, most recent last
getStubbingsDescending() - Method in class org.mockito.internal.stubbing.InvocationContainerImpl
Stubbings in descending order, most recent first
getStubbingStrictness() - Method in class org.mockito.internal.stubbing.DoAnswerStyleStubbing
 
getSuspiciouslyNotMatchingArgsIndexes(List<ArgumentMatcher>, Object[]) - Static method in class org.mockito.internal.verification.argumentmatching.ArgumentMatchingTool
Suspiciously not matching arguments are those that don't match, the toString() representation is the same but types are different.
getTarget() - Method in interface org.mockito.internal.verification.api.VerificationData
The target or wanted invocation.
getTarget() - Method in class org.mockito.internal.verification.VerificationDataImpl
 
getTestName() - Method in class org.mockito.internal.junit.DefaultTestFinishedEvent
 
getTestName() - Method in interface org.mockito.internal.junit.TestFinishedEvent
 
getText() - Method in class org.mockito.internal.matchers.text.FormattedText
 
getThrowable() - Method in class org.mockito.internal.handler.NotifiedMethodInvocationReport
 
getThrowable() - Method in class org.mockito.internal.stubbing.answers.AbstractThrowsException
 
getThrowable() - Method in class org.mockito.internal.stubbing.answers.ThrowsException
 
getThrowable() - Method in class org.mockito.internal.stubbing.answers.ThrowsExceptionForClassType
 
getThrowable() - Method in interface org.mockito.listeners.MethodInvocationReport
 
getTimer() - Method in class org.mockito.internal.verification.VerificationOverTimeImpl
 
getType() - Method in class org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.InlineConstructionMockControl
 
getType() - Method in class org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.InlineStaticMockControl
 
getType() - Method in interface org.mockito.plugins.MockMaker.ConstructionMockControl
 
getType() - Method in interface org.mockito.plugins.MockMaker.StaticMockControl
 
getTypeToMock() - Method in class org.mockito.internal.creation.MockSettingsImpl
 
getTypeToMock() - Method in class org.mockito.internal.creation.settings.CreationSettings
 
getTypeToMock() - Method in interface org.mockito.mock.MockCreationSettings
Mocked type.
getUnfilteredStackTrace() - Method in error org.mockito.exceptions.base.MockitoAssertionError
 
getUnfilteredStackTrace() - Method in exception org.mockito.exceptions.base.MockitoException
 
getUnfilteredStackTrace() - Method in exception org.mockito.exceptions.base.MockitoSerializationIssue
 
getUnfilteredStackTrace() - Method in error org.mockito.exceptions.verification.junit.ArgumentsAreDifferent
 
getUnfilteredStackTrace() - Method in error org.mockito.exceptions.verification.opentest4j.ArgumentsAreDifferent
 
getUnusedStubbings(Iterable<Object>) - Method in class org.mockito.internal.junit.UnusedStubbingsFinder
Gets all unused stubbings for given set of mock objects, in order.
getUnusedStubbingsByLocation(Iterable<Object>) - Method in class org.mockito.internal.junit.UnusedStubbingsFinder
Gets unused stubbings per location.
getValue() - Method in class org.mockito.ArgumentCaptor
Returns the captured value of the argument.
getValue() - Method in class org.mockito.internal.util.concurrent.WeakConcurrentMap.SimpleEntry
 
getVerificationError() - Method in class org.mockito.internal.verification.VerificationEventImpl
 
getVerificationError() - Method in interface org.mockito.verification.VerificationEvent
A nullable Throwable if it is null, the verification succeeded, otherwise the throwable contains the cause of why the verification failed.
getVerificationStartedListeners() - Method in class org.mockito.internal.creation.settings.CreationSettings
 
getVerificationStartedListeners() - Method in interface org.mockito.mock.MockCreationSettings
getWanted() - Method in interface org.mockito.internal.matchers.ContainsExtraTypeInfo
 
getWanted() - Method in class org.mockito.internal.matchers.Equals
 
getWanted() - Method in class org.mockito.internal.reporting.SmartPrinter
 
getWanted() - Method in interface org.mockito.internal.verification.api.VerificationData
Deprecated.
- This internal method leaks internal class InvocationMatcher. Please use VerificationData.getTarget() instead. Deprecated since 2.2.12
getWanted() - Method in interface org.mockito.internal.verification.api.VerificationDataInOrder
 
getWanted() - Method in class org.mockito.internal.verification.api.VerificationDataInOrderImpl
 
getWanted() - Method in class org.mockito.internal.verification.VerificationDataImpl
 
getWantedCount() - Method in class org.mockito.internal.reporting.Discrepancy
 
getWarnings() - Method in class org.mockito.internal.debugging.WarningsCollector
Deprecated.
 
given(T) - Method in interface org.mockito.BDDMockito.BDDStubber
given(T) - Method in class org.mockito.BDDMockito.BDDStubberImpl
 
given(T) - Static method in class org.mockito.BDDMockito
GLOBAL_CONFIGURATION - Static variable in class org.mockito.internal.configuration.GlobalConfiguration
 
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
 
GloballyConfiguredAnswer - Class in org.mockito.internal.stubbing.defaultanswers
Globally configured Answer.
GloballyConfiguredAnswer() - Constructor for class org.mockito.internal.stubbing.defaultanswers.GloballyConfiguredAnswer
 
graphs - Variable in class org.mockito.internal.creation.bytebuddy.MockMethodAdvice
 
GreaterOrEqual<T extends java.lang.Comparable<T>> - Class in org.mockito.internal.matchers
 
GreaterOrEqual(T) - Constructor for class org.mockito.internal.matchers.GreaterOrEqual
 
GreaterThan<T extends java.lang.Comparable<T>> - Class in org.mockito.internal.matchers
 
GreaterThan(T) - Constructor for class org.mockito.internal.matchers.GreaterThan
 
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.
gt(T) - Static method in class org.mockito.AdditionalMatchers
comparable argument greater than the given value.

H

hackClassNameToMatchNewlyCreatedClass(ObjectStreamClass, Class<?>) - Method in class org.mockito.internal.creation.bytebuddy.ByteBuddyCrossClassLoaderSerializationSupport.MockitoMockObjectInputStream
Hack the name field of the given ObjectStreamClass with the newProxyClass.
HamcrestArgumentMatcher<T> - Class in org.mockito.internal.hamcrest
 
HamcrestArgumentMatcher(Matcher<T>) - Constructor for class org.mockito.internal.hamcrest.HamcrestArgumentMatcher
 
handle(Object, Method, Object[]) - Method in class org.mockito.internal.creation.bytebuddy.inject.MockMethodDispatcher
 
handle(Object, Method, Object[]) - Method in class org.mockito.internal.creation.bytebuddy.MockMethodAdvice
 
handle(Invocation) - Method in class org.mockito.internal.handler.InvocationNotifierHandler
 
handle(Invocation) - Method in class org.mockito.internal.handler.MockHandlerImpl
 
handle(Invocation) - Method in class org.mockito.internal.handler.NullResultGuardian
 
handle(Invocation) - Method in interface org.mockito.invocation.MockHandler
Takes an invocation object and handles it.
handleConstruction(Class<?>, Object, Object[], String[]) - Method in class org.mockito.internal.creation.bytebuddy.inject.MockMethodDispatcher
 
handleConstruction(Class<?>, Object, Object[], String[]) - Method in class org.mockito.internal.creation.bytebuddy.MockMethodAdvice
 
handleConstruction(String, Class<?>, Object, Object[], String[]) - Static method in class org.mockito.internal.creation.bytebuddy.inject.MockMethodDispatcher
 
handler - Variable in class org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.InlineStaticMockControl
 
handler - Variable in class org.mockito.internal.creation.bytebuddy.MockMethodInterceptor
 
handler - Variable in class org.mockito.internal.creation.bytebuddy.SubclassBytecodeGenerator
 
handler - Variable in class org.mockito.internal.creation.proxy.ProxyMockMaker.MockInvocationHandler
 
handlerFactory - Variable in class org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.InlineConstructionMockControl
 
handleSpyAnnotation() - Method in class org.mockito.internal.configuration.injection.MockInjection.OngoingMockInjection
 
handleStatic(Class<?>, Method, Object[]) - Method in class org.mockito.internal.creation.bytebuddy.inject.MockMethodDispatcher
 
handleStatic(Class<?>, Method, Object[]) - Method in class org.mockito.internal.creation.bytebuddy.MockMethodAdvice
 
handleVerifyException(AssertionError) - Method in class org.mockito.internal.verification.VerificationOverTimeImpl
 
hasAnswersForStubbing() - Method in class org.mockito.internal.stubbing.InvocationContainerImpl
 
hashCode - Variable in class org.mockito.internal.creation.bytebuddy.SubclassBytecodeGenerator
 
hashCode - Variable in class org.mockito.internal.util.concurrent.WeakConcurrentMap.LatentKey
 
hashCode - Variable in class org.mockito.internal.util.concurrent.WeakConcurrentMap.WeakKey
 
hashCode() - Method in class org.mockito.internal.creation.bytebuddy.TypeCachingBytecodeGenerator.MockitoMockKey
 
hashCode() - Method in class org.mockito.internal.creation.DelegatingMethod
 
hashCode() - Method in class org.mockito.internal.handler.NotifiedMethodInvocationReport
 
hashCode() - Method in class org.mockito.internal.invocation.InterceptedInvocation
 
hashCode() - Method in class org.mockito.internal.invocation.SerializableMethod
 
hashCode() - Method in class org.mockito.internal.matchers.Equals
 
hashCode() - Method in class org.mockito.internal.util.collections.HashCodeAndEqualsMockWrapper
 
hashCode() - Method in class org.mockito.internal.util.collections.HashCodeAndEqualsSafeSet
 
hashCode() - Method in class org.mockito.internal.util.concurrent.WeakConcurrentMap.LatentKey
 
hashCode() - Method in class org.mockito.internal.util.concurrent.WeakConcurrentMap.WeakKey
 
hashCode() - Method in class org.mockito.internal.util.reflection.GenericMetadataSupport.TypeVarBoundedType
 
hashCode() - Method in class org.mockito.internal.util.reflection.GenericMetadataSupport.WildCardBoundedType
 
hashCode() - Method in class org.mockito.internal.util.reflection.InstanceField
 
HashCodeAndEqualsMockWrapper - Class in org.mockito.internal.util.collections
hashCode and equals safe mock wrapper.
HashCodeAndEqualsMockWrapper(Object) - Constructor for class org.mockito.internal.util.collections.HashCodeAndEqualsMockWrapper
 
HashCodeAndEqualsSafeSet - Class in org.mockito.internal.util.collections
hashCode and equals safe hash based set.
HashCodeAndEqualsSafeSet() - Constructor for class org.mockito.internal.util.collections.HashCodeAndEqualsSafeSet
 
hasInvocationForPotentialStubbing() - Method in class org.mockito.internal.stubbing.InvocationContainerImpl
 
hasInvocationListeners() - Method in class org.mockito.internal.creation.MockSettingsImpl
 
hasNext() - Method in class org.mockito.internal.util.concurrent.WeakConcurrentMap.EntryIterator
 
hasNext() - Method in class org.mockito.internal.util.concurrent.WeakConcurrentSet.ReducingIterator
 
hasNonPublicTypeReference(Class<?>) - Static method in class org.mockito.internal.creation.bytebuddy.SubclassBytecodeGenerator
 
hasOuterClassInstance - Variable in class org.mockito.internal.creation.instance.ConstructorInstantiator
Whether or not the constructors used for creating an object refer to an outer instance or not.
hasRawExtraInterfaces() - Method in class org.mockito.internal.util.reflection.GenericMetadataSupport
 
hasSameMethod(Invocation) - Method in class org.mockito.internal.invocation.InvocationMatcher
 
hasSameMethod(Invocation) - Method in interface org.mockito.invocation.MatchableInvocation
Returns true if the candidate invocation has the same method (method name and parameter types)
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
hasSimilarMethod(Invocation) - Method in interface org.mockito.invocation.MatchableInvocation
Candidate invocation has the similar method.
hasTestMethods(Class<?>) - Static method in class org.mockito.internal.runners.util.TestMethodsFinder
 
hideRecursiveCall(Throwable, int, Class<?>) - Static method in class org.mockito.internal.creation.bytebuddy.MockMethodAdvice
 
hint - Variable in class org.mockito.internal.junit.StubbingHint
 

I

ID - Static variable in class org.mockito.internal.util.concurrent.WeakConcurrentMap
 
identifier - Variable in class org.mockito.internal.creation.bytebuddy.MockMethodAdvice.ConstructorShortcut
 
identifier - Variable in class org.mockito.internal.creation.bytebuddy.MockMethodAdvice
 
identifier - Variable in class org.mockito.internal.creation.bytebuddy.MockMethodAdvice.SerializableRealMethodCall
 
IdentitySet - Class in org.mockito.internal.util.collections
 
IdentitySet() - Constructor for class org.mockito.internal.util.collections.IdentitySet
 
ignoreForVerification() - Method in class org.mockito.internal.invocation.InterceptedInvocation
 
ignoreForVerification() - Method in interface org.mockito.invocation.Invocation
Configures this invocation to be ignored for verify-no-more-invocations or verification in order.
ignoreStubs(Object...) - Method in class org.mockito.internal.MockitoCore
 
ignoreStubs(Object...) - Static method in class org.mockito.Mockito
Ignores stubbed methods of given mocks for the sake of verification.
IMockitoConfiguration - Interface in org.mockito.configuration
Use it to configure Mockito.
implementation - Variable in enum org.mockito.Answers
 
incorrectUseOfAdditionalMatchers(String, int, Collection<LocalizedMatcher>) - Static method in class org.mockito.internal.exceptions.Reporter
 
incorrectUseOfApi() - Static method in class org.mockito.internal.exceptions.Reporter
 
Incubating - Annotation Type in org.mockito
The annotation conveys following information: The API is fairly new and we would appreciate your feedback.
IndependentAnnotationEngine - Class in org.mockito.internal.configuration
Initializes fields annotated with @Mock or @Captor.
IndependentAnnotationEngine() - Constructor for class org.mockito.internal.configuration.IndependentAnnotationEngine
 
indexOfNextPair(int) - Static method in class org.mockito.internal.debugging.LoggingListener
 
inferArgumentType(Invocation, int) - Method in class org.mockito.internal.stubbing.answers.ReturnsArgumentAt
 
inferFrom(Type) - Static method in class org.mockito.internal.util.reflection.GenericMetadataSupport
Create an new instance of GenericMetadataSupport inferred from a Type.
inferParameterizedType(Type, String, String) - Static method in class org.mockito.internal.configuration.MockAnnotationProcessor
 
inferWantedArgumentPosition(InvocationOnMock) - Method in class org.mockito.internal.stubbing.answers.ReturnsArgumentAt
 
inheritValue(T) - Method in class org.mockito.internal.util.concurrent.DetachedThreadLocal
 
INITIALIZATION_ERROR - Static variable in class org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker
 
INITIALIZATION_ERROR - Static variable in class org.mockito.internal.util.reflection.InstrumentationMemberAccessor
 
initialize() - Method in class org.mockito.internal.util.reflection.FieldInitializer
Initialize field if not initialized and return the actual instance.
initializeInjectMocksField(Field, Object) - Method in class org.mockito.internal.configuration.injection.PropertyAndSetterInjection
 
initializer - Variable in class org.mockito.internal.configuration.plugins.PluginLoader
 
initialValue(Thread) - Method in class org.mockito.internal.util.concurrent.DetachedThreadLocal
 
initMocks(Object) - Method in class org.mockito.internal.session.DefaultMockitoSessionBuilder
 
initMocks(Object) - Static method in class org.mockito.MockitoAnnotations
Deprecated.
Use MockitoAnnotations.openMocks(Object) instead. This method is equivalent to openMocks(testClass).close(). The close method should however only be called after completed usage of testClass. If using static-mocks or custom MockMakers, using this method might cause misbehavior of mocks injected into the test class.
initMocks(Object) - Method in interface org.mockito.session.MockitoSessionBuilder
Adds the test class instance for initialization of fields annotated with Mockito annotations like Mock.
initMocks(Object...) - Method in class org.mockito.internal.session.DefaultMockitoSessionBuilder
 
initMocks(Object...) - Method in interface org.mockito.session.MockitoSessionBuilder
Adds the test class instances for initialization of fields annotated with Mockito annotations like Mock.
injectCloseableMocks(Object) - Method in class org.mockito.internal.configuration.InjectingAnnotationEngine
Initializes mock/spies dependencies for objects annotated with @InjectMocks for given testClassInstance.
InjectingAnnotationEngine - Class in org.mockito.internal.configuration
InjectingAnnotationEngine() - Constructor for class org.mockito.internal.configuration.InjectingAnnotationEngine
 
injectionBase(ClassLoader, String) - Method in class org.mockito.internal.creation.bytebuddy.ModuleHandler
 
injectionBase(ClassLoader, String) - Method in class org.mockito.internal.creation.bytebuddy.ModuleHandler.ModuleSystemFound
 
injectionBase(ClassLoader, String) - Method in class org.mockito.internal.creation.bytebuddy.ModuleHandler.NoModuleSystemFound
 
InjectionBase - Class in org.mockito.codegen
This class is required to resolve a method handle lookup for the org.mockito.codegen package what requires a preexisting class for the package.
InjectionBase() - Constructor for class org.mockito.codegen.InjectionBase
 
injectionStrategies - Variable in class org.mockito.internal.configuration.injection.MockInjection.OngoingMockInjection
 
injectMockCandidates(Class<?>, Object, Set<Object>) - Method in class org.mockito.internal.configuration.injection.PropertyAndSetterInjection
 
injectMockCandidatesOnFields(Set<Object>, Object, boolean, List<Field>) - Method in class org.mockito.internal.configuration.injection.PropertyAndSetterInjection
 
injectMocks(Object) - Method in class org.mockito.internal.configuration.InjectingAnnotationEngine
InjectMocks - Annotation Type in org.mockito
Mark a field on which injection should be performed.
InjectMocksException - Exception in org.mockito.exceptions.misusing
Thrown when creation of test subject annotated with InjectMocks fails.
InjectMocksException(String, Throwable) - Constructor for exception org.mockito.exceptions.misusing.InjectMocksException
 
injectMocksOnFields(Set<Field>, Set<Object>, Object) - Method in class org.mockito.internal.configuration.DefaultInjectionEngine
 
InjectMocksScanner - Class in org.mockito.internal.configuration.injection.scanner
Scan field for injection.
InjectMocksScanner(Class<?>) - Constructor for class org.mockito.internal.configuration.injection.scanner.InjectMocksScanner
Create a new InjectMocksScanner for the given clazz on the given instance
injectonBaseSuffix - Variable in class org.mockito.internal.creation.bytebuddy.ModuleHandler.ModuleSystemFound
 
INLINE - org.mockito.internal.util.concurrent.DetachedThreadLocal.Cleaner
 
INLINE - org.mockito.internal.util.concurrent.WeakConcurrentSet.Cleaner
 
INLINE_ALIAS - Static variable in class org.mockito.internal.configuration.plugins.DefaultMockitoPlugins
 
InlineByteBuddyMockMaker - Class in org.mockito.internal.creation.bytebuddy
 
InlineByteBuddyMockMaker() - Constructor for class org.mockito.internal.creation.bytebuddy.InlineByteBuddyMockMaker
 
InlineByteBuddyMockMaker(InlineDelegateByteBuddyMockMaker) - Constructor for class org.mockito.internal.creation.bytebuddy.InlineByteBuddyMockMaker
 
InlineBytecodeGenerator - Class in org.mockito.internal.creation.bytebuddy
 
InlineBytecodeGenerator(Instrumentation, WeakConcurrentMap<Object, MockMethodInterceptor>, DetachedThreadLocal<Map<Class<?>, MockMethodInterceptor>>, Predicate<Class<?>>, ConstructionCallback) - Constructor for class org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator
 
InlineBytecodeGenerator.ParameterWritingVisitorWrapper - Class in org.mockito.internal.creation.bytebuddy
 
InlineBytecodeGenerator.ParameterWritingVisitorWrapper.MethodParameterStrippingMethodVisitor - Class in org.mockito.internal.creation.bytebuddy
 
InlineBytecodeGenerator.ParameterWritingVisitorWrapper.ParameterAddingClassVisitor - Class in org.mockito.internal.creation.bytebuddy
 
inlineClassWithoutUnboxImpl(Class<?>, Exception) - Static method in class org.mockito.internal.exceptions.Reporter
 
InlineConstructionMockContext(Object[], Class<?>, String[]) - Constructor for class org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.InlineConstructionMockContext
 
InlineConstructionMockControl(Class<T>, Function<MockedConstruction.Context, MockCreationSettings<T>>, Function<MockedConstruction.Context, MockHandler<T>>, MockedConstruction.MockInitializer<T>, Map<Class<?>, BiConsumer<Object, MockedConstruction.Context>>) - Constructor for class org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.InlineConstructionMockControl
 
inlineDelegateByteBuddyMockMaker - Variable in class org.mockito.internal.creation.bytebuddy.InlineByteBuddyMockMaker
 
InlineDelegateByteBuddyMockMaker - Class in org.mockito.internal.creation.bytebuddy
Agent and subclass based mock maker.
InlineDelegateByteBuddyMockMaker() - Constructor for class org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker
 
InlineDelegateByteBuddyMockMaker.InlineConstructionMockContext - Class in org.mockito.internal.creation.bytebuddy
 
InlineDelegateByteBuddyMockMaker.InlineConstructionMockControl<T> - Class in org.mockito.internal.creation.bytebuddy
 
InlineDelegateByteBuddyMockMaker.InlineStaticMockControl<T> - Class in org.mockito.internal.creation.bytebuddy
 
InlineMockMaker - Interface in org.mockito.plugins
Extension to MockMaker for mock makers that changes inline method implementations and need keep track of created mock objects.
InlineStaticMockControl(Class<T>, Map<Class<?>, MockMethodInterceptor>, MockCreationSettings<T>, MockHandler) - Constructor for class org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.InlineStaticMockControl
 
inOrder - Variable in class org.mockito.internal.verification.api.VerificationDataInOrderImpl
 
inOrder - Variable in class org.mockito.internal.verification.InOrderWrapper
 
inOrder(Object...) - Method in class org.mockito.internal.MockitoCore
 
inOrder(Object...) - Static method in class org.mockito.Mockito
Creates InOrder object that allows verifying mocks in order.
InOrder - Interface in org.mockito
Allows verification in order.
inOrderContext - Variable in class org.mockito.internal.InOrderImpl
 
InOrderContext - Interface in org.mockito.internal.verification.api
 
InOrderContextImpl - Class in org.mockito.internal.verification
 
InOrderContextImpl() - Constructor for class org.mockito.internal.verification.InOrderContextImpl
 
InOrderImpl - Class in org.mockito.internal
Allows verifying in order.
InOrderImpl(List<?>) - Constructor for class org.mockito.internal.InOrderImpl
 
inOrderRequiresFamiliarMock() - Static method in class org.mockito.internal.exceptions.Reporter
 
InOrderWrapper - Class in org.mockito.internal.verification
 
InOrderWrapper(VerificationInOrderMode, InOrderImpl) - Constructor for class org.mockito.internal.verification.InOrderWrapper
 
instance - Variable in class org.mockito.internal.configuration.injection.scanner.MockScanner
 
instance - Variable in class org.mockito.internal.util.reflection.Fields.InstanceFields
 
instance - Variable in class org.mockito.internal.util.reflection.InstanceField
 
INSTANCE - org.mockito.internal.invocation.RealMethod.IsIllegal
 
INSTANCE - Static variable in class org.mockito.internal.creation.bytebuddy.TypeSupport
 
INSTANCE - Static variable in class org.mockito.internal.creation.instance.DefaultInstantiatorProvider
 
InstanceField - Class in org.mockito.internal.util.reflection
Represents an accessible instance field.
InstanceField(Field, Object) - Constructor for class org.mockito.internal.util.reflection.InstanceField
Create a new InstanceField.
instanceFields - Variable in class org.mockito.internal.util.reflection.Fields.InstanceFields
 
instanceFields() - Method in class org.mockito.internal.util.reflection.Fields.InstanceFields
 
InstanceFields(Object, List<InstanceField>) - Constructor for class org.mockito.internal.util.reflection.Fields.InstanceFields
 
instanceFieldsIn(Object, Field[]) - Static method in class org.mockito.internal.util.reflection.Fields
 
instanceLocalCurrentlySerializingFlag - Variable in class org.mockito.internal.creation.bytebuddy.ByteBuddyCrossClassLoaderSerializationSupport
 
InstanceOf - Class in org.mockito.internal.matchers
 
InstanceOf(Class<?>) - Constructor for class org.mockito.internal.matchers.InstanceOf
 
InstanceOf(Class<?>, String) - Constructor for class org.mockito.internal.matchers.InstanceOf
 
InstanceOf.VarArgAware - Class in org.mockito.internal.matchers
 
instanceRef - Variable in class org.mockito.internal.creation.bytebuddy.MockMethodAdvice.RealMethodCall
 
instanceRef - Variable in class org.mockito.internal.creation.bytebuddy.MockMethodAdvice.SerializableRealMethodCall
 
instantiate() - Method in interface org.mockito.internal.util.reflection.FieldInitializer.ConstructorInstantiator
 
instantiate() - Method in class org.mockito.internal.util.reflection.FieldInitializer.NoArgConstructorInstantiator
 
instantiate() - Method in class org.mockito.internal.util.reflection.FieldInitializer.ParameterizedConstructorInstantiator
 
InstantiationException - Exception in org.mockito.creation.instance
Exception generated when Instantiator.newInstance(Class) failed.
InstantiationException - Exception in org.mockito.internal.creation.instance
Deprecated.
since 2.15.4 because this internal class was leaking from the public API. For information why deprecated, see InstantiatorProvider2. Use Instantiator and InstantiationException types instead.

Exception generated when Instantiator.newInstance(Class) failed.

InstantiationException(String) - Constructor for exception org.mockito.creation.instance.InstantiationException
 
InstantiationException(String, Throwable) - Constructor for exception org.mockito.creation.instance.InstantiationException
 
InstantiationException(String, Throwable) - Constructor for exception org.mockito.internal.creation.instance.InstantiationException
Deprecated.
 
instantiator - Variable in class org.mockito.internal.util.reflection.FieldInitializer
 
Instantiator - Interface in org.mockito.creation.instance
Provides instances of classes.
Instantiator - Interface in org.mockito.internal.creation.instance
Deprecated.
since 2.15.4 because this internal class was leaking from the public API. For more information why deprecated, see InstantiatorProvider2. Use Instantiator instead.

Provides instances of classes.

instantiatorProvider - Variable in class org.mockito.internal.configuration.plugins.PluginRegistry
 
InstantiatorProvider - Interface in org.mockito.plugins
Deprecated.
since 2.15.4 because this internal class was leaking from the public API. For more information why deprecated, see InstantiatorProvider2 and Issue 1303

Mockito will invoke this interface in order to fetch an instance instantiator provider.

By default, an internal byte-buddy/asm/objenesis based implementation is used.

Using the extension point

The plugin mechanism of mockito works in a similar way as the ServiceLoader, however instead of looking in the META-INF directory, Mockito will look in mockito-extensions directory. The reason for that is that Android SDK strips jar from the META-INF directory when creating an APK.

  1. The implementation itself, for example org.awesome.mockito.AwesomeInstantiatorProvider that implements the InstantiatorProvider.
  2. A file "mockito-extensions/org.mockito.plugins.InstantiatorProvider". The content of this file is exactly a one line with the qualified name: org.awesome.mockito.AwesomeInstantiatorProvider.

Note that if several mockito-extensions/org.mockito.plugins.InstantiatorProvider files exists in the classpath, Mockito will only use the first returned by the standard ClassLoader.getResource(java.lang.String) mechanism.

So just create a custom implementation of InstantiatorProvider and place the qualified name in the following file mockito-extensions/org.mockito.plugins.InstantiatorProvider.

This class is deprecated and was replaced by InstantiatorProvider2. Hence if there is both a mockito-extensions/org.mockito.plugins.InstantiatorProvider and mockito-extensions/org.mockito.plugins.InstantiatorProvider2 the second one takes preference.

InstantiatorProvider2 - Interface in org.mockito.plugins
Mockito will invoke this interface in order to fetch an instance instantiator provider.
InstantiatorProvider2Adapter - Class in org.mockito.internal.creation.instance
Adapts new public API InstantiatorProvider2 onto old, deprecated API InstantiatorProvider
InstantiatorProvider2Adapter(InstantiatorProvider2) - Constructor for class org.mockito.internal.creation.instance.InstantiatorProvider2Adapter
 
InstantiatorProviderAdapter - Class in org.mockito.internal.creation.instance
Adapts old, deprecated InstantiatorProvider onto a new public InstantiatorProvider2 API.
InstantiatorProviderAdapter(InstantiatorProvider) - Constructor for class org.mockito.internal.creation.instance.InstantiatorProviderAdapter
 
instrumentation - Variable in class org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator
 
INSTRUMENTATION - Static variable in class org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker
 
INSTRUMENTATION - Static variable in class org.mockito.internal.util.reflection.InstrumentationMemberAccessor
 
InstrumentationMemberAccessor - Class in org.mockito.internal.util.reflection
 
InstrumentationMemberAccessor() - Constructor for class org.mockito.internal.util.reflection.InstrumentationMemberAccessor
 
InstrumentationMemberAccessor.Dispatcher - Interface in org.mockito.internal.util.reflection
 
interceptAbstract(Object, MockMethodInterceptor, Object, Method, Object[]) - Static method in class org.mockito.internal.creation.bytebuddy.MockMethodInterceptor.DispatcherDefaultingToRealMethod
 
InterceptedInvocation - Class in org.mockito.internal.invocation
 
InterceptedInvocation(MockReference<Object>, MockitoMethod, Object[], RealMethod, Location, int) - Constructor for class org.mockito.internal.invocation.InterceptedInvocation
 
interceptors - Variable in class org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.InlineConstructionMockControl
 
interceptors - Variable in class org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.InlineStaticMockControl
 
interceptors - Variable in class org.mockito.internal.creation.bytebuddy.MockMethodAdvice
 
interceptSuperCallable(Object, MockMethodInterceptor, Method, Object[], Callable<?>) - Static method in class org.mockito.internal.creation.bytebuddy.MockMethodInterceptor.DispatcherDefaultingToRealMethod
 
interfaceBounds() - Method in interface org.mockito.internal.util.reflection.GenericMetadataSupport.BoundedType
 
interfaceBounds() - Method in class org.mockito.internal.util.reflection.GenericMetadataSupport.TypeVarBoundedType
On a Type Variable (typeVar extends C_0 & I_1 & I_2 & etc), will return an array containing I_1 and I_2.
interfaceBounds() - Method in class org.mockito.internal.util.reflection.GenericMetadataSupport.WildCardBoundedType
 
interfaces - Variable in class org.mockito.internal.creation.bytebuddy.MockFeatures
 
InternalMockHandler<T> - Interface in org.mockito.internal
Deprecated.
InternalRunner - Interface in org.mockito.internal.runners
I'm using this surrogate interface to hide internal Runner implementations.
intThat(Matcher<Integer>) - Static method in class org.mockito.hamcrest.MockitoHamcrest
Enables integrating hamcrest matchers that match primitive int arguments.
intThat(ArgumentMatcher<Integer>) - Static method in class org.mockito.ArgumentMatchers
Allows creating custom int argument matchers.
invalidArgumentPositionRangeAtInvocationTime(InvocationOnMock, boolean, int) - Static method in class org.mockito.internal.exceptions.Reporter
 
invalidArgumentRangeAtIdentityAnswerCreationTime() - Static method in class org.mockito.internal.exceptions.Reporter
 
invalidUseOfMatchers(int, List<LocalizedMatcher>) - Static method in class org.mockito.internal.exceptions.Reporter
 
InvalidUseOfMatchersException - Exception in org.mockito.exceptions.misusing
 
InvalidUseOfMatchersException() - Constructor for exception org.mockito.exceptions.misusing.InvalidUseOfMatchersException
 
InvalidUseOfMatchersException(String) - Constructor for exception org.mockito.exceptions.misusing.InvalidUseOfMatchersException
 
invocation - Variable in class org.mockito.internal.handler.NotifiedMethodInvocationReport
 
invocation - Variable in class org.mockito.internal.invocation.InvocationMatcher
 
invocation - Variable in class org.mockito.internal.invocation.MatcherApplicationStrategy
 
invocation - Variable in class org.mockito.internal.listeners.StubbingLookupNotifier.Event
 
invocation - Variable in class org.mockito.internal.stubbing.answers.InvocationInfo
 
invocation - Variable in class org.mockito.internal.verification.SingleRegisteredInvocation
 
Invocation - Interface in org.mockito.invocation
A method call on a mock object.
invocationComparator - Variable in class org.mockito.internal.stubbing.StubbingComparator
 
InvocationComparator - Class in org.mockito.internal.invocation
Compares invocations based on the sequence number
InvocationComparator() - Constructor for class org.mockito.internal.invocation.InvocationComparator
 
invocationContainer - Variable in class org.mockito.internal.handler.MockHandlerImpl
 
invocationContainer - Variable in class org.mockito.internal.stubbing.ConsecutiveStubbing
 
invocationContainer - Variable in class org.mockito.internal.stubbing.OngoingStubbingImpl
 
InvocationContainer - Interface in org.mockito.invocation
Although this class is a part of public API, please don't provide your own implementations.
InvocationContainerImpl - Class in org.mockito.internal.stubbing
 
InvocationContainerImpl(MockCreationSettings) - Constructor for class org.mockito.internal.stubbing.InvocationContainerImpl
 
InvocationFactory - Interface in org.mockito.invocation
InvocationFactory.RealMethodBehavior<R> - Interface in org.mockito.invocation
Behavior of the real method.
invocationForStubbing - Variable in class org.mockito.internal.stubbing.InvocationContainerImpl
 
InvocationInfo - Class in org.mockito.internal.stubbing.answers
 
InvocationInfo(InvocationOnMock) - Constructor for class org.mockito.internal.stubbing.answers.InvocationInfo
 
InvocationListener - Interface in org.mockito.listeners
This listener can be notified of method invocations on a mock.
invocationListeners - Variable in class org.mockito.internal.creation.settings.CreationSettings
 
invocationListeners - Variable in class org.mockito.internal.handler.InvocationNotifierHandler
 
invocationListeners(InvocationListener...) - Method in class org.mockito.internal.creation.MockSettingsImpl
 
invocationListeners(InvocationListener...) - Method in interface org.mockito.MockSettings
Registers a listener for method invocations on this mock.
invocationListenersContainsType(Class<?>) - Method in class org.mockito.internal.creation.MockSettingsImpl
 
invocationListenerThrewException(InvocationListener, Throwable) - Static method in class org.mockito.internal.exceptions.Reporter
 
InvocationMarker - Class in org.mockito.internal.invocation
 
InvocationMarker() - Constructor for class org.mockito.internal.invocation.InvocationMarker
 
InvocationMatcher - Class in org.mockito.internal.invocation
In addition to all content of the invocation, the invocation matcher contains the argument matchers.
InvocationMatcher(Invocation) - Constructor for class org.mockito.internal.invocation.InvocationMatcher
 
InvocationMatcher(Invocation, List<ArgumentMatcher>) - Constructor for class org.mockito.internal.invocation.InvocationMatcher
 
InvocationNotifierHandler<T> - Class in org.mockito.internal.handler
Handler, that call all listeners wanted for this mock, before delegating it to the parameterized handler.
InvocationNotifierHandler(MockHandler<T>, MockCreationSettings<T>) - Constructor for class org.mockito.internal.handler.InvocationNotifierHandler
 
InvocationOnMock - Interface in org.mockito.invocation
An invocation on a mock.
invocations - Variable in class org.mockito.internal.verification.DefaultRegisteredInvocations
 
invocations - Variable in class org.mockito.internal.verification.VerificationDataImpl
 
InvocationsFinder - Class in org.mockito.internal.invocation
 
InvocationsFinder() - Constructor for class org.mockito.internal.invocation.InvocationsFinder
 
InvocationsFinder.RemoveNotMatching - Class in org.mockito.internal.invocation
 
InvocationsFinder.RemoveUnverifiedInOrder - Class in org.mockito.internal.invocation
 
InvocationsPrinter - Class in org.mockito.internal.debugging
Prints invocations in human-readable, printable way
InvocationsPrinter() - Constructor for class org.mockito.internal.debugging.InvocationsPrinter
 
invoke() - Method in class org.mockito.internal.creation.bytebuddy.MockMethodAdvice.RealMethodCall
 
invoke() - Method in class org.mockito.internal.creation.bytebuddy.MockMethodAdvice.SerializableRealMethodCall
 
invoke() - Method in class org.mockito.internal.creation.bytebuddy.MockMethodAdvice.StaticMethodCall
 
invoke() - Method in class org.mockito.internal.creation.proxy.ProxyMockMaker.RealDefaultMethod
 
invoke() - Method in class org.mockito.internal.invocation.RealMethod.FromBehavior
 
invoke() - Method in interface org.mockito.internal.invocation.RealMethod
 
invoke() - Method in enum org.mockito.internal.invocation.RealMethod.IsIllegal
 
invoke(Object, Method, Object[]) - Method in class org.mockito.internal.creation.proxy.ProxyMockMaker.MockInvocationHandler
 
invoke(Method, Object, Object...) - Static method in class org.mockito.internal.creation.bytebuddy.ModuleHandler.ModuleSystemFound
 
invoke(Method, Object, Object...) - Method in class org.mockito.internal.util.reflection.InstrumentationMemberAccessor
 
invoke(Method, Object, Object...) - Method in class org.mockito.internal.util.reflection.ModuleMemberAccessor
 
invoke(Method, Object, Object...) - Method in class org.mockito.internal.util.reflection.ReflectionMemberAccessor
 
invoke(Method, Object, Object...) - Method in interface org.mockito.plugins.MemberAccessor
 
invoke(MemberAccessor.ConstructionDispatcher) - Method in interface org.mockito.plugins.MemberAccessor.OnConstruction
 
invokeConstructor(Constructor<?>, Object...) - Static method in class org.mockito.internal.creation.instance.ConstructorInstantiator
 
invokeDefault - Variable in class org.mockito.internal.creation.proxy.ProxyMockMaker
 
invokedMock() - Method in class org.mockito.internal.stubbing.InvocationContainerImpl
 
invokeNullaryFactoryMethod(String, String) - Static method in class org.mockito.internal.util.JavaEightUtil
Invokes a nullary static factory method using reflection to stay backwards-compatible with older JDKs.
invokeSuper(Object, Object[]) - Method in interface org.mockito.internal.creation.util.MockitoMethodProxy
 
invokeWithArguments(MethodHandle, Object...) - Method in interface org.mockito.internal.util.reflection.InstrumentationMemberAccessor.Dispatcher
 
IOUtil - Class in org.mockito.internal.util.io
IO utils.
IOUtil() - Constructor for class org.mockito.internal.util.io.IOUtil
 
isA(Class<T>) - Static method in class org.mockito.ArgumentMatchers
Object argument that implements the given class.
isAbstract - Variable in class org.mockito.internal.invocation.SerializableMethod
 
isAbstract() - Method in class org.mockito.internal.creation.DelegatingMethod
 
isAbstract() - Method in interface org.mockito.internal.invocation.AbstractAwareMethod
 
isAbstract() - Method in class org.mockito.internal.invocation.SerializableMethod
 
isAbstract() - Method in class org.mockito.internal.stubbing.answers.InvocationInfo
 
isAndroid() - Static method in class org.mockito.internal.util.Platform
 
isAndroidMockMakerRequired() - Static method in class org.mockito.internal.util.Platform
 
isAnnotatedBy(Class<? extends Annotation>) - Method in class org.mockito.internal.util.reflection.InstanceField
Check if the field is annotated by the given annotation.
isAnnotatedByMockOrSpy(Field) - Method in class org.mockito.internal.configuration.injection.scanner.MockScanner
 
isArray(Object) - Static method in class org.mockito.internal.matchers.Equality
 
isAssignableFromWrapper(Class<?>, Class<?>) - Static method in class org.mockito.internal.util.Primitives
 
isClosed() - Method in class org.mockito.internal.MockedConstructionImpl
 
isClosed() - Method in class org.mockito.internal.MockedStaticImpl
 
isClosed() - Method in interface org.mockito.ScopedMock
Checks if this mock is closed.
isComingFromJDK(Class<?>) - Method in class org.mockito.internal.creation.bytebuddy.SubclassBytecodeGenerator
 
isCompareToMethod(Method) - Static method in class org.mockito.internal.util.ObjectMethodsGuru
 
isCompatible(ArgumentMatcher<?>, Object) - Static method in class org.mockito.internal.invocation.TypeSafeMatching
Returns true if the given argument can be passed to the given argumentMatcher without causing a ClassCastException.
isConstructorMock(Class<?>) - Method in class org.mockito.internal.creation.bytebuddy.inject.MockMethodDispatcher
 
isConstructorMock(Class<?>) - Method in class org.mockito.internal.creation.bytebuddy.MockMethodAdvice
 
isConstructorMock(String, Class<?>) - Static method in class org.mockito.internal.creation.bytebuddy.inject.MockMethodDispatcher
 
isContinuationType(Class<?>) - Static method in class org.mockito.internal.creation.SuspendMethod
 
isCounting() - Method in class org.mockito.internal.util.Timer
Informs whether the timer is still counting down.
isDeclaredOnInterface() - Method in class org.mockito.internal.stubbing.answers.InvocationInfo
 
isDefault() - Method in class org.mockito.internal.util.MockNameImpl
 
isDefault() - Method in interface org.mockito.mock.MockName
default name means generated by Mockito.
isDisrespectingOpenness() - Method in class org.mockito.internal.creation.bytebuddy.SubclassInjectionLoader
 
isDisrespectingOpenness() - Method in class org.mockito.internal.creation.bytebuddy.SubclassInjectionLoader.WithLookup
 
isDisrespectingOpenness() - Method in class org.mockito.internal.creation.bytebuddy.SubclassInjectionLoader.WithReflection
 
isDisrespectingOpenness() - Method in interface org.mockito.internal.creation.bytebuddy.SubclassLoader
Checks if this loader does not require a module to be open.
isEmpty() - Method in class org.mockito.internal.util.collections.HashCodeAndEqualsSafeSet
 
isEmpty() - Method in class org.mockito.internal.verification.DefaultRegisteredInvocations
 
isEmpty() - Method in interface org.mockito.internal.verification.RegisteredInvocations
 
isEmpty() - Method in class org.mockito.internal.verification.SingleRegisteredInvocation
 
isEmpty(String) - Method in class org.mockito.internal.junit.util.JUnitFailureHacker
Deprecated.
 
isEnabled(String) - Method in class org.mockito.internal.configuration.plugins.DefaultPluginSwitch
 
isEnabled(String) - Method in interface org.mockito.plugins.PluginSwitch
Mockito invokes this method for every plugin found in the classpath (except from the PluginSwitch implementation itself).
isEquals - Variable in class org.mockito.internal.matchers.apachecommons.EqualsBuilder
If the fields tested are equals.
isEquals() - Method in class org.mockito.internal.matchers.apachecommons.EqualsBuilder
Returns true if the fields that have been checked are all equal.
isExported - Variable in class org.mockito.internal.creation.bytebuddy.ModuleHandler.ModuleSystemFound
 
isExported(Class<?>) - Method in class org.mockito.internal.creation.bytebuddy.ModuleHandler
 
isExported(Class<?>) - Method in class org.mockito.internal.creation.bytebuddy.ModuleHandler.ModuleSystemFound
 
isExported(Class<?>) - Method in class org.mockito.internal.creation.bytebuddy.ModuleHandler.NoModuleSystemFound
 
isExported(Class<?>, Class<?>) - Method in class org.mockito.internal.creation.bytebuddy.ModuleHandler
 
isExported(Class<?>, Class<?>) - Method in class org.mockito.internal.creation.bytebuddy.ModuleHandler.ModuleSystemFound
 
isExported(Class<?>, Class<?>) - Method in class org.mockito.internal.creation.bytebuddy.ModuleHandler.NoModuleSystemFound
 
isExportedUnqualified - Variable in class org.mockito.internal.creation.bytebuddy.ModuleHandler.ModuleSystemFound
 
isFromMockito(String) - Static method in class org.mockito.internal.exceptions.stacktrace.DefaultStackTraceCleaner
 
isFromMockitoRule(String) - Static method in class org.mockito.internal.exceptions.stacktrace.DefaultStackTraceCleaner
 
isFromMockitoRunner(String) - Static method in class org.mockito.internal.exceptions.stacktrace.DefaultStackTraceCleaner
 
isGroovyMethod() - Static method in class org.mockito.internal.creation.bytebuddy.SubclassBytecodeGenerator
 
isIgnoredForVerification - Variable in class org.mockito.internal.invocation.InterceptedInvocation
 
isIgnoredForVerification() - Method in class org.mockito.internal.invocation.InterceptedInvocation
 
isIgnoredForVerification() - Method in interface org.mockito.invocation.Invocation
Informs if the invocation participates in verify-no-more-invocations or verification in order.
IsIllegal() - Constructor for enum org.mockito.internal.invocation.RealMethod.IsIllegal
 
isIn(StackTraceElement) - Method in interface org.mockito.exceptions.stacktrace.StackTraceCleaner
Decides if element is included.
isIn(StackTraceElement) - Method in class org.mockito.internal.exceptions.stacktrace.DefaultStackTraceCleaner
 
isInlineClassWithAssignableUnderlyingType(Class<?>, Class<?>) - Static method in class org.mockito.internal.util.KotlinInlineClassUtil
 
isInvokable() - Method in class org.mockito.internal.creation.bytebuddy.MockMethodAdvice.RealMethodCall
 
isInvokable() - Method in class org.mockito.internal.creation.bytebuddy.MockMethodAdvice.SerializableRealMethodCall
 
isInvokable() - Method in class org.mockito.internal.creation.bytebuddy.MockMethodAdvice.StaticMethodCall
 
isInvokable() - Method in class org.mockito.internal.creation.proxy.ProxyMockMaker.RealDefaultMethod
 
isInvokable() - Method in class org.mockito.internal.invocation.RealMethod.FromBehavior
 
isInvokable() - Method in enum org.mockito.internal.invocation.RealMethod.IsIllegal
 
isInvokable() - Method in interface org.mockito.internal.invocation.RealMethod
 
isJava8BelowUpdate45() - Static method in class org.mockito.internal.util.Platform
 
isJava8BelowUpdate45(String) - Static method in class org.mockito.internal.util.Platform
 
isLastMatcherVarargMatcher(List<ArgumentMatcher<?>>) - Static method in class org.mockito.internal.invocation.MatcherApplicationStrategy
 
isLenient() - Method in class org.mockito.internal.creation.settings.CreationSettings
 
isLenient() - Method in interface org.mockito.mock.MockCreationSettings
Informs if the mock was created with "lenient" strictness, e.g.
isListenerDirty() - Method in class org.mockito.internal.junit.UniversalTestListener
isListenerDirty() - Method in interface org.mockito.internal.listeners.AutoCleanableListener
Indicates that the listener is dirty and should be removed from the subscribers
isMatchesMethod(Method) - Static method in class org.mockito.internal.invocation.TypeSafeMatching
Returns true if the given method is ArgumentMatcher.matches(Object)
isMismatchesReported() - Method in class org.mockito.internal.junit.DefaultStubbingLookupListener
Indicates that stubbing argument mismatch was reported
isMock() - Method in class org.mockito.internal.util.DefaultMockingDetails
 
isMock() - Method in interface org.mockito.MockingDetails
Informs if the object is a mock.
isMock(Object) - Method in class org.mockito.internal.creation.bytebuddy.inject.MockMethodDispatcher
 
isMock(Object) - Method in class org.mockito.internal.creation.bytebuddy.MockMethodAdvice
 
isMock(Object) - Static method in class org.mockito.internal.util.MockUtil
 
isMockConstruction - Variable in class org.mockito.internal.creation.bytebuddy.MockMethodAdvice
 
isMockDispatcher(String) - Static method in class org.mockito.internal.exceptions.stacktrace.DefaultStackTraceCleaner
 
isMocked(Object) - Method in class org.mockito.internal.creation.bytebuddy.inject.MockMethodDispatcher
 
isMocked(Object) - Method in class org.mockito.internal.creation.bytebuddy.MockMethodAdvice
 
isMockedStatic(Class<?>) - Method in class org.mockito.internal.creation.bytebuddy.inject.MockMethodDispatcher
 
isMockedStatic(Class<?>) - Method in class org.mockito.internal.creation.bytebuddy.MockMethodAdvice
 
isMockOrSpy(Object) - Method in class org.mockito.internal.configuration.injection.scanner.MockScanner
 
isMultiline() - Method in class org.mockito.internal.reporting.PrintSettings
 
isMultiLine(MatchableInvocation, List<Invocation>) - Static method in class org.mockito.internal.reporting.SmartPrinter
 
isNotNull() - Static method in class org.mockito.ArgumentMatchers
Not null argument.
isNotNull(Class<T>) - Static method in class org.mockito.ArgumentMatchers
Deprecated.
With Java 8 this method will be removed in Mockito 4.0. This method is only used for generic friendliness to avoid casting, this is not anymore needed in Java 8.
isNull() - Static method in class org.mockito.ArgumentMatchers
null argument.
isNull() - Method in class org.mockito.internal.util.reflection.FieldReader
 
isNull() - Method in class org.mockito.internal.util.reflection.InstanceField
Check that the field is not null.
isNull(Class<T>) - Static method in class org.mockito.ArgumentMatchers
Deprecated.
With Java 8 this method will be removed in Mockito 4.0. This method is only used for generic friendliness to avoid casting, this is not anymore needed in Java 8.
isNullOrEmpty(T[]) - Static method in class org.mockito.internal.invocation.ArgumentsProcessor
 
isOpen - Variable in class org.mockito.internal.creation.bytebuddy.ModuleHandler.ModuleSystemFound
 
isOpen - Variable in class org.mockito.internal.util.reflection.InstrumentationMemberAccessor
 
isOpened(Class<?>, Class<?>) - Method in class org.mockito.internal.creation.bytebuddy.ModuleHandler
 
isOpened(Class<?>, Class<?>) - Method in class org.mockito.internal.creation.bytebuddy.ModuleHandler.ModuleSystemFound
 
isOpened(Class<?>, Class<?>) - Method in class org.mockito.internal.creation.bytebuddy.ModuleHandler.NoModuleSystemFound
 
isOut(Invocation) - Method in class org.mockito.internal.invocation.finder.VerifiableInvocationsFinder.RemoveIgnoredForVerification
 
isOut(Invocation) - Method in class org.mockito.internal.invocation.InvocationsFinder.RemoveNotMatching
 
isOut(Invocation) - Method in class org.mockito.internal.invocation.InvocationsFinder.RemoveUnverifiedInOrder
 
isOut(Invocation) - Method in class org.mockito.internal.verification.DefaultRegisteredInvocations.RemoveToString
 
isOut(T) - Method in interface org.mockito.internal.util.collections.ListUtil.Filter
 
isOverridden(Object, Method) - Method in class org.mockito.internal.creation.bytebuddy.inject.MockMethodDispatcher
 
isOverridden(Object, Method) - Method in class org.mockito.internal.creation.bytebuddy.MockMethodAdvice
 
isPrimitiveOrWrapper(Class<?>) - Static method in class org.mockito.internal.util.Primitives
Indicates if the given class is primitive type or a primitive wrapper.
isReturnOnSuccess() - Method in class org.mockito.internal.verification.VerificationOverTimeImpl
 
isSealed - Variable in class org.mockito.internal.creation.bytebuddy.TypeSupport
 
isSealed(Class<?>) - Method in class org.mockito.internal.creation.bytebuddy.TypeSupport
 
isSerializable() - Method in class org.mockito.internal.creation.settings.CreationSettings
 
isSerializable() - Method in interface org.mockito.mock.MockCreationSettings
if the mock is serializable, see MockSettings.serializable().
isSet() - Method in class org.mockito.internal.stubbing.DoAnswerStyleStubbing
 
isSpy() - Method in class org.mockito.internal.util.DefaultMockingDetails
 
isSpy() - Method in interface org.mockito.MockingDetails
Informs if the object is a spy.
isSpy(Object) - Static method in class org.mockito.internal.util.MockUtil
 
isStripAnnotations() - Method in class org.mockito.internal.creation.settings.CreationSettings
 
isStripAnnotations() - Method in interface org.mockito.mock.MockCreationSettings
Whether the mock should not make a best effort to preserve annotations.
isStubOnly() - Method in class org.mockito.internal.creation.MockSettingsImpl
 
isStubOnly() - Method in class org.mockito.internal.creation.settings.CreationSettings
 
isStubOnly() - Method in interface org.mockito.mock.MockCreationSettings
Whether the mock is only for stubbing, i.e.
isSuccessful() - Method in class org.mockito.internal.runners.util.FailureDetector
 
isSynthetic() - Method in class org.mockito.internal.util.reflection.InstanceField
Check if the field is synthetic.
isToStringMethod(Method) - Static method in class org.mockito.internal.util.ObjectMethodsGuru
 
isTypeMockable(Class<?>) - Method in class org.mockito.internal.creation.bytebuddy.ByteBuddyMockMaker
 
isTypeMockable(Class<?>) - Method in class org.mockito.internal.creation.bytebuddy.InlineByteBuddyMockMaker
 
isTypeMockable(Class<?>) - Method in class org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker
 
isTypeMockable(Class<?>) - Method in class org.mockito.internal.creation.bytebuddy.SubclassByteBuddyMockMaker
 
isTypeMockable(Class<?>) - Method in class org.mockito.internal.creation.proxy.ProxyMockMaker
 
isTypeMockable(Class<?>) - Method in class org.mockito.internal.MockitoCore
 
isTypeMockable(Class<?>) - Method in interface org.mockito.plugins.MockMaker
Indicates if the given type can be mocked by this mockmaker.
isUsingConstructor() - Method in class org.mockito.internal.creation.MockSettingsImpl
 
isUsingConstructor() - Method in class org.mockito.internal.creation.settings.CreationSettings
 
isUsingConstructor() - Method in interface org.mockito.mock.MockCreationSettings
Informs whether the mock instance should be created via constructor
isValidException(Throwable) - Method in class org.mockito.internal.stubbing.answers.InvocationInfo
 
isValidReturnType(Class<?>) - Method in class org.mockito.internal.stubbing.answers.InvocationInfo
 
isVarargMatcher() - Method in class org.mockito.internal.hamcrest.HamcrestArgumentMatcher
 
isVarArgs - Variable in class org.mockito.internal.invocation.SerializableMethod
 
isVarArgs() - Method in class org.mockito.internal.creation.DelegatingMethod
 
isVarArgs() - Method in interface org.mockito.internal.invocation.MockitoMethod
 
isVarArgs() - Method in class org.mockito.internal.invocation.SerializableMethod
 
isVerified() - Method in interface org.mockito.internal.exceptions.VerificationAwareInvocation
 
isVerified() - Method in class org.mockito.internal.invocation.InterceptedInvocation
 
isVerified() - Method in interface org.mockito.invocation.Invocation
 
isVerified(Invocation) - Method in class org.mockito.internal.InOrderImpl
 
isVerified(Invocation) - Method in interface org.mockito.internal.verification.api.InOrderContext
 
isVerified(Invocation) - Method in class org.mockito.internal.verification.InOrderContextImpl
 
isVoid() - Method in class org.mockito.internal.stubbing.answers.InvocationInfo
Returns true is the return type is Void or represents the pseudo-type to the keyword void.
Iterables - Class in org.mockito.internal.util.collections
Utilities for Iterables
Iterables() - Constructor for class org.mockito.internal.util.collections.Iterables
 
iterator - Variable in class org.mockito.internal.util.concurrent.WeakConcurrentMap.EntryIterator
 
iterator - Variable in class org.mockito.internal.util.concurrent.WeakConcurrentSet.ReducingIterator
 
iterator() - Method in class org.mockito.internal.util.collections.HashCodeAndEqualsSafeSet
 
iterator() - Method in class org.mockito.internal.util.concurrent.WeakConcurrentMap
 
iterator() - Method in class org.mockito.internal.util.concurrent.WeakConcurrentMap.WithInlinedExpunction
 
iterator() - Method in class org.mockito.internal.util.concurrent.WeakConcurrentSet
 

J

JAVA_8_DEV_VERSION_SCHEME - Static variable in class org.mockito.internal.util.Platform
 
JAVA_8_RELEASE_VERSION_SCHEME - Static variable in class org.mockito.internal.util.Platform
 
JAVA_LANG_ACCESS - Static variable in class org.mockito.internal.exceptions.stacktrace.StackTraceFilter
 
JAVA_VERSION - Static variable in class org.mockito.internal.util.Platform
 
JavaEightUtil - Class in org.mockito.internal.util
Helper class to work with features that were introduced in Java versions after 1.5.
JavaEightUtil() - Constructor for class org.mockito.internal.util.JavaEightUtil
 
jdkField() - Method in class org.mockito.internal.util.reflection.InstanceField
Returns the JDK Field instance.
join(Object...) - Static method in class org.mockito.internal.util.StringUtil
Joins Strings with line break character.
join(String, String, Collection<?>) - Static method in class org.mockito.internal.util.StringUtil
Joins Strings with EOL character
join(String, Collection<?>) - Static method in class org.mockito.internal.util.StringUtil
Joins Strings with EOL character
JUnitFailureHacker - Class in org.mockito.internal.junit.util
Deprecated.
JUnitFailureHacker() - Constructor for class org.mockito.internal.junit.util.JUnitFailureHacker
Deprecated.
 
JUnitRule - Class in org.mockito.internal.junit
Internal implementation.
JUnitRule(MockitoLogger, Strictness) - Constructor for class org.mockito.internal.junit.JUnitRule
 
JUnitSessionStore - Class in org.mockito.internal.junit
 
JUnitSessionStore(MockitoLogger, Strictness) - Constructor for class org.mockito.internal.junit.JUnitSessionStore
 
JUnitTestRule - Class in org.mockito.internal.junit
 
JUnitTestRule(MockitoLogger, Strictness, Object) - Constructor for class org.mockito.internal.junit.JUnitTestRule
 
JVM_INFO - Static variable in class org.mockito.internal.util.Platform
 
JVM_NAME - Static variable in class org.mockito.internal.util.Platform
 
JVM_VENDOR - Static variable in class org.mockito.internal.util.Platform
 
JVM_VENDOR_VERSION - Static variable in class org.mockito.internal.util.Platform
 
JVM_VERSION - Static variable in class org.mockito.internal.util.Platform
 
jvmInlineAnnotation - Static variable in class org.mockito.internal.util.KotlinInlineClassUtil
 

K

key - Variable in class org.mockito.internal.util.concurrent.WeakConcurrentMap.LatentKey
 
key - Variable in class org.mockito.internal.util.concurrent.WeakConcurrentMap.SimpleEntry
 
KOTLIN_CONTINUATION - Static variable in class org.mockito.internal.creation.SuspendMethod
 
KOTLIN_EXPERIMENTAL_CONTINUATION - Static variable in class org.mockito.internal.creation.SuspendMethod
 
KotlinInlineClassUtil - Class in org.mockito.internal.util
 
KotlinInlineClassUtil() - Constructor for class org.mockito.internal.util.KotlinInlineClassUtil
 

L

LAST_ARGUMENT - Static variable in class org.mockito.internal.stubbing.answers.ReturnsArgumentAt
 
lastException - Variable in class org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator
 
lastMatcher(List<ArgumentMatcher<?>>) - Static method in class org.mockito.internal.invocation.MatcherApplicationStrategy
 
LatentKey(T) - Constructor for class org.mockito.internal.util.concurrent.WeakConcurrentMap.LatentKey
 
LazyHolder() - Constructor for class org.mockito.internal.stubbing.defaultanswers.ReturnsDeepStubs.LazyHolder
 
lenient - Variable in class org.mockito.internal.creation.settings.CreationSettings
 
lenient() - Method in class org.mockito.internal.creation.MockSettingsImpl
 
lenient() - Method in class org.mockito.internal.MockitoCore
 
lenient() - Method in annotation type org.mockito.Mock
Mock will be lenient, see MockSettings.lenient().
lenient() - Static method in class org.mockito.Mockito
Lenient stubs bypass "strict stubbing" validation (see Strictness.STRICT_STUBS).
lenient() - Method in interface org.mockito.MockSettings
Lenient mocks bypass "strict stubbing" validation (see Strictness.STRICT_STUBS).
LENIENT - org.mockito.quality.Strictness
No extra strictness.
LenientCopyTool - Class in org.mockito.internal.util.reflection
 
LenientCopyTool() - Constructor for class org.mockito.internal.util.reflection.LenientCopyTool
 
LenientStubber - Interface in org.mockito.stubbing
Used for declaring optional stubbings with Mockito.lenient()
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.
leq(T) - Static method in class org.mockito.AdditionalMatchers
comparable argument less than or equal the given value details.
LessOrEqual<T extends java.lang.Comparable<T>> - Class in org.mockito.internal.matchers
 
LessOrEqual(T) - Constructor for class org.mockito.internal.matchers.LessOrEqual
 
LessThan<T extends java.lang.Comparable<T>> - Class in org.mockito.internal.matchers
 
LessThan(T) - Constructor for class org.mockito.internal.matchers.LessThan
 
line(String) - Method in class org.mockito.internal.debugging.MockitoDebuggerImpl
 
list - Variable in class org.mockito.internal.util.collections.IdentitySet
 
listener - Variable in class org.mockito.internal.framework.DefaultMockitoSession
 
listenerDirty - Variable in class org.mockito.internal.junit.UniversalTestListener
 
listeners - Variable in class org.mockito.internal.progress.MockingProgressImpl
 
listeners - Variable in class org.mockito.internal.verification.MockAwareVerificationMode
 
ListUtil - Class in org.mockito.internal.util.collections
Basic list/collection operators.
ListUtil() - Constructor for class org.mockito.internal.util.collections.ListUtil
 
ListUtil.Converter<FromT,​To> - Interface in org.mockito.internal.util.collections
 
ListUtil.Filter<T> - Interface in org.mockito.internal.util.collections
 
loadConfiguration() - Method in class org.mockito.internal.configuration.ClassPathLoader
 
loader - Variable in class org.mockito.internal.creation.bytebuddy.ModuleHandler.ModuleSystemFound
 
loader - Variable in class org.mockito.internal.creation.bytebuddy.SubclassBytecodeGenerator
 
loader - Variable in class org.mockito.internal.creation.bytebuddy.SubclassInjectionLoader
 
loadImpl(Class<T>) - Method in class org.mockito.internal.configuration.plugins.PluginInitializer
Equivalent to ServiceLoader.load(java.lang.Class<S>, java.lang.ClassLoader, java.lang.Module) but without requiring Java 6 / Android 2.3 (Gingerbread).
loadImpls(Class<T>) - Method in class org.mockito.internal.configuration.plugins.PluginInitializer
 
loadPlugin(Class<PreferredT>, Class<AlternateType>) - Method in class org.mockito.internal.configuration.plugins.PluginLoader
Scans the classpath for given preferredPluginType.
loadPlugin(Class<T>) - Method in class org.mockito.internal.configuration.plugins.PluginLoader
Scans the classpath for given pluginType.
loadPlugins(Class<T>) - Method in class org.mockito.internal.configuration.plugins.PluginLoader
Scans the classpath for given pluginType and returns a list of its instances.
Localized<T> - Class in org.mockito.internal.debugging
 
Localized(T) - Constructor for class org.mockito.internal.debugging.Localized
 
LocalizedMatcher - Class in org.mockito.internal.matchers
 
LocalizedMatcher(ArgumentMatcher<?>) - Constructor for class org.mockito.internal.matchers.LocalizedMatcher
 
location - Variable in class org.mockito.internal.debugging.Localized
 
location - Variable in class org.mockito.internal.invocation.InterceptedInvocation
 
location - Variable in class org.mockito.internal.matchers.LocalizedMatcher
 
location - Variable in class org.mockito.internal.MockedConstructionImpl
 
location - Variable in class org.mockito.internal.MockedStaticImpl
 
location - Variable in class org.mockito.internal.stubbing.defaultanswers.ReturnsSmartNulls.ThrowsSmartNullPointer
 
Location - Interface in org.mockito.invocation
Describes the location of something in the source code.
LocationImpl - Class in org.mockito.internal.debugging
 
LocationImpl() - Constructor for class org.mockito.internal.debugging.LocationImpl
 
LocationImpl(Throwable, boolean) - Constructor for class org.mockito.internal.debugging.LocationImpl
 
LocationImpl(StackTraceFilter) - Constructor for class org.mockito.internal.debugging.LocationImpl
 
LocationImpl(StackTraceFilter, Throwable, boolean) - Constructor for class org.mockito.internal.debugging.LocationImpl
 
locationsOf(Collection<LocalizedMatcher>) - Static method in class org.mockito.internal.exceptions.Reporter
 
lock - Variable in class org.mockito.internal.creation.bytebuddy.TypeCachingBytecodeGenerator
 
lock - Variable in class org.mockito.internal.matchers.CapturingMatcher
 
log(Object) - Method in class org.mockito.internal.session.MockitoLoggerAdapter
 
log(Object) - Method in class org.mockito.internal.util.ConsoleMockitoLogger
(non-Javadoc)
log(Object) - Method in interface org.mockito.plugins.MockitoLogger
Log specified object.
log(String) - Method in class org.mockito.internal.session.MockitoSessionLoggerAdapter
 
log(String) - Method in interface org.mockito.session.MockitoSessionLogger
Logs the hint.
logger - Variable in class org.mockito.internal.junit.JUnitSessionStore
 
logger - Variable in class org.mockito.internal.junit.MismatchReportingTestListener
 
logger - Variable in class org.mockito.internal.junit.UniversalTestListener
 
logger - Variable in class org.mockito.internal.session.DefaultMockitoSessionBuilder
 
logger - Variable in class org.mockito.internal.session.MockitoLoggerAdapter
 
logger - Variable in class org.mockito.internal.session.MockitoSessionLoggerAdapter
 
logger - Variable in class org.mockito.runners.ConsoleSpammingMockitoJUnitRunner
Deprecated.
 
logger(MockitoSessionLogger) - Method in class org.mockito.internal.session.DefaultMockitoSessionBuilder
 
logger(MockitoSessionLogger) - Method in interface org.mockito.session.MockitoSessionBuilder
Configures logger used by MockitoSession for emitting warnings when finishing the session.
LoggingListener - Class in org.mockito.internal.debugging
 
LoggingListener(boolean) - Constructor for class org.mockito.internal.debugging.LoggingListener
 
longThat(Matcher<Long>) - Static method in class org.mockito.hamcrest.MockitoHamcrest
Enables integrating hamcrest matchers that match primitive long arguments.
longThat(ArgumentMatcher<Long>) - Static method in class org.mockito.ArgumentMatchers
Allows creating custom long argument matchers.
lookup - Variable in class org.mockito.internal.creation.bytebuddy.SubclassInjectionLoader.WithLookup
 
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.
lt(T) - Static method in class org.mockito.AdditionalMatchers
comparable argument less than the given value.

M

m1 - Variable in class org.mockito.internal.matchers.And
 
m1 - Variable in class org.mockito.internal.matchers.Or
 
m2 - Variable in class org.mockito.internal.matchers.And
 
m2 - Variable in class org.mockito.internal.matchers.Or
 
make(ByteBuddy, SubclassLoader, Random) - Static method in class org.mockito.internal.creation.bytebuddy.ModuleHandler
 
makeStandardArgument(Class<?>) - Method in class org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker
 
MANUAL - org.mockito.internal.util.concurrent.DetachedThreadLocal.Cleaner
 
MANUAL - org.mockito.internal.util.concurrent.WeakConcurrentSet.Cleaner
 
map - Variable in class org.mockito.internal.util.concurrent.DetachedThreadLocal
 
markStubbed(StubInfo) - Method in class org.mockito.internal.invocation.InterceptedInvocation
 
markStubbed(StubInfo) - Method in interface org.mockito.invocation.Invocation
Marks this invocation as stubbed.
markStubUsed(DescribedInvocation) - Method in class org.mockito.internal.stubbing.StubbedInvocationMatcher
 
markVerified() - Method in class org.mockito.internal.invocation.InterceptedInvocation
 
markVerified() - Method in interface org.mockito.invocation.Invocation
Marks this invocation as verified so that it will not cause verification error at Mockito.verifyNoMoreInteractions(Object...)
markVerified(List<Invocation>, MatchableInvocation) - Static method in class org.mockito.internal.invocation.InvocationMarker
 
markVerified(Invocation) - Method in class org.mockito.internal.InOrderImpl
 
markVerified(Invocation) - Method in interface org.mockito.internal.verification.api.InOrderContext
 
markVerified(Invocation) - Method in class org.mockito.internal.verification.InOrderContextImpl
 
markVerified(Invocation, MatchableInvocation) - Static method in class org.mockito.internal.invocation.InvocationMarker
 
markVerifiedInOrder(List<Invocation>, MatchableInvocation, InOrderContext) - Static method in class org.mockito.internal.invocation.InvocationMarker
 
MATCH_EACH_VARARGS_WITH_LAST_MATCHER - org.mockito.internal.invocation.MatcherApplicationStrategy.MatcherApplicationType
 
MatchableInvocation - Interface in org.mockito.invocation
MatchableInvocation wraps Invocation instance and holds argument matchers associated with that invocation.
matcher - Variable in class org.mockito.internal.creation.bytebuddy.SubclassBytecodeGenerator
 
matcher - Variable in class org.mockito.internal.hamcrest.HamcrestArgumentMatcher
 
matcher - Variable in class org.mockito.internal.matchers.LocalizedMatcher
 
matcher - Variable in class org.mockito.internal.matchers.Not
 
MatcherApplicationStrategy - Class in org.mockito.internal.invocation
 
MatcherApplicationStrategy(Invocation, List<ArgumentMatcher<?>>, MatcherApplicationStrategy.MatcherApplicationType) - Constructor for class org.mockito.internal.invocation.MatcherApplicationStrategy
 
MatcherApplicationStrategy.MatcherApplicationType - Enum in org.mockito.internal.invocation
 
MatcherApplicationType() - Constructor for enum org.mockito.internal.invocation.MatcherApplicationStrategy.MatcherApplicationType
 
MatcherGenericTypeExtractor - Class in org.mockito.internal.hamcrest
Extracts generic type of matcher
MatcherGenericTypeExtractor() - Constructor for class org.mockito.internal.hamcrest.MatcherGenericTypeExtractor
 
matchers - Variable in class org.mockito.internal.invocation.InvocationMatcher
 
matchers - Variable in class org.mockito.internal.invocation.MatcherApplicationStrategy
 
Matchers - Class in org.mockito
Deprecated.
Use ArgumentMatchers. This class is now deprecated in order to avoid a name clash with Hamcrest org.hamcrest.Matchers class. This class will likely be removed in version 4.0.
Matchers() - Constructor for class org.mockito.Matchers
Deprecated.
 
matchersBinder - Variable in class org.mockito.internal.handler.MockHandlerImpl
 
MatchersBinder - Class in org.mockito.internal.invocation
 
MatchersBinder() - Constructor for class org.mockito.internal.invocation.MatchersBinder
 
MatchersPrinter - Class in org.mockito.internal.matchers.text
 
MatchersPrinter() - Constructor for class org.mockito.internal.matchers.text.MatchersPrinter
 
matcherStack - Variable in class org.mockito.internal.progress.ArgumentMatcherStorageImpl
 
MatcherToString - Class in org.mockito.internal.matchers.text
Provides better toString() text for matcher that don't have toString() method declared.
MatcherToString() - Constructor for class org.mockito.internal.matchers.text.MatcherToString
 
matches(Number) - Method in class org.mockito.internal.matchers.EqualsWithDelta
 
matches(Object) - Method in class org.mockito.internal.hamcrest.HamcrestArgumentMatcher
 
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.CapturingMatcher
 
matches(Object) - Method in class org.mockito.internal.matchers.Equals
 
matches(Object) - Method in class org.mockito.internal.matchers.InstanceOf
 
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(String) - Static method in class org.mockito.ArgumentMatchers
String argument that matches the given regular expression.
matches(String) - Method in class org.mockito.internal.matchers.Contains
 
matches(String) - Method in class org.mockito.internal.matchers.EndsWith
 
matches(String) - Method in class org.mockito.internal.matchers.Find
 
matches(String) - Method in class org.mockito.internal.matchers.StartsWith
 
matches(Pattern) - Static method in class org.mockito.ArgumentMatchers
Pattern argument that matches the given regular expression.
matches(Invocation) - Method in class org.mockito.internal.invocation.InvocationMatcher
 
matches(Invocation) - Method in interface org.mockito.invocation.MatchableInvocation
Same method, mock and all arguments match.
matches(T) - Method in interface org.mockito.ArgumentMatcher
Informs if this matcher accepts the given argument.
matches(T) - Method in class org.mockito.internal.matchers.CompareTo
 
Matches - Class in org.mockito.internal.matchers
 
Matches(String) - Constructor for class org.mockito.internal.matchers.Matches
 
Matches(Pattern) - Constructor for class org.mockito.internal.matchers.Matches
 
matchesTypeSafe() - Static method in class org.mockito.internal.invocation.TypeSafeMatching
 
matchingType - Variable in class org.mockito.internal.invocation.MatcherApplicationStrategy
 
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
 
MAX_LINE_LENGTH - Static variable in class org.mockito.internal.reporting.PrintSettings
 
maxNumberOfInvocations - Variable in class org.mockito.internal.verification.AtMost
 
maybeRedefineMockName(Object, String) - Static method in class org.mockito.internal.util.MockUtil
 
maybeVerifyLazily(VerificationMode) - Method in interface org.mockito.internal.progress.MockingProgress
 
maybeVerifyLazily(VerificationMode) - Method in class org.mockito.internal.progress.MockingProgressImpl
 
maybeVerifyLazily(VerificationMode) - Method in interface org.mockito.verification.VerificationStrategy
Possibly wrap the given VerificationMode and return a wrapping VerificationMode instead.
memberAccessor - Variable in class org.mockito.internal.configuration.plugins.PluginRegistry
 
MemberAccessor - Interface in org.mockito.plugins
A member accessor is responsible for invoking methods, constructors and for setting and reading field values.
MemberAccessor.ConstructionDispatcher - Interface in org.mockito.plugins
 
MemberAccessor.OnConstruction - Interface in org.mockito.plugins
 
message - Variable in error org.mockito.exceptions.verification.junit.ArgumentsAreDifferent
 
message - Variable in error org.mockito.exceptions.verification.opentest4j.ArgumentsAreDifferent
 
method - Variable in class org.mockito.internal.creation.DelegatingMethod
 
method - Variable in class org.mockito.internal.invocation.SerializableMethod
 
method - Variable in class org.mockito.internal.stubbing.answers.InvocationInfo
 
methodDoesNotAcceptParameter(String, String) - Static method in class org.mockito.internal.exceptions.Reporter
 
MethodInvocationReport - Interface in org.mockito.listeners
Represent a method call on a mock.
methodName - Variable in class org.mockito.internal.invocation.SerializableMethod
 
MethodParameterStrippingMethodVisitor(MethodVisitor) - Constructor for class org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator.ParameterWritingVisitorWrapper.MethodParameterStrippingMethodVisitor
 
mismatches - Variable in class org.mockito.internal.junit.StubbingArgMismatches
 
mismatchesReported - Variable in class org.mockito.internal.junit.DefaultStubbingLookupListener
 
MismatchReportingTestListener - Class in org.mockito.internal.junit
Reports stubbing argument mismatches to the supplied logger
MismatchReportingTestListener(MockitoLogger) - Constructor for class org.mockito.internal.junit.MismatchReportingTestListener
 
misplacedArgumentMatcher(List<LocalizedMatcher>) - Static method in class org.mockito.internal.exceptions.Reporter
 
missingByteBuddyDependency(Throwable) - Static method in class org.mockito.internal.exceptions.Reporter
 
MissingInvocationChecker - Class in org.mockito.internal.verification.checkers
 
MissingInvocationChecker() - Constructor for class org.mockito.internal.verification.checkers.MissingInvocationChecker
 
missingMethodInvocation() - Static method in class org.mockito.internal.exceptions.Reporter
 
MissingMethodInvocationException - Exception in org.mockito.exceptions.misusing
 
MissingMethodInvocationException(String) - Constructor for exception org.mockito.exceptions.misusing.MissingMethodInvocationException
 
mock - Variable in class org.mockito.BDDMockito.ThenImpl
 
mock - Variable in class org.mockito.internal.listeners.VerificationStartedNotifier.Event
 
mock - Variable in class org.mockito.internal.stubbing.defaultanswers.ReturnsDeepStubs.DeeplyStubbedAnswer
 
mock - Variable in class org.mockito.internal.verification.MockAwareVerificationMode
 
mock - Variable in class org.mockito.internal.verification.VerificationEventImpl
 
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
Specifies mock name.
mock(Class<T>, MockSettings) - Method in class org.mockito.internal.MockitoCore
 
mock(Class<T>, MockSettings) - Static method in class org.mockito.Mockito
Creates a mock with some non-standard settings.
mock(Class<T>, Answer) - Static method in class org.mockito.Mockito
Creates mock with a specified strategy for its answers to interactions.
Mock - Annotation Type in org.mockito
Mark a field as a mock.
mockable() - Method in interface org.mockito.plugins.MockMaker.TypeMockability
informs if type is mockable
MockAccess - Interface in org.mockito.internal.creation.bytebuddy
 
MockAnnotationProcessor - Class in org.mockito.internal.configuration
Instantiates a mock on a field annotated by Mock
MockAnnotationProcessor() - Constructor for class org.mockito.internal.configuration.MockAnnotationProcessor
 
MockAwareVerificationMode - Class in org.mockito.internal.verification
 
MockAwareVerificationMode(Object, VerificationMode, Set<VerificationListener>) - Constructor for class org.mockito.internal.verification.MockAwareVerificationMode
 
mockCandidateFilter - Variable in class org.mockito.internal.configuration.injection.PropertyAndSetterInjection
 
MockCandidateFilter - Interface in org.mockito.internal.configuration.injection.filter
 
mockClass(MockFeatures<T>) - Method in interface org.mockito.internal.creation.bytebuddy.BytecodeGenerator
 
mockClass(MockFeatures<T>) - Method in class org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator
 
mockClass(MockFeatures<T>) - Method in class org.mockito.internal.creation.bytebuddy.SubclassBytecodeGenerator
 
mockClass(MockFeatures<T>) - Method in class org.mockito.internal.creation.bytebuddy.TypeCachingBytecodeGenerator
 
mockClassConstruction(Class<?>) - Method in interface org.mockito.internal.creation.bytebuddy.BytecodeGenerator
 
mockClassConstruction(Class<?>) - Method in class org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator
 
mockClassConstruction(Class<?>) - Method in class org.mockito.internal.creation.bytebuddy.SubclassBytecodeGenerator
 
mockClassConstruction(Class<?>) - Method in class org.mockito.internal.creation.bytebuddy.TypeCachingBytecodeGenerator
 
mockClassStatic(Class<?>) - Method in interface org.mockito.internal.creation.bytebuddy.BytecodeGenerator
 
mockClassStatic(Class<?>) - Method in class org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator
 
mockClassStatic(Class<?>) - Method in class org.mockito.internal.creation.bytebuddy.SubclassBytecodeGenerator
 
mockClassStatic(Class<?>) - Method in class org.mockito.internal.creation.bytebuddy.TypeCachingBytecodeGenerator
 
mockConstruction(Class<T>) - Static method in class org.mockito.Mockito
Creates a thread-local mock controller for all constructions of the given class.
mockConstruction(Class<T>, Function<MockedConstruction.Context, ? extends MockSettings>, MockedConstruction.MockInitializer<T>) - Method in class org.mockito.internal.MockitoCore
 
mockConstruction(Class<T>, Function<MockedConstruction.Context, MockSettings>) - Static method in class org.mockito.Mockito
Creates a thread-local mock controller for all constructions of the given class.
mockConstruction(Class<T>, Function<MockedConstruction.Context, MockSettings>, MockedConstruction.MockInitializer<T>) - Static method in class org.mockito.Mockito
Creates a thread-local mock controller for all constructions of the given class.
mockConstruction(Class<T>, MockedConstruction.MockInitializer<T>) - Static method in class org.mockito.Mockito
Creates a thread-local mock controller for all constructions of the given class.
mockConstruction(Class<T>, MockSettings) - Static method in class org.mockito.Mockito
Creates a thread-local mock controller for all constructions of the given class.
mockConstruction(Class<T>, MockSettings, MockedConstruction.MockInitializer<T>) - Static method in class org.mockito.Mockito
Creates a thread-local mock controller for all constructions of the given class.
mockConstructionWithAnswer(Class<T>, Answer, Answer...) - Static method in class org.mockito.Mockito
Creates a thread-local mock controller for all constructions of the given class.
MockCreationListener - Interface in org.mockito.listeners
Notified when mock object is created.
mockCreationSettings - Variable in class org.mockito.internal.creation.bytebuddy.MockMethodInterceptor
 
MockCreationSettings<T> - Interface in org.mockito.mock
Informs about the mock settings.
MockCreationValidator - Class in org.mockito.internal.util
 
MockCreationValidator() - Constructor for class org.mockito.internal.util.MockCreationValidator
 
mocked - Variable in class org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator
 
mockedConstruction - Variable in class org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker
 
MockedConstruction<T> - Interface in org.mockito
Represents a mock of any object construction of the represented type.
MockedConstruction.Context - Interface in org.mockito
 
MockedConstruction.MockInitializer<T> - Interface in org.mockito
 
MockedConstructionImpl<T> - Class in org.mockito.internal
 
MockedConstructionImpl(MockMaker.ConstructionMockControl<T>) - Constructor for class org.mockito.internal.MockedConstructionImpl
 
MockedStatic<T> - Interface in org.mockito
Represents an active mock of a type's static methods.
MockedStatic.Verification - Interface in org.mockito
 
MockedStaticImpl<T> - Class in org.mockito.internal
 
MockedStaticImpl(MockMaker.StaticMockControl<T>) - Constructor for class org.mockito.internal.MockedStaticImpl
 
mockedStatics - Variable in class org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker
 
mockedStatics - Variable in class org.mockito.internal.creation.bytebuddy.MockMethodAdvice
 
mockedType - Variable in class org.mockito.internal.creation.bytebuddy.MockFeatures
 
mockedTypeIsInconsistentWithDelegatedInstanceType(Class<?>, Object) - Static method in class org.mockito.internal.exceptions.Reporter
 
mockedTypeIsInconsistentWithSpiedInstanceType(Class<?>, Object) - Static method in class org.mockito.internal.exceptions.Reporter
 
MockFeatures<T> - Class in org.mockito.internal.creation.bytebuddy
 
MockFeatures(Class<T>, Set<Class<?>>, SerializableMode, boolean, Answer) - Constructor for class org.mockito.internal.creation.bytebuddy.MockFeatures
 
mockHandler - Variable in class org.mockito.internal.handler.InvocationNotifierHandler
 
mockHandler() - Method in class org.mockito.internal.util.DefaultMockingDetails
 
MockHandler<T> - Interface in org.mockito.invocation
Mockito handler of an invocation on a mock.
MockHandlerFactory - Class in org.mockito.internal.handler
by Szczepan Faber, created at: 5/21/12
MockHandlerFactory() - Constructor for class org.mockito.internal.handler.MockHandlerFactory
 
MockHandlerImpl<T> - Class in org.mockito.internal.handler
Invocation handler set on mock objects.
MockHandlerImpl(MockCreationSettings<T>) - Constructor for class org.mockito.internal.handler.MockHandlerImpl
 
MOCKING_PROGRESS_PROVIDER - Static variable in class org.mockito.internal.progress.ThreadSafeMockingProgress
 
mockingDetails(Object) - Method in class org.mockito.internal.MockitoCore
 
mockingDetails(Object) - Static method in class org.mockito.Mockito
Returns a MockingDetails instance that enables inspecting a particular object for Mockito related information.
MockingDetails - Interface in org.mockito
Provides mocking information.
mockingProgress() - Static method in class org.mockito.internal.progress.ThreadSafeMockingProgress
Returns the MockingProgress for the current Thread.
MockingProgress - Interface in org.mockito.internal.progress
 
MockingProgressImpl - Class in org.mockito.internal.progress
 
MockingProgressImpl() - Constructor for class org.mockito.internal.progress.MockingProgressImpl
 
mockingStarted(Class<?>, MockCreationSettings) - Method in interface org.mockito.internal.progress.MockingProgress
 
mockingStarted(Class<?>, MockCreationSettings) - Method in class org.mockito.internal.progress.MockingProgressImpl
 
mockingStarted(Object, MockCreationSettings) - Method in interface org.mockito.internal.progress.MockingProgress
 
mockingStarted(Object, MockCreationSettings) - Method in class org.mockito.internal.progress.MockingProgressImpl
 
mockInitializer - Variable in class org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.InlineConstructionMockControl
 
MockInjection - Class in org.mockito.internal.configuration.injection
Internal injection configuration utility.
MockInjection() - Constructor for class org.mockito.internal.configuration.injection.MockInjection
 
MockInjection.OngoingMockInjection - Class in org.mockito.internal.configuration.injection
Ongoing configuration of the mock injector.
MockInjectionStrategy - Class in org.mockito.internal.configuration.injection
Injector strategy contract
MockInjectionStrategy() - Constructor for class org.mockito.internal.configuration.injection.MockInjectionStrategy
 
mockInstance - Variable in class org.mockito.internal.util.collections.HashCodeAndEqualsMockWrapper
 
MockInvocationHandler(MockHandler<?>, MockCreationSettings<?>) - Constructor for class org.mockito.internal.creation.proxy.ProxyMockMaker.MockInvocationHandler
 
mockInvocationsCounter - Variable in class org.mockito.internal.debugging.VerboseMockInvocationLogger
 
mockIsCurrentlyBeingReplaced() - Method in class org.mockito.internal.creation.bytebuddy.ByteBuddyCrossClassLoaderSerializationSupport
 
Mockito - Class in org.mockito
Mockito logo
Mockito() - Constructor for class org.mockito.Mockito
 
MOCKITO_CONFIGURATION_CLASS_NAME - Static variable in class org.mockito.internal.configuration.ClassPathLoader
 
MOCKITO_CORE - Static variable in class org.mockito.internal.stubbing.defaultanswers.RetrieveGenericsForDefaultAnswers
 
MOCKITO_CORE - Static variable in class org.mockito.internal.stubbing.defaultanswers.ReturnsDeepStubs.LazyHolder
 
MOCKITO_CORE - Static variable in class org.mockito.internal.stubbing.DefaultLenientStubber
 
MOCKITO_CORE - Static variable in class org.mockito.Mockito
 
MOCKITO_PROXY_MARKER - Static variable in class org.mockito.internal.creation.bytebuddy.ByteBuddyCrossClassLoaderSerializationSupport
 
MockitoAnnotations - Class in org.mockito
MockitoAnnotations.openMocks(this); initializes fields annotated with Mockito annotations.
MockitoAnnotations() - Constructor for class org.mockito.MockitoAnnotations
 
MockitoAssertionError - Error in org.mockito.exceptions.base
Base class for verification errors emitted by Mockito.
MockitoAssertionError(AssertionError, String) - Constructor for error org.mockito.exceptions.base.MockitoAssertionError
Creates a copy of the given assertion error with the custom failure message prepended.
MockitoAssertionError(String) - Constructor for error org.mockito.exceptions.base.MockitoAssertionError
 
MockitoAssertionError(MockitoAssertionError, String) - Constructor for error org.mockito.exceptions.base.MockitoAssertionError
Creates a copy of the given assertion error with the custom failure message prepended.
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
 
mockitoConstruction - Variable in class org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker
 
mockitoCore - Variable in class org.mockito.internal.InOrderImpl
 
mockitoCore() - Static method in class org.mockito.internal.stubbing.defaultanswers.ReturnsDeepStubs
 
MockitoCore - Class in org.mockito.internal
 
MockitoCore() - Constructor for class org.mockito.internal.MockitoCore
 
MockitoDebugger - Interface in org.mockito
Deprecated.
- please use MockingDetails.printInvocations() instead. An instance of MockingDetails can be retrieved via Mockito.mockingDetails(Object).
MockitoDebuggerImpl - Class in org.mockito.internal.debugging
 
MockitoDebuggerImpl() - Constructor for class org.mockito.internal.debugging.MockitoDebuggerImpl
 
MockitoException - Exception in org.mockito.exceptions.base
Raised by mockito to emit an error either due to Mockito, or due to the User.
MockitoException(String) - Constructor for exception org.mockito.exceptions.base.MockitoException
 
MockitoException(String, Throwable) - Constructor for exception org.mockito.exceptions.base.MockitoException
 
MockitoFramework - Interface in org.mockito
Mockito framework settings and lifecycle listeners, for advanced users or for integrating with other frameworks.
MockitoHamcrest - Class in org.mockito.hamcrest
Allows matching arguments with hamcrest matchers.
MockitoHamcrest() - Constructor for class org.mockito.hamcrest.MockitoHamcrest
 
MockitoHint - Interface in org.mockito.quality
Stubbing hints were introduced in Mockito 2 in order to improve debuggability while keeping backwards compatibility.
MockitoInitializationException - Exception in org.mockito.exceptions.base
 
MockitoInitializationException(String) - Constructor for exception org.mockito.exceptions.base.MockitoInitializationException
 
MockitoInitializationException(String, Throwable) - Constructor for exception org.mockito.exceptions.base.MockitoInitializationException
 
MockitoJUnit - Class in org.mockito.junit
Mockito supports JUnit via: JUnit Rules - see MockitoRule JUnit runners - see MockitoJUnitRunner JUnit Jupiter extension
MockitoJUnit() - Constructor for class org.mockito.junit.MockitoJUnit
 
MockitoJUnitRunner - Class in org.mockito.junit
Mockito JUnit Runner keeps tests clean and improves debugging experience.
MockitoJUnitRunner - Class in org.mockito.runners
Deprecated.
Moved to MockitoJUnitRunner, this class will be removed with Mockito 4
MockitoJUnitRunner(Class<?>) - Constructor for class org.mockito.junit.MockitoJUnitRunner
 
MockitoJUnitRunner(Class<?>) - Constructor for class org.mockito.runners.MockitoJUnitRunner
Deprecated.
 
MockitoJUnitRunner(InternalRunner) - Constructor for class org.mockito.junit.MockitoJUnitRunner
 
MockitoJUnitRunner.Silent - Class in org.mockito.junit
This Mockito JUnit Runner implementation *ignores* stubbing argument mismatches (MockitoJUnitRunner.StrictStubs) and *does not detect* unused stubbings.
MockitoJUnitRunner.Silent - Class in org.mockito.runners
Deprecated.
Moved to MockitoJUnitRunner.Silent, this class will be removed with Mockito 4
MockitoJUnitRunner.Strict - Class in org.mockito.junit
Detects unused stubs and reports them as failures.
MockitoJUnitRunner.Strict - Class in org.mockito.runners
Deprecated.
Moved to MockitoJUnitRunner.Strict, this class will be removed with Mockito 4
MockitoJUnitRunner.StrictStubs - Class in org.mockito.junit
Improves debugging tests, helps keeping the tests clean.
MockitoListener - Interface in org.mockito.listeners
Marker interface for all types of Mockito listeners.
mockitoLogger - Variable in class org.mockito.internal.configuration.plugins.PluginRegistry
 
MockitoLogger - Interface in org.mockito.plugins
Mockito logger.
MockitoLoggerAdapter - Class in org.mockito.internal.session
 
MockitoLoggerAdapter(MockitoSessionLogger) - Constructor for class org.mockito.internal.session.MockitoLoggerAdapter
 
mockitoMethod - Variable in class org.mockito.internal.invocation.InterceptedInvocation
 
MockitoMethod - Interface in org.mockito.internal.invocation
 
MockitoMethodProxy - Interface in org.mockito.internal.creation.util
 
MockitoMockKey(Class<?>, Set<Class<?>>, SerializableMode, boolean) - Constructor for class org.mockito.internal.creation.bytebuddy.TypeCachingBytecodeGenerator.MockitoMockKey
 
MockitoMockObjectInputStream(InputStream, Class<?>, Set<Class<?>>) - Constructor for class org.mockito.internal.creation.bytebuddy.ByteBuddyCrossClassLoaderSerializationSupport.MockitoMockObjectInputStream
 
MockitoMockObjectOutputStream(ByteArrayOutputStream) - Constructor for class org.mockito.internal.creation.bytebuddy.ByteBuddyCrossClassLoaderSerializationSupport.MockitoMockObjectOutputStream
 
mockitoOngoingStubbing - Variable in class org.mockito.BDDMockito.BDDOngoingStubbingImpl
 
MockitoPlugins - Interface in org.mockito.plugins
Instance of this interface is available via MockitoFramework.getPlugins().
mockitoProxyClassMarker(Class<?>) - Method in class org.mockito.internal.creation.bytebuddy.ByteBuddyCrossClassLoaderSerializationSupport.MockitoMockObjectOutputStream
Returns the Mockito marker if this class is a Mockito mock.
MockitoRule - Interface in org.mockito.junit
Mockito JUnit Rule helps keeping tests clean.
MockitoSerializationIssue - Exception in org.mockito.exceptions.base
Raised by mockito to emit an error either due to Mockito, or due to the User.
MockitoSerializationIssue(String, Exception) - Constructor for exception org.mockito.exceptions.base.MockitoSerializationIssue
 
mockitoSession() - Static method in class org.mockito.Mockito
MockitoSession is an optional, highly recommended feature that helps driving cleaner tests by eliminating boilerplate code and adding extra validation.
MockitoSession - Interface in org.mockito
MockitoSession is an optional, highly recommended feature that helps driving cleaner tests by eliminating boilerplate code and adding extra validation.
MockitoSessionBuilder - Interface in org.mockito.session
Fluent builder interface for MockitoSession objects.
MockitoSessionLogger - Interface in org.mockito.session
Logger for hints emitted when finishing mocking for a MockitoSession.
MockitoSessionLoggerAdapter - Class in org.mockito.internal.session
 
MockitoSessionLoggerAdapter(MockitoLogger) - Constructor for class org.mockito.internal.session.MockitoSessionLoggerAdapter
 
mockitoStubber - Variable in class org.mockito.BDDMockito.BDDStubberImpl
 
MockitoTestListener - Interface in org.mockito.internal.junit
Internal test listener that helps decoupling JUnit internals from Mockito "business" logic.
MockitoTestRule - Interface in org.mockito.junit
Equivalent to MockitoRule, but inherits a different JUnit4 base interface TestRule.
mockMaker - Variable in class org.mockito.internal.configuration.plugins.PluginRegistry
 
mockMaker - Static variable in class org.mockito.internal.util.MockUtil
 
MockMaker - Interface in org.mockito.plugins
The facility to create mocks.
MockMaker.ConstructionMockControl<T> - Interface in org.mockito.plugins
 
MockMaker.StaticMockControl<T> - Interface in org.mockito.plugins
 
MockMaker.TypeMockability - Interface in org.mockito.plugins
Carries the mockability information
MockMethodAdvice - Class in org.mockito.internal.creation.bytebuddy
 
MockMethodAdvice(WeakConcurrentMap<Object, MockMethodInterceptor>, DetachedThreadLocal<Map<Class<?>, MockMethodInterceptor>>, String, Predicate<Class<?>>, ConstructionCallback) - Constructor for class org.mockito.internal.creation.bytebuddy.MockMethodAdvice
 
MockMethodAdvice.ConstructorShortcut - Class in org.mockito.internal.creation.bytebuddy
 
MockMethodAdvice.ForEquals - Class in org.mockito.internal.creation.bytebuddy
 
MockMethodAdvice.ForHashCode - Class in org.mockito.internal.creation.bytebuddy
 
MockMethodAdvice.ForReadObject - Class in org.mockito.internal.creation.bytebuddy
 
MockMethodAdvice.ForStatic - Class in org.mockito.internal.creation.bytebuddy
 
MockMethodAdvice.Identifier - Annotation Type in org.mockito.internal.creation.bytebuddy
 
MockMethodAdvice.RealMethodCall - Class in org.mockito.internal.creation.bytebuddy
 
MockMethodAdvice.ReturnValueWrapper - Class in org.mockito.internal.creation.bytebuddy
 
MockMethodAdvice.SelfCallInfo - Class in org.mockito.internal.creation.bytebuddy
 
MockMethodAdvice.SerializableRealMethodCall - Class in org.mockito.internal.creation.bytebuddy
 
MockMethodAdvice.StaticMethodCall - Class in org.mockito.internal.creation.bytebuddy
 
MockMethodDispatcher - Class in org.mockito.internal.creation.bytebuddy.inject
 
MockMethodDispatcher() - Constructor for class org.mockito.internal.creation.bytebuddy.inject.MockMethodDispatcher
 
MockMethodInterceptor - Class in org.mockito.internal.creation.bytebuddy
 
MockMethodInterceptor(MockHandler, MockCreationSettings) - Constructor for class org.mockito.internal.creation.bytebuddy.MockMethodInterceptor
 
MockMethodInterceptor.DispatcherDefaultingToRealMethod - Class in org.mockito.internal.creation.bytebuddy
 
MockMethodInterceptor.ForEquals - Class in org.mockito.internal.creation.bytebuddy
 
MockMethodInterceptor.ForHashCode - Class in org.mockito.internal.creation.bytebuddy
 
MockMethodInterceptor.ForWriteReplace - Class in org.mockito.internal.creation.bytebuddy
 
mockName - Variable in class org.mockito.internal.creation.settings.CreationSettings
 
mockName - Variable in class org.mockito.internal.util.MockNameImpl
 
MockName - Interface in org.mockito.mock
Represents the name of the mock as shown in the verification failure reports, etc.
MockNameImpl - Class in org.mockito.internal.util
 
MockNameImpl(String) - Constructor for class org.mockito.internal.util.MockNameImpl
 
MockNameImpl(String, Class<?>, boolean) - Constructor for class org.mockito.internal.util.MockNameImpl
 
mockRef - Variable in class org.mockito.internal.invocation.InterceptedInvocation
 
MockReference<T> - Interface in org.mockito.internal.invocation.mockref
To avoid memory leaks for certain implementations of MockMaker, we need to use weak mock references internally.
mockReplacementCompleted() - Method in class org.mockito.internal.creation.bytebuddy.ByteBuddyCrossClassLoaderSerializationSupport
 
mockReplacementStarted() - Method in class org.mockito.internal.creation.bytebuddy.ByteBuddyCrossClassLoaderSerializationSupport
 
MockResolver - Interface in org.mockito.plugins
A mock resolver offers an opportunity to resolve a mock from any instance that is provided to the Mockito-DSL.
mockResolvers - Variable in class org.mockito.internal.configuration.plugins.PluginRegistry
 
mocks - Variable in class org.mockito.internal.configuration.injection.MockInjection.OngoingMockInjection
 
mocks - Variable in class org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker
 
mocks - Variable in class org.mockito.internal.junit.MismatchReportingTestListener
 
mocks - Variable in class org.mockito.internal.junit.UniversalTestListener
 
mocks - Variable in class org.mockito.internal.junit.UnnecessaryStubbingsReporter
 
MockScanner - Class in org.mockito.internal.configuration.injection.scanner
Scan mocks, and prepare them if needed.
MockScanner(Object, Class<?>) - Constructor for class org.mockito.internal.configuration.injection.scanner.MockScanner
Creates a MockScanner.
mockSettings - Variable in class org.mockito.internal.handler.MockHandlerImpl
 
mockSettings - Variable in class org.mockito.internal.listeners.StubbingLookupNotifier.Event
 
MockSettings - Interface in org.mockito
Allows mock creation with additional mock settings.
MockSettingsImpl<T> - Class in org.mockito.internal.creation
 
MockSettingsImpl() - Constructor for class org.mockito.internal.creation.MockSettingsImpl
 
mocksHaveToBePassedToVerifyNoMoreInteractions() - Static method in class org.mockito.internal.exceptions.Reporter
 
mocksHaveToBePassedWhenCreatingInOrder() - Static method in class org.mockito.internal.exceptions.Reporter
 
mockStatic(Class<T>) - Static method in class org.mockito.Mockito
Creates a thread-local mock controller for all static methods of the given class or interface.
mockStatic(Class<T>, String) - Static method in class org.mockito.Mockito
Creates a thread-local mock controller for all static methods of the given class or interface.
mockStatic(Class<T>, MockSettings) - Method in class org.mockito.internal.MockitoCore
 
mockStatic(Class<T>, MockSettings) - Static method in class org.mockito.Mockito
Creates a thread-local mock controller for all static methods of the given class or interface.
mockStatic(Class<T>, Answer) - Static method in class org.mockito.Mockito
Creates a thread-local mock controller for all static methods of the given class or interface.
mocksToBeVerifiedInOrder - Variable in class org.mockito.internal.InOrderImpl
 
mockStrictness - Variable in class org.mockito.internal.stubbing.InvocationContainerImpl
 
MockStrongReference<T> - Class in org.mockito.internal.invocation.mockref
 
MockStrongReference(T, boolean) - Constructor for class org.mockito.internal.invocation.mockref.MockStrongReference
 
mockTransformer - Variable in class org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator
 
MockUtil - Class in org.mockito.internal.util
 
MockUtil() - Constructor for class org.mockito.internal.util.MockUtil
 
MockWeakReference<T> - Class in org.mockito.internal.invocation.mockref
A weak reference that is converted into a strong reference when serialized.
MockWeakReference(T) - Constructor for class org.mockito.internal.invocation.mockref.MockWeakReference
 
mode - Variable in class org.mockito.internal.verification.InOrderWrapper
 
mode - Variable in class org.mockito.internal.verification.MockAwareVerificationMode
 
mode - Variable in class org.mockito.internal.verification.VerificationEventImpl
 
MODULE_ALIAS - Static variable in class org.mockito.internal.configuration.plugins.DefaultMockitoPlugins
 
ModuleHandler - Class in org.mockito.internal.creation.bytebuddy
 
ModuleHandler() - Constructor for class org.mockito.internal.creation.bytebuddy.ModuleHandler
 
ModuleHandler.ModuleSystemFound - Class in org.mockito.internal.creation.bytebuddy
 
ModuleHandler.NoModuleSystemFound - Class in org.mockito.internal.creation.bytebuddy
 
ModuleMemberAccessor - Class in org.mockito.internal.util.reflection
 
ModuleMemberAccessor() - Constructor for class org.mockito.internal.util.reflection.ModuleMemberAccessor
 
ModuleSystemFound(ByteBuddy, SubclassLoader, Random) - Constructor for class org.mockito.internal.creation.bytebuddy.ModuleHandler.ModuleSystemFound
 
MoreThanAllowedActualInvocations - Error in org.mockito.exceptions.verification
Thrown when atMost(x) verification fails.
MoreThanAllowedActualInvocations(String) - Constructor for error org.mockito.exceptions.verification.MoreThanAllowedActualInvocations
 
moreThanOneAnnotationNotAllowed(String) - Static method in class org.mockito.internal.exceptions.Reporter
 
multiline - Variable in class org.mockito.internal.reporting.PrintSettings
 
multipleMatchingConstructors(Class<?>, List<Constructor<?>>) - Method in class org.mockito.internal.creation.instance.ConstructorInstantiator
 
mutex - Variable in class org.mockito.internal.creation.bytebuddy.ByteBuddyCrossClassLoaderSerializationSupport
 

N

name - Variable in class org.mockito.internal.creation.settings.CreationSettings
 
name - Variable in class org.mockito.internal.framework.DefaultMockitoSession
 
name - Variable in class org.mockito.internal.session.DefaultMockitoSessionBuilder
 
name() - Method in class org.mockito.internal.util.reflection.InstanceField
Returns the name of the field.
name() - Method in annotation type org.mockito.Mock
Mock will have custom name (shown in verification errors), see MockSettings.name(String).
name(String) - Method in class org.mockito.internal.creation.MockSettingsImpl
 
name(String) - Method in class org.mockito.internal.session.DefaultMockitoSessionBuilder
 
name(String) - Method in interface org.mockito.MockSettings
Specifies mock name.
name(String) - Method in interface org.mockito.session.MockitoSessionBuilder
Configures the name of the MockitoSession instance.
NameBasedCandidateFilter - Class in org.mockito.internal.configuration.injection.filter
 
NameBasedCandidateFilter(MockCandidateFilter) - Constructor for class org.mockito.internal.configuration.injection.filter.NameBasedCandidateFilter
 
names() - Method in class org.mockito.internal.util.reflection.Fields.InstanceFields
 
needsSamePackageClassLoader(MockFeatures<?>) - Static method in class org.mockito.internal.creation.bytebuddy.SubclassBytecodeGenerator
 
never() - Method in class org.mockito.internal.verification.VerificationWrapper
 
never() - Static method in class org.mockito.Mockito
Alias to times(0), see Mockito.times(int)
never() - Method in class org.mockito.verification.Timeout
 
never() - Method in interface org.mockito.verification.VerificationAfterDelay
Allows verification that there are no invocations at any point during the given period.
neverWantedButInvoked(DescribedInvocation, List<Invocation>) - Static method in class org.mockito.internal.exceptions.Reporter
 
NeverWantedButInvoked - Error in org.mockito.exceptions.verification
 
NeverWantedButInvoked(String) - Constructor for error org.mockito.exceptions.verification.NeverWantedButInvoked
 
newDeepStubMock(GenericMetadataSupport, Object) - Method in class org.mockito.internal.stubbing.defaultanswers.ReturnsDeepStubs
Creates a mock using the Generics Metadata.
newInstance() - Method in interface org.mockito.plugins.MemberAccessor.ConstructionDispatcher
 
newInstance(Class<T>) - Method in interface org.mockito.creation.instance.Instantiator
Creates instance of given class
newInstance(Class<T>) - Method in class org.mockito.internal.creation.bytebuddy.InlineByteBuddyMockMaker
 
newInstance(Class<T>) - Method in class org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker
 
newInstance(Class<T>) - Method in class org.mockito.internal.creation.instance.ConstructorInstantiator
 
newInstance(Class<T>) - Method in interface org.mockito.internal.creation.instance.Instantiator
Deprecated.
Creates instance of given class
newInstance(Class<T>) - Method in class org.mockito.internal.creation.instance.ObjenesisInstantiator
 
newInstance(Constructor<?>, Object...) - Method in class org.mockito.internal.util.reflection.InstrumentationMemberAccessor
 
newInstance(Constructor<?>, Object...) - Method in class org.mockito.internal.util.reflection.ModuleMemberAccessor
 
newInstance(Constructor<?>, Object...) - Method in class org.mockito.internal.util.reflection.ReflectionMemberAccessor
 
newInstance(Constructor<?>, Object...) - Method in interface org.mockito.plugins.MemberAccessor
 
newInstance(Constructor<?>, MemberAccessor.OnConstruction, Object...) - Method in class org.mockito.internal.util.reflection.InstrumentationMemberAccessor
 
newInstance(Constructor<?>, MemberAccessor.OnConstruction, Object...) - Method in class org.mockito.internal.util.reflection.ModuleMemberAccessor
 
newInstance(Constructor<?>, MemberAccessor.OnConstruction, Object...) - Method in class org.mockito.internal.util.reflection.ReflectionMemberAccessor
 
newInstance(Constructor<?>, MemberAccessor.OnConstruction, Object...) - Method in interface org.mockito.plugins.MemberAccessor
 
newInstance(String, Object...) - Method in class org.mockito.internal.runners.util.RunnerProvider
 
newMockSafeHashSet(Iterable<Object>) - Static method in class org.mockito.internal.util.collections.Sets
 
newMockSafeHashSet(Object...) - Static method in class org.mockito.internal.util.collections.Sets
 
newSet(T...) - Static method in class org.mockito.internal.util.collections.Sets
 
next - Variable in class org.mockito.internal.configuration.injection.filter.NameBasedCandidateFilter
 
next - Variable in class org.mockito.internal.configuration.injection.filter.TypeBasedCandidateFilter
 
next() - Static method in class org.mockito.internal.progress.SequenceNumber
 
next() - Method in class org.mockito.internal.util.concurrent.WeakConcurrentMap.EntryIterator
 
next() - Method in class org.mockito.internal.util.concurrent.WeakConcurrentSet.ReducingIterator
 
nextEntry - Variable in class org.mockito.internal.util.concurrent.WeakConcurrentMap.EntryIterator
 
nextKey - Variable in class org.mockito.internal.util.concurrent.WeakConcurrentMap.EntryIterator
 
nextStrategy - Variable in class org.mockito.internal.configuration.injection.MockInjectionStrategy
 
NO_OP - Static variable in class org.mockito.internal.invocation.InterceptedInvocation
 
NoAction() - Constructor for class org.mockito.plugins.AnnotationEngine.NoAction
 
NoArgConstructorInstantiator(Object, Field) - Constructor for class org.mockito.internal.util.reflection.FieldInitializer.NoArgConstructorInstantiator
Internal, checks are done by FieldInitializer.
noArgConstructorOf(Class<?>) - Static method in class org.mockito.internal.configuration.SpyAnnotationEngine
 
noArgumentValueWasCaptured() - Static method in class org.mockito.internal.exceptions.Reporter
 
noInteractions() - Static method in class org.mockito.internal.verification.VerificationModeFactory
 
NoInteractions - Class in org.mockito.internal.verification
 
NoInteractions() - Constructor for class org.mockito.internal.verification.NoInteractions
 
noInteractionsWanted(Object, List<VerificationAwareInvocation>) - Static method in class org.mockito.internal.exceptions.Reporter
 
NoInteractionsWanted - Error in org.mockito.exceptions.verification
No interactions wanted.
NoInteractionsWanted(String) - Constructor for error org.mockito.exceptions.verification.NoInteractionsWanted
 
noMatchingConstructor(Class<?>) - Method in class org.mockito.internal.creation.instance.ConstructorInstantiator
 
NoModuleSystemFound() - Constructor for class org.mockito.internal.creation.bytebuddy.ModuleHandler.NoModuleSystemFound
 
noMoreInteractions() - Static method in class org.mockito.internal.verification.VerificationModeFactory
 
NoMoreInteractions - Class in org.mockito.internal.verification
 
NoMoreInteractions() - Constructor for class org.mockito.internal.verification.NoMoreInteractions
 
noMoreInteractionsWanted(Invocation, List<VerificationAwareInvocation>) - Static method in class org.mockito.internal.exceptions.Reporter
 
noMoreInteractionsWantedInOrder(Invocation) - Static method in class org.mockito.internal.exceptions.Reporter
 
NON_PUBLIC_PARENT - Static variable in class org.mockito.internal.exceptions.Reporter
 
NONE - org.mockito.mock.SerializableMode
No serialization.
nonMockableReason() - Method in interface org.mockito.plugins.MockMaker.TypeMockability
informs why type is not mockable
NoOpTestListener - Class in org.mockito.internal.junit
 
NoOpTestListener() - Constructor for class org.mockito.internal.junit.NoOpTestListener
 
nop - Static variable in interface org.mockito.internal.configuration.injection.filter.OngoingInjector
Injector that will do nothing, and will return null as no mocks will be injected
nop() - Static method in class org.mockito.internal.configuration.injection.MockInjectionStrategy
NOP Strategy that will always try the next strategy.
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(char) - Static method in class org.mockito.AdditionalMatchers
char 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(float) - Static method in class org.mockito.AdditionalMatchers
float 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(short) - Static method in class org.mockito.AdditionalMatchers
short argument that does not match the given argument matcher.
not(T) - Static method in class org.mockito.AdditionalMatchers
Object argument that does not match the given argument matcher.
Not - Class in org.mockito.internal.matchers
 
Not(ArgumentMatcher<?>) - 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(Class<?>) - Static method in class org.mockito.internal.exceptions.Reporter
 
notAMockPassedToVerifyNoMoreInteractions() - Static method in class org.mockito.internal.exceptions.Reporter
 
notAMockPassedToWhenMethod() - Static method in class org.mockito.internal.exceptions.Reporter
 
notAMockPassedWhenCreatingInOrder() - Static method in class org.mockito.internal.exceptions.Reporter
 
notAnException() - Static method in class org.mockito.internal.exceptions.Reporter
 
NotExtensible - Annotation Type in org.mockito
Indicates to the user that she should not provide custom implementations of given type.
notFinalOrStatic - Variable in class org.mockito.internal.configuration.injection.PropertyAndSetterInjection
 
NotGenericReturnTypeSupport(GenericMetadataSupport, Type) - Constructor for class org.mockito.internal.util.reflection.GenericMetadataSupport.NotGenericReturnTypeSupport
 
NOTHING - Static variable in class org.mockito.internal.creation.bytebuddy.ByteBuddyCrossClassLoaderSerializationSupport.MockitoMockObjectOutputStream
 
NotifiedMethodInvocationReport - Class in org.mockito.internal.handler
Report on a method call
NotifiedMethodInvocationReport(Invocation, Object) - Constructor for class org.mockito.internal.handler.NotifiedMethodInvocationReport
Build a new MethodInvocationReport with a return value.
NotifiedMethodInvocationReport(Invocation, Throwable) - Constructor for class org.mockito.internal.handler.NotifiedMethodInvocationReport
Build a new MethodInvocationReport with a return value.
notifyListeners(VerificationEvent) - Method in class org.mockito.internal.verification.MockAwareVerificationMode
 
notifyMethodCall(Invocation, Object) - Method in class org.mockito.internal.handler.InvocationNotifierHandler
 
notifyMethodCallException(Invocation, Throwable) - Method in class org.mockito.internal.handler.InvocationNotifierHandler
 
notifyStubbedAnswerLookup(Invocation, Stubbing, Collection<Stubbing>, CreationSettings) - Static method in class org.mockito.internal.listeners.StubbingLookupNotifier
 
notifyVerificationStarted(List<VerificationStartedListener>, MockingDetails) - Static method in class org.mockito.internal.listeners.VerificationStartedNotifier
 
notMarkedAsAMockitoMock(Object) - Method in class org.mockito.internal.creation.bytebuddy.ByteBuddyCrossClassLoaderSerializationSupport.MockitoMockObjectInputStream
Read the stream class annotation and identify it as a Mockito mock or not.
notNull() - Static method in class org.mockito.ArgumentMatchers
Not null argument.
notNull() - Method in class org.mockito.internal.util.reflection.Fields.InstanceFields
 
notNull(Class<T>) - Static method in class org.mockito.ArgumentMatchers
Deprecated.
With Java 8 this method will be removed in Mockito 4.0. This method is only used for generic friendliness to avoid casting, this is not anymore needed in Java 8.
NotNull - Class in org.mockito.internal.matchers
 
NotNull() - Constructor for class org.mockito.internal.matchers.NotNull
 
Null - Class in org.mockito.internal.matchers
 
Null() - Constructor for class org.mockito.internal.matchers.Null
 
NULL - Static variable in class org.mockito.internal.matchers.Null
 
nullable(Class<T>) - Static method in class org.mockito.ArgumentMatchers
Argument that is either null or of the given type.
nullField() - Static method in class org.mockito.internal.util.reflection.Fields
Accept fields with non null value.
NullInsteadOfMockException - Exception in org.mockito.exceptions.misusing
 
NullInsteadOfMockException(String) - Constructor for exception org.mockito.exceptions.misusing.NullInsteadOfMockException
 
nullPassedToVerify() - Static method in class org.mockito.internal.exceptions.Reporter
 
nullPassedToVerifyNoMoreInteractions() - Static method in class org.mockito.internal.exceptions.Reporter
 
nullPassedToWhenMethod() - Static method in class org.mockito.internal.exceptions.Reporter
 
nullPassedWhenCreatingInOrder() - Static method in class org.mockito.internal.exceptions.Reporter
 
NullResultGuardian<T> - Class in org.mockito.internal.handler
Protects the results from delegate MockHandler.
NullResultGuardian(MockHandler<T>) - Constructor for class org.mockito.internal.handler.NullResultGuardian
 
numberOfFailures - Variable in class org.mockito.internal.junit.VerificationCollectorImpl
 
NumberOfInvocationsChecker - Class in org.mockito.internal.verification.checkers
 
NumberOfInvocationsChecker() - Constructor for class org.mockito.internal.verification.checkers.NumberOfInvocationsChecker
 

O

object - Variable in class org.mockito.internal.debugging.Localized
 
objectIsMockToBeVerified(Object) - Method in class org.mockito.internal.InOrderImpl
 
ObjectMethodsGuru - Class in org.mockito.internal.util
 
ObjectMethodsGuru() - Constructor for class org.mockito.internal.util.ObjectMethodsGuru
 
objects - Variable in class org.mockito.internal.configuration.injection.ConstructorInjection.SimpleArgumentResolver
 
objectThatIsAssignableFrom(Class<?>) - Method in class org.mockito.internal.configuration.injection.ConstructorInjection.SimpleArgumentResolver
 
objenesis - Variable in class org.mockito.internal.creation.instance.ObjenesisInstantiator
 
ObjenesisInstantiator - Class in org.mockito.internal.creation.instance
 
ObjenesisInstantiator() - Constructor for class org.mockito.internal.creation.instance.ObjenesisInstantiator
 
of(Iterable<Object>) - Static method in class org.mockito.internal.util.collections.HashCodeAndEqualsSafeSet
 
of(Object) - Static method in class org.mockito.internal.util.collections.HashCodeAndEqualsMockWrapper
 
of(Object...) - Static method in class org.mockito.internal.util.collections.HashCodeAndEqualsSafeSet
 
onConstruction - Variable in class org.mockito.internal.creation.bytebuddy.MockMethodAdvice
 
ONE_MATCHER_PER_ARGUMENT - org.mockito.internal.invocation.MatcherApplicationStrategy.MatcherApplicationType
 
ONE_SUB_MATCHER - Static variable in class org.mockito.internal.progress.ArgumentMatcherStorageImpl
 
onField(Field, Object) - Static method in class org.mockito.internal.configuration.injection.MockInjection
Create a new configuration setup for a field
onFields(Set<Field>, Object) - Static method in class org.mockito.internal.configuration.injection.MockInjection
Create a new configuration setup for fields
OngoingInjector - Interface in org.mockito.internal.configuration.injection.filter
Allow the ongoing injection of a mock candidate.
OngoingMockInjection(Field, Object) - Constructor for class org.mockito.internal.configuration.injection.MockInjection.OngoingMockInjection
 
OngoingMockInjection(Set<Field>, Object) - Constructor for class org.mockito.internal.configuration.injection.MockInjection.OngoingMockInjection
 
ongoingStubbing - Variable in class org.mockito.internal.progress.MockingProgressImpl
 
OngoingStubbing<T> - Interface in org.mockito.stubbing
Simply put: "When the x method is called then return y".
OngoingStubbingImpl<T> - Class in org.mockito.internal.stubbing
 
OngoingStubbingImpl(InvocationContainerImpl) - Constructor for class org.mockito.internal.stubbing.OngoingStubbingImpl
 
onInjection(Object, Class<?>, Set<Field>, Set<Object>) - Method in class org.mockito.internal.configuration.InjectingAnnotationEngine
 
only() - Static method in class org.mockito.internal.verification.VerificationModeFactory
 
only() - Method in class org.mockito.internal.verification.VerificationWrapper
 
only() - Static method in class org.mockito.Mockito
Allows checking if given method was the only one invoked.
only() - Method in interface org.mockito.verification.VerificationAfterDelay
Verifies that there the given method is invoked and is the only method invoked.
only() - Method in interface org.mockito.verification.VerificationWithTimeout
Allows checking if given method was the only one invoked.
Only - Class in org.mockito.internal.verification
 
Only() - Constructor for class org.mockito.internal.verification.Only
 
onlyVoidMethodsCanBeSetToDoNothing() - Static method in class org.mockito.internal.exceptions.Reporter
 
onMockCreated(Object, MockCreationSettings) - Method in class org.mockito.internal.junit.MismatchReportingTestListener
 
onMockCreated(Object, MockCreationSettings) - Method in class org.mockito.internal.junit.NoOpTestListener
 
onMockCreated(Object, MockCreationSettings) - Method in class org.mockito.internal.junit.StrictStubsRunnerTestListener
 
onMockCreated(Object, MockCreationSettings) - Method in class org.mockito.internal.junit.UniversalTestListener
 
onMockCreated(Object, MockCreationSettings) - Method in class org.mockito.internal.junit.UnnecessaryStubbingsReporter
 
onMockCreated(Object, MockCreationSettings) - Method in interface org.mockito.listeners.MockCreationListener
Mock object was just created.
onStaticMockCreated(Class<?>, MockCreationSettings) - Method in interface org.mockito.listeners.MockCreationListener
Static mock object was just created.
onStubbingLookup(StubbingLookupEvent) - Method in class org.mockito.internal.junit.DefaultStubbingLookupListener
 
onStubbingLookup(StubbingLookupEvent) - Method in interface org.mockito.listeners.StubbingLookupListener
Called by the framework when Mockito looked up an answer for invocation on a mock.
onVerification(VerificationEvent) - Method in interface org.mockito.listeners.VerificationListener
Called after a verification happened.
onVerificationStarted(VerificationStartedEvent) - Method in interface org.mockito.listeners.VerificationStartedListener
Triggered when the user calls Mockito.verify().
openMocks(Object) - Static method in class org.mockito.MockitoAnnotations
Initializes objects annotated with Mockito annotations for given testClass: @Mock, @Spy, @Captor, @InjectMocks
or(boolean, boolean) - Static method in class org.mockito.AdditionalMatchers
boolean 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(char, char) - Static method in class org.mockito.AdditionalMatchers
char 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(float, float) - Static method in class org.mockito.AdditionalMatchers
float 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(long, long) - Static method in class org.mockito.AdditionalMatchers
long 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(T, T) - Static method in class org.mockito.AdditionalMatchers
Object argument that matches any of the given argument matchers.
Or - Class in org.mockito.internal.matchers
 
Or(ArgumentMatcher<?>, ArgumentMatcher<?>) - Constructor for class org.mockito.internal.matchers.Or
 
orderedInstanceFieldsFrom(Class<?>) - Method in class org.mockito.internal.configuration.injection.PropertyAndSetterInjection
 
orderingContext - Variable in class org.mockito.internal.invocation.InvocationsFinder.RemoveUnverifiedInOrder
 
org.mockito - package org.mockito
Mockito is a mock library for java - see Mockito class for usage.
org.mockito.codegen - package org.mockito.codegen
 
org.mockito.configuration - package org.mockito.configuration
Mockito configuration utilities.
org.mockito.creation.instance - package org.mockito.creation.instance
 
org.mockito.exceptions.base - package org.mockito.exceptions.base
Base classes for exceptions and errors, stack trace filtering/removing logic.
org.mockito.exceptions.misusing - package org.mockito.exceptions.misusing
Exceptions thrown when Mockito is misused.
org.mockito.exceptions.stacktrace - package org.mockito.exceptions.stacktrace
Stack trace filtering / cleaning public APIs.
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 4 and earlier in IDEs.
org.mockito.exceptions.verification.opentest4j - package org.mockito.exceptions.verification.opentest4j
Integration to provide better support for IDEs that support OpenTest4J.
org.mockito.hamcrest - package org.mockito.hamcrest
Mockito Hamcrest matcher integration.
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.configuration.injection - package org.mockito.internal.configuration.injection
Mockito injection internals.
org.mockito.internal.configuration.injection.filter - package org.mockito.internal.configuration.injection.filter
 
org.mockito.internal.configuration.injection.scanner - package org.mockito.internal.configuration.injection.scanner
 
org.mockito.internal.configuration.plugins - package org.mockito.internal.configuration.plugins
Mockito plugins configuration machinery.
org.mockito.internal.creation - package org.mockito.internal.creation
Mock object creation.
org.mockito.internal.creation.bytebuddy - package org.mockito.internal.creation.bytebuddy
ByteBuddy related stuff.
org.mockito.internal.creation.bytebuddy.inject - package org.mockito.internal.creation.bytebuddy.inject
Internal classes, not to be used by clients.
org.mockito.internal.creation.instance - package org.mockito.internal.creation.instance
 
org.mockito.internal.creation.proxy - package org.mockito.internal.creation.proxy
Mock makers based on the Proxy utility.
org.mockito.internal.creation.settings - package org.mockito.internal.creation.settings
 
org.mockito.internal.creation.util - package org.mockito.internal.creation.util
Stuff that does not have a good package yet.
org.mockito.internal.debugging - package org.mockito.internal.debugging
Whatever helps in debugging failed tests.
org.mockito.internal.exceptions - package org.mockito.internal.exceptions
 
org.mockito.internal.exceptions.stacktrace - package org.mockito.internal.exceptions.stacktrace
Stack trace filtering / cleaning internal APIs.
org.mockito.internal.exceptions.util - package org.mockito.internal.exceptions.util
 
org.mockito.internal.framework - package org.mockito.internal.framework
 
org.mockito.internal.hamcrest - package org.mockito.internal.hamcrest
 
org.mockito.internal.handler - package org.mockito.internal.handler
 
org.mockito.internal.invocation - package org.mockito.internal.invocation
Invocation machinery and related classes.
org.mockito.internal.invocation.finder - package org.mockito.internal.invocation.finder
 
org.mockito.internal.invocation.mockref - package org.mockito.internal.invocation.mockref
 
org.mockito.internal.junit - package org.mockito.internal.junit
JUnit integration support classes.
org.mockito.internal.junit.util - package org.mockito.internal.junit.util
 
org.mockito.internal.listeners - package org.mockito.internal.listeners
 
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.matchers.text - package org.mockito.internal.matchers.text
 
org.mockito.internal.progress - package org.mockito.internal.progress
Mocking progress stateful classes.
org.mockito.internal.reporting - package org.mockito.internal.reporting
Deals with nicely printing verification errors.
org.mockito.internal.runners - package org.mockito.internal.runners
Internal classes for runners implementations.
org.mockito.internal.runners.util - package org.mockito.internal.runners.util
Internal utils for runner implementations.
org.mockito.internal.session - package org.mockito.internal.session
 
org.mockito.internal.stubbing - package org.mockito.internal.stubbing
Stubbing logic.
org.mockito.internal.stubbing.answers - package org.mockito.internal.stubbing.answers
Answers for stubbed calls.
org.mockito.internal.stubbing.defaultanswers - package org.mockito.internal.stubbing.defaultanswers
Implementations of default Answers.
org.mockito.internal.util - package org.mockito.internal.util
Static utils
org.mockito.internal.util.collections - package org.mockito.internal.util.collections
 
org.mockito.internal.util.concurrent - package org.mockito.internal.util.concurrent
 
org.mockito.internal.util.io - package org.mockito.internal.util.io
 
org.mockito.internal.util.reflection - package org.mockito.internal.util.reflection
Reflection utilities.
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.argumentmatching - package org.mockito.internal.verification.argumentmatching
Deals with matching arguments.
org.mockito.internal.verification.checkers - package org.mockito.internal.verification.checkers
Verification checkers.
org.mockito.invocation - package org.mockito.invocation
Public API related to mock method invocations.
org.mockito.junit - package org.mockito.junit
Mockito JUnit integration ; rule and runners.
org.mockito.listeners - package org.mockito.listeners
Public classes relative to the listener APIs.
org.mockito.mock - package org.mockito.mock
Mock settings related classes.
org.mockito.plugins - package org.mockito.plugins
Mockito plugins allow customization of behavior.
org.mockito.quality - package org.mockito.quality
Mocking quality related classes.
org.mockito.runners - package org.mockito.runners
JUnit runners.
org.mockito.session - package org.mockito.session
 
org.mockito.stubbing - package org.mockito.stubbing
Stubbing related classes.
org.mockito.verification - package org.mockito.verification
Verification related classes.
origin - Variable in class org.mockito.internal.creation.bytebuddy.MockMethodAdvice.RealMethodCall
 
origin - Variable in class org.mockito.internal.creation.bytebuddy.MockMethodAdvice.SerializableRealMethodCall
 
origin - Variable in class org.mockito.internal.creation.bytebuddy.MockMethodAdvice.StaticMethodCall
 
originalMockingDetails - Variable in class org.mockito.internal.listeners.VerificationStartedNotifier.Event
 
OS_NAME - Static variable in class org.mockito.internal.util.Platform
 
OS_VERSION - Static variable in class org.mockito.internal.util.Platform
 
outerClassInstance - Variable in class org.mockito.internal.creation.MockSettingsImpl
 
outerClassInstance - Variable in class org.mockito.internal.creation.settings.CreationSettings
 
outerInstance(Object) - Method in class org.mockito.internal.creation.MockSettingsImpl
 
outerInstance(Object) - Method in interface org.mockito.MockSettings
Makes it possible to mock non-static inner classes in conjunction with MockSettings.useConstructor(Object...).

P

ParameterAddingClassVisitor(ClassVisitor, TypeDescription) - Constructor for class org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator.ParameterWritingVisitorWrapper.ParameterAddingClassVisitor
 
ParameterizedConstructorInstantiator(Object, Field, FieldInitializer.ConstructorArgumentResolver) - Constructor for class org.mockito.internal.util.reflection.FieldInitializer.ParameterizedConstructorInstantiator
Internal, checks are done by FieldInitializer.
ParameterizedReturnType(GenericMetadataSupport, TypeVariable<?>[], ParameterizedType) - Constructor for class org.mockito.internal.util.reflection.GenericMetadataSupport.ParameterizedReturnType
 
parameterizedType - Variable in class org.mockito.internal.util.reflection.GenericMetadataSupport.FromParameterizedTypeGenericMetadataSupport
 
parameterizedType - Variable in class org.mockito.internal.util.reflection.GenericMetadataSupport.ParameterizedReturnType
 
parameterTypeNames - Variable in class org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.InlineConstructionMockContext
 
parameterTypes - Variable in class org.mockito.internal.creation.DelegatingMethod
 
parameterTypes - Variable in class org.mockito.internal.invocation.SerializableMethod
 
ParameterWritingVisitorWrapper(Class<?>) - Constructor for class org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator.ParameterWritingVisitorWrapper
 
paramsException(Class<?>, Exception) - Method in class org.mockito.internal.creation.instance.ConstructorInstantiator
 
paramsMatch(Class<?>[], Object[]) - Static method in class org.mockito.internal.creation.instance.ConstructorInstantiator
 
pattern - Variable in class org.mockito.internal.matchers.Matches
 
Platform - Class in org.mockito.internal.util
 
Platform() - Constructor for class org.mockito.internal.util.Platform
 
PluginFileReader - Class in org.mockito.internal.configuration.plugins
 
PluginFileReader() - Constructor for class org.mockito.internal.configuration.plugins.PluginFileReader
 
PluginFinder - Class in org.mockito.internal.configuration.plugins
 
PluginFinder(PluginSwitch) - Constructor for class org.mockito.internal.configuration.plugins.PluginFinder
 
PluginInitializer - Class in org.mockito.internal.configuration.plugins
 
PluginInitializer(PluginSwitch, Set<String>, DefaultMockitoPlugins) - Constructor for class org.mockito.internal.configuration.plugins.PluginInitializer
 
PluginLoader - Class in org.mockito.internal.configuration.plugins
 
PluginLoader(DefaultMockitoPlugins, PluginInitializer) - Constructor for class org.mockito.internal.configuration.plugins.PluginLoader
 
PluginLoader(PluginSwitch) - Constructor for class org.mockito.internal.configuration.plugins.PluginLoader
 
PluginLoader(PluginSwitch, String...) - Constructor for class org.mockito.internal.configuration.plugins.PluginLoader
Adds an alias for a class name to this plugin loader.
PluginRegistry - Class in org.mockito.internal.configuration.plugins
 
PluginRegistry() - Constructor for class org.mockito.internal.configuration.plugins.PluginRegistry
 
plugins - Variable in class org.mockito.internal.configuration.plugins.PluginInitializer
 
plugins - Variable in class org.mockito.internal.configuration.plugins.PluginLoader
 
Plugins - Class in org.mockito.internal.configuration.plugins
Access to Mockito behavior that can be reconfigured by plugins
Plugins() - Constructor for class org.mockito.internal.configuration.plugins.Plugins
 
pluginSwitch - Variable in class org.mockito.internal.configuration.plugins.PluginFinder
 
pluginSwitch - Variable in class org.mockito.internal.configuration.plugins.PluginInitializer
 
pluginSwitch - Variable in class org.mockito.internal.configuration.plugins.PluginRegistry
 
PluginSwitch - Interface in org.mockito.plugins
Allows switching off the plugins that are discovered on classpath.
pluralize(int) - Static method in class org.mockito.internal.reporting.Pluralizer
 
Pluralizer - Class in org.mockito.internal.reporting
 
Pluralizer() - Constructor for class org.mockito.internal.reporting.Pluralizer
 
pollingPeriodMillis - Variable in class org.mockito.internal.verification.VerificationOverTimeImpl
 
popMatcher() - Method in class org.mockito.internal.progress.ArgumentMatcherStorageImpl
 
possibleArgumentTypesOf(InvocationOnMock) - Static method in class org.mockito.internal.exceptions.Reporter
 
postInjectionStrategies - Variable in class org.mockito.internal.configuration.injection.MockInjection.OngoingMockInjection
 
potentialArgMismatches(Invocation, Collection<Stubbing>) - Static method in class org.mockito.internal.junit.DefaultStubbingLookupListener
 
potentialStubbingProblem(Invocation, Collection<Invocation>) - Static method in class org.mockito.internal.exceptions.Reporter
 
PotentialStubbingProblem - Exception in org.mockito.exceptions.misusing
PotentialStubbingProblem improves productivity by failing the test early when the user misconfigures mock's stubbing.
PotentialStubbingProblem(String) - Constructor for exception org.mockito.exceptions.misusing.PotentialStubbingProblem
 
prefix - Variable in class org.mockito.internal.matchers.StartsWith
 
preload() - Static method in class org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator
Mockito allows to mock about any type, including such types that we are relying on ourselves.
PRELOAD - Static variable in class org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator
 
prepare(T, MockedConstruction.Context) - Method in interface org.mockito.MockedConstruction.MockInitializer
 
preparedMock(Object, Field) - Method in class org.mockito.internal.configuration.injection.scanner.MockScanner
 
prepareExtraInterfaces(CreationSettings) - Static method in class org.mockito.internal.creation.MockSettingsImpl
 
prettifyFailure(MockCreationSettings<T>, Exception) - Method in class org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker
 
prettifyFailure(MockCreationSettings<T>, Exception) - Method in class org.mockito.internal.creation.bytebuddy.SubclassByteBuddyMockMaker
 
PRIMITIVE_OR_WRAPPER_DEFAULT_VALUES - Static variable in class org.mockito.internal.util.Primitives
 
PRIMITIVE_TYPES - Static variable in class org.mockito.internal.util.Primitives
 
Primitives - Class in org.mockito.internal.util
 
Primitives() - Constructor for class org.mockito.internal.util.Primitives
 
PRIMITIVES - Static variable in class org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.InlineConstructionMockContext
 
primitiveTypeOf(Class<T>) - Static method in class org.mockito.internal.util.Primitives
Returns the primitive type of the given class.
print() - Method in class org.mockito.internal.debugging.WarningsPrinterImpl
 
print(Object) - Static method in class org.mockito.internal.matchers.text.ValuePrinter
Prints given value so that it is neatly readable by humans.
print(String) - Method in class org.mockito.internal.debugging.MockitoDebuggerImpl
 
print(List<ArgumentMatcher>, Invocation) - Method in class org.mockito.internal.reporting.PrintSettings
 
print(List<VerificationAwareInvocation>) - Method in class org.mockito.internal.exceptions.util.ScenarioPrinter
 
print(Invocation) - Method in class org.mockito.internal.reporting.PrintSettings
 
print(MatchableInvocation) - Method in class org.mockito.internal.reporting.PrintSettings
 
printChar(char) - Static method in class org.mockito.internal.matchers.text.ValuePrinter
 
printFooter() - Method in class org.mockito.internal.debugging.VerboseMockInvocationLogger
 
printHeader() - Method in class org.mockito.internal.debugging.VerboseMockInvocationLogger
 
printInvocation(DescribedInvocation) - Method in class org.mockito.internal.debugging.VerboseMockInvocationLogger
 
printInvocations() - Method in class org.mockito.internal.util.DefaultMockingDetails
 
printInvocations() - Method in interface org.mockito.MockingDetails
Returns printing-friendly list of the invocations that occurred with the mock object.
printInvocations(Object) - Method in class org.mockito.internal.debugging.InvocationsPrinter
 
printInvocations(Object...) - Method in class org.mockito.internal.debugging.MockitoDebuggerImpl
Deprecated.
printInvocations(Object...) - Method in interface org.mockito.MockitoDebugger
Deprecated.
- please use MockingDetails.printInvocations() instead. An instance of MockingDetails can be retrieved via Mockito.mockingDetails(Object).
printlnIndented(String) - Method in class org.mockito.internal.debugging.VerboseMockInvocationLogger
 
printMap(Map<?, ?>) - Static method in class org.mockito.internal.matchers.text.ValuePrinter
 
printMethodReturnType() - Method in class org.mockito.internal.stubbing.answers.InvocationInfo
 
printReturnedValueOrThrowable(MethodInvocationReport) - Method in class org.mockito.internal.debugging.VerboseMockInvocationLogger
 
printReturnType() - Method in class org.mockito.internal.stubbing.answers.Returns
 
PrintSettings - Class in org.mockito.internal.reporting
 
PrintSettings() - Constructor for class org.mockito.internal.reporting.PrintSettings
 
printStream - Variable in class org.mockito.internal.debugging.VerboseMockInvocationLogger
 
printStubInfo(MethodInvocationReport) - Method in class org.mockito.internal.debugging.VerboseMockInvocationLogger
 
printValues(String, String, String, Iterator<?>) - Static method in class org.mockito.internal.matchers.text.ValuePrinter
Print values in a nice format, e.g.
privateLookupIn - Variable in class org.mockito.internal.creation.bytebuddy.SubclassInjectionLoader.WithLookup
 
privateLookupIn - Variable in class org.mockito.internal.util.reflection.InstrumentationMemberAccessor
 
process(A, Field) - Method in interface org.mockito.internal.configuration.FieldAnnotationProcessor
 
process(Class<?>, Object) - Method in class org.mockito.internal.configuration.IndependentAnnotationEngine
 
process(Class<?>, Object) - Method in class org.mockito.internal.configuration.InjectingAnnotationEngine
Process the fields of the test instance and create Mocks, Spies, Captors and inject them on fields annotated @InjectMocks.
process(Class<?>, Object) - Method in class org.mockito.internal.configuration.SpyAnnotationEngine
 
process(Class<?>, Object) - Method in interface org.mockito.plugins.AnnotationEngine
Processes the test instance to configure annotated members.
process(Field, Object, Set<Object>) - Method in class org.mockito.internal.configuration.injection.MockInjectionStrategy
Actually inject mockCandidates on field.
process(Captor, Field) - Method in class org.mockito.internal.configuration.CaptorAnnotationProcessor
 
process(Mock, Field) - Method in class org.mockito.internal.configuration.MockAnnotationProcessor
 
processAnnotationForMock(Mock, Class<?>, Supplier<Type>, String) - Static method in class org.mockito.internal.configuration.MockAnnotationProcessor
 
processIndependentAnnotations(Class<?>, Object) - Method in class org.mockito.internal.configuration.InjectingAnnotationEngine
 
processInjection(Field, Object, Set<Object>) - Method in class org.mockito.internal.configuration.injection.ConstructorInjection
 
processInjection(Field, Object, Set<Object>) - Method in class org.mockito.internal.configuration.injection.MockInjectionStrategy
Process actual injection.
processInjection(Field, Object, Set<Object>) - Method in class org.mockito.internal.configuration.injection.PropertyAndSetterInjection
 
processInjection(Field, Object, Set<Object>) - Method in class org.mockito.internal.configuration.injection.SpyOnInjectedFieldsHandler
 
processInjectMocks(Class<?>, Object) - Method in class org.mockito.internal.configuration.InjectingAnnotationEngine
 
propagateSerializationSettings(MockSettings, MockCreationSettings) - Method in class org.mockito.internal.stubbing.defaultanswers.ReturnsDeepStubs
 
PropertyAndSetterInjection - Class in org.mockito.internal.configuration.injection
Inject mocks using first setters then fields, if no setters available.
PropertyAndSetterInjection() - Constructor for class org.mockito.internal.configuration.injection.PropertyAndSetterInjection
 
provider - Variable in class org.mockito.internal.creation.instance.InstantiatorProvider2Adapter
 
provider - Variable in class org.mockito.internal.creation.instance.InstantiatorProviderAdapter
 
proxy - Variable in class org.mockito.internal.creation.proxy.ProxyMockMaker.RealDefaultMethod
 
PROXY_ALIAS - Static variable in class org.mockito.internal.configuration.plugins.DefaultMockitoPlugins
 
ProxyMockMaker - Class in org.mockito.internal.creation.proxy
A mock maker that is using the Proxy utility and is therefore only capable of mocking interfaces but does not rely on manual byte code generation but only uses official and public Java API.
ProxyMockMaker() - Constructor for class org.mockito.internal.creation.proxy.ProxyMockMaker
 
ProxyMockMaker.MockInvocationHandler - Class in org.mockito.internal.creation.proxy
 
ProxyMockMaker.RealDefaultMethod - Class in org.mockito.internal.creation.proxy
 
pullLocalizedMatchers() - Method in interface org.mockito.internal.progress.ArgumentMatcherStorage
 
pullLocalizedMatchers() - 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
 
pullVerificationMode() - Method in interface org.mockito.internal.progress.MockingProgress
 
pullVerificationMode() - Method in class org.mockito.internal.progress.MockingProgressImpl
 
pushTo(Thread) - Method in class org.mockito.internal.util.concurrent.DetachedThreadLocal
 
put(K, V) - Method in class org.mockito.internal.util.concurrent.WeakConcurrentMap
 
put(K, V) - Method in class org.mockito.internal.util.concurrent.WeakConcurrentMap.WithInlinedExpunction
 

R

random - Variable in class org.mockito.internal.creation.bytebuddy.ModuleHandler.ModuleSystemFound
 
random - Variable in class org.mockito.internal.creation.bytebuddy.SubclassBytecodeGenerator
 
rawArguments - Variable in class org.mockito.internal.invocation.InterceptedInvocation
 
rawExtraInterfaces() - Method in class org.mockito.internal.util.reflection.GenericMetadataSupport
 
rawExtraInterfaces() - Method in class org.mockito.internal.util.reflection.GenericMetadataSupport.TypeVariableReturnType
 
rawType - Variable in class org.mockito.internal.util.reflection.GenericMetadataSupport.TypeVariableReturnType
 
rawType() - Method in class org.mockito.internal.util.reflection.GenericMetadataSupport.FromClassGenericMetadataSupport
 
rawType() - Method in class org.mockito.internal.util.reflection.GenericMetadataSupport.FromParameterizedTypeGenericMetadataSupport
 
rawType() - Method in class org.mockito.internal.util.reflection.GenericMetadataSupport.GenericArrayReturnType
 
rawType() - Method in class org.mockito.internal.util.reflection.GenericMetadataSupport.NotGenericReturnTypeSupport
 
rawType() - Method in class org.mockito.internal.util.reflection.GenericMetadataSupport.ParameterizedReturnType
 
rawType() - Method in class org.mockito.internal.util.reflection.GenericMetadataSupport
 
rawType() - Method in class org.mockito.internal.util.reflection.GenericMetadataSupport.TypeVariableReturnType
 
read() - Method in class org.mockito.internal.util.reflection.FieldReader
 
read() - Method in class org.mockito.internal.util.reflection.InstanceField
Safely read the field.
readActualTypeParameters() - Method in class org.mockito.internal.util.reflection.GenericMetadataSupport.FromParameterizedTypeGenericMetadataSupport
 
reader() - Method in class org.mockito.internal.util.reflection.InstanceField
 
readLines(InputStream) - Static method in class org.mockito.internal.util.io.IOUtil
 
readLock - Variable in class org.mockito.internal.matchers.CapturingMatcher
 
readObject(ObjectInputStream) - Method in class org.mockito.internal.creation.bytebuddy.MockMethodInterceptor
 
readPluginClass(InputStream) - Method in class org.mockito.internal.configuration.plugins.PluginFileReader
 
readReplace - Variable in class org.mockito.internal.creation.bytebuddy.SubclassBytecodeGenerator
 
readResolve() - Method in class org.mockito.internal.creation.bytebuddy.ByteBuddyCrossClassLoaderSerializationSupport.CrossClassLoaderSerializationProxy
Resolves the proxy to a new deserialized instance of the Mockito mock.
readResolve() - Method in class org.mockito.internal.invocation.mockref.MockStrongReference
 
readTypeParameters() - Method in class org.mockito.internal.util.reflection.GenericMetadataSupport.ParameterizedReturnType
 
readTypeParameters() - Method in class org.mockito.internal.util.reflection.GenericMetadataSupport.TypeVariableReturnType
 
readTypeVariables() - Method in class org.mockito.internal.util.reflection.GenericMetadataSupport.ParameterizedReturnType
 
readTypeVariables() - Method in class org.mockito.internal.util.reflection.GenericMetadataSupport.TypeVariableReturnType
 
RealDefaultMethod(Object, Method, Object[]) - Constructor for class org.mockito.internal.creation.proxy.ProxyMockMaker.RealDefaultMethod
 
realMethod - Variable in class org.mockito.internal.invocation.InterceptedInvocation
 
RealMethod - Interface in org.mockito.internal.invocation
Interface that wraps a 'real' method of the mock object.
RealMethod.FromBehavior - Class in org.mockito.internal.invocation
 
RealMethod.FromCallable - Class in org.mockito.internal.invocation
 
RealMethod.IsIllegal - Enum in org.mockito.internal.invocation
 
RealMethodCall(MockMethodAdvice.SelfCallInfo, Method, Object, Object[]) - Constructor for class org.mockito.internal.creation.bytebuddy.MockMethodAdvice.RealMethodCall
 
recordDeepStubAnswer(Object, InvocationContainerImpl) - Method in class org.mockito.internal.stubbing.defaultanswers.ReturnsDeepStubs
 
redefineModule - Variable in class org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator
 
redefineModule - Variable in class org.mockito.internal.util.reflection.InstrumentationMemberAccessor
 
ReducingIterator(Iterator<Map.Entry<V, Boolean>>) - Constructor for class org.mockito.internal.util.concurrent.WeakConcurrentSet.ReducingIterator
 
RedundantListenerException - Exception in org.mockito.exceptions.misusing
Reported when instance of MockitoListener is being added to Mockito (see MockitoFramework) and there is already a listener with this implementation type registered.
RedundantListenerException(String) - Constructor for exception org.mockito.exceptions.misusing.RedundantListenerException
 
redundantMockitoListener(String) - Static method in class org.mockito.internal.exceptions.Reporter
 
ref - Variable in class org.mockito.internal.invocation.mockref.MockStrongReference
 
ref - Variable in class org.mockito.internal.invocation.mockref.MockWeakReference
 
refEq(T, String...) - Static method in class org.mockito.ArgumentMatchers
Object argument that is reflection-equal to the given value with support for excluding selected fields from a class.
reflectionAppend(Object, Object, Class<?>, EqualsBuilder, boolean, String[]) - Static method in class org.mockito.internal.matchers.apachecommons.EqualsBuilder
Appends the fields and values defined by the given object of the given Class.
reflectionEquals(Object, Object) - Static method in class org.mockito.internal.matchers.apachecommons.EqualsBuilder
This method uses reflection to determine if the two Objects are equal.
reflectionEquals(Object, Object, boolean) - Static method in class org.mockito.internal.matchers.apachecommons.EqualsBuilder
This method uses reflection to determine if the two Objects are equal.
reflectionEquals(Object, Object, boolean, Class<?>) - Static method in class org.mockito.internal.matchers.apachecommons.EqualsBuilder
This method uses reflection to determine if the two Objects are equal.
reflectionEquals(Object, Object, boolean, Class<?>, String[]) - Static method in class org.mockito.internal.matchers.apachecommons.EqualsBuilder
This method uses reflection to determine if the two Objects are equal.
reflectionEquals(Object, Object, String[]) - Static method in class org.mockito.internal.matchers.apachecommons.EqualsBuilder
This method uses reflection to determine if the two Objects are equal.
ReflectionEquals - Class in org.mockito.internal.matchers.apachecommons
 
ReflectionEquals(Object, String...) - Constructor for class org.mockito.internal.matchers.apachecommons.ReflectionEquals
 
ReflectionMemberAccessor - Class in org.mockito.internal.util.reflection
 
ReflectionMemberAccessor() - Constructor for class org.mockito.internal.util.reflection.ReflectionMemberAccessor
 
regex - Variable in class org.mockito.internal.matchers.Find
 
registerAllTypeVariables(Type) - Method in class org.mockito.internal.util.reflection.GenericMetadataSupport
Registers the type variables for the given type and all of its superclasses and superinterfaces.
registerAnnotationProcessor(Class<A>, FieldAnnotationProcessor<A>) - Method in class org.mockito.internal.configuration.IndependentAnnotationEngine
 
registeredInvocations - Variable in class org.mockito.internal.stubbing.InvocationContainerImpl
 
RegisteredInvocations - Interface in org.mockito.internal.verification
 
registerTypeParametersOn(TypeVariable<?>[]) - Method in class org.mockito.internal.util.reflection.GenericMetadataSupport
 
registerTypeVariableIfNotPresent(TypeVariable<?>) - Method in class org.mockito.internal.util.reflection.GenericMetadataSupport
 
registerTypeVariablesOn(Type) - Method in class org.mockito.internal.util.reflection.GenericMetadataSupport
 
registry - Static variable in class org.mockito.internal.configuration.plugins.Plugins
 
relayProcessToNextStrategy(Field, Object, Set<Object>) - Method in class org.mockito.internal.configuration.injection.MockInjectionStrategy
 
release() - Method in class org.mockito.internal.framework.DefaultMockitoSession
 
remove() - Method in class org.mockito.internal.util.concurrent.WeakConcurrentMap.EntryIterator
 
remove() - Method in class org.mockito.internal.util.concurrent.WeakConcurrentSet.ReducingIterator
 
remove(Object) - Method in class org.mockito.internal.util.collections.HashCodeAndEqualsSafeSet
 
remove(K) - Method in class org.mockito.internal.util.concurrent.WeakConcurrentMap
 
remove(K) - Method in class org.mockito.internal.util.concurrent.WeakConcurrentMap.WithInlinedExpunction
 
remove(V) - Method in class org.mockito.internal.util.concurrent.WeakConcurrentSet
 
removeAll(Collection<?>) - Method in class org.mockito.internal.util.collections.HashCodeAndEqualsSafeSet
 
removeAlreadyVerified(List<Invocation>) - Method in class org.mockito.internal.verification.AtMost
 
removeFirstLine(String) - Static method in class org.mockito.internal.util.StringUtil
 
RemoveIgnoredForVerification() - Constructor for class org.mockito.internal.invocation.finder.VerifiableInvocationsFinder.RemoveIgnoredForVerification
 
removeLast() - Method in class org.mockito.internal.verification.DefaultRegisteredInvocations
 
removeLast() - Method in interface org.mockito.internal.verification.RegisteredInvocations
 
removeLast() - Method in class org.mockito.internal.verification.SingleRegisteredInvocation
 
removeListener(MockitoListener) - Method in class org.mockito.internal.framework.DefaultMockitoFramework
 
removeListener(MockitoListener) - Method in interface org.mockito.internal.progress.MockingProgress
 
removeListener(MockitoListener) - Method in class org.mockito.internal.progress.MockingProgressImpl
 
removeListener(MockitoListener) - Method in interface org.mockito.MockitoFramework
When you add listener using MockitoFramework.addListener(MockitoListener) make sure to remove it.
RemoveNotMatching(MatchableInvocation) - Constructor for class org.mockito.internal.invocation.InvocationsFinder.RemoveNotMatching
 
RemoveToString() - Constructor for class org.mockito.internal.verification.DefaultRegisteredInvocations.RemoveToString
 
RemoveUnverifiedInOrder(InOrderContext) - Constructor for class org.mockito.internal.invocation.InvocationsFinder.RemoveUnverifiedInOrder
 
removeVerifiedInOrder(List<Invocation>, InOrderContext) - Static method in class org.mockito.internal.invocation.InvocationsFinder
 
replace(Object) - Method in class org.mockito.internal.creation.bytebuddy.MockMethodAdvice.SelfCallInfo
 
reportAnd() - Method in interface org.mockito.internal.progress.ArgumentMatcherStorage
 
reportAnd() - Method in class org.mockito.internal.progress.ArgumentMatcherStorageImpl
 
Reporter - Class in org.mockito.internal.exceptions
Reports verification and misusing errors.
Reporter() - Constructor for class org.mockito.internal.exceptions.Reporter
 
reportInvocation(MethodInvocationReport) - Method in class org.mockito.internal.debugging.VerboseMockInvocationLogger
 
reportInvocation(MethodInvocationReport) - Method in interface org.mockito.listeners.InvocationListener
Called after the invocation of the listener's mock if it returned normally.
reportMatcher(Matcher<T>) - Static method in class org.mockito.hamcrest.MockitoHamcrest
 
reportMatcher(ArgumentMatcher<?>) - Static method in class org.mockito.AdditionalMatchers
 
reportMatcher(ArgumentMatcher<?>) - Static method in class org.mockito.ArgumentMatchers
 
reportMatcher(ArgumentMatcher<?>) - Method in interface org.mockito.internal.progress.ArgumentMatcherStorage
 
reportMatcher(ArgumentMatcher<?>) - Method in class org.mockito.internal.progress.ArgumentMatcherStorageImpl
 
reportNoSetterFound - Variable in class org.mockito.internal.util.reflection.BeanPropertySetter
 
reportNoSetterFound() - Method in class org.mockito.internal.util.reflection.BeanPropertySetter
 
reportNoSubMatchersFound(String) - Static method in class org.mockito.internal.exceptions.Reporter
 
reportNot() - Method in interface org.mockito.internal.progress.ArgumentMatcherStorage
 
reportNot() - Method in class org.mockito.internal.progress.ArgumentMatcherStorageImpl
 
reportOngoingStubbing(OngoingStubbing) - Method in class org.mockito.internal.progress.MockingProgressImpl
 
reportOngoingStubbing(OngoingStubbing<?>) - Method in interface org.mockito.internal.progress.MockingProgress
 
reportOr() - Method in interface org.mockito.internal.progress.ArgumentMatcherStorage
 
reportOr() - Method in class org.mockito.internal.progress.ArgumentMatcherStorageImpl
 
reportUnused() - Method in class org.mockito.internal.junit.UnusedStubbings
 
reportUnusedStubs(TestFinishedEvent, Collection<Object>) - Method in class org.mockito.internal.junit.UniversalTestListener
 
requiresAtLeastOneListener(String) - Static method in class org.mockito.internal.exceptions.Reporter
 
reset() - Method in class org.mockito.internal.MockedStaticImpl
 
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 interface org.mockito.MockedStatic
reset(T...) - Method in class org.mockito.internal.MockitoCore
 
reset(T...) - Static method in class org.mockito.Mockito
Smart Mockito users hardly use this feature because they know it could be a sign of poor tests.
resetBuilder() - Method in class org.mockito.internal.junit.VerificationCollectorImpl
 
resetInvocationForPotentialStubbing(MatchableInvocation) - Method in class org.mockito.internal.stubbing.InvocationContainerImpl
 
resetMock(Object) - Static method in class org.mockito.internal.util.MockUtil
 
resetMock(Object, MockHandler, MockCreationSettings) - Method in class org.mockito.internal.creation.bytebuddy.ByteBuddyMockMaker
 
resetMock(Object, MockHandler, MockCreationSettings) - Method in class org.mockito.internal.creation.bytebuddy.InlineByteBuddyMockMaker
 
resetMock(Object, MockHandler, MockCreationSettings) - Method in class org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker
 
resetMock(Object, MockHandler, MockCreationSettings) - Method in class org.mockito.internal.creation.bytebuddy.SubclassByteBuddyMockMaker
 
resetMock(Object, MockHandler, MockCreationSettings) - Method in class org.mockito.internal.creation.proxy.ProxyMockMaker
 
resetMock(Object, MockHandler, MockCreationSettings) - Method in interface org.mockito.plugins.MockMaker
Replaces the existing handler on mock with newHandler.
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
(non-Javadoc)
resetStack() - Method in class org.mockito.internal.progress.ArgumentMatcherStorageImpl
 
resolve(Object) - Static method in class org.mockito.internal.util.MockUtil
 
resolve(Object) - Method in interface org.mockito.plugins.MockResolver
Returns the provided instance or the unwrapped mock that the provided instance represents.
resolveClass(ObjectStreamClass) - Method in class org.mockito.internal.creation.bytebuddy.ByteBuddyCrossClassLoaderSerializationSupport.MockitoMockObjectInputStream
Resolve the Mockito proxy class if it is marked as such.
resolveGenericReturnType(Method) - Method in class org.mockito.internal.util.reflection.GenericMetadataSupport
Resolve current method generic return type to a GenericMetadataSupport.
resolveGenericType(Type, Method) - Method in class org.mockito.internal.util.reflection.GenericMetadataSupport
 
resolveStrategy(Class<?>, ClassLoader, boolean) - Method in class org.mockito.internal.creation.bytebuddy.SubclassInjectionLoader
 
resolveStrategy(Class<?>, ClassLoader, boolean) - Method in class org.mockito.internal.creation.bytebuddy.SubclassInjectionLoader.WithLookup
 
resolveStrategy(Class<?>, ClassLoader, boolean) - Method in class org.mockito.internal.creation.bytebuddy.SubclassInjectionLoader.WithReflection
 
resolveStrategy(Class<?>, ClassLoader, boolean) - Method in interface org.mockito.internal.creation.bytebuddy.SubclassLoader
Resolves a class loading strategy.
resolveTypeInstances(Class<?>...) - Method in class org.mockito.internal.configuration.injection.ConstructorInjection.SimpleArgumentResolver
 
resolveTypeInstances(Class<?>...) - Method in interface org.mockito.internal.util.reflection.FieldInitializer.ConstructorArgumentResolver
Try to resolve instances from types.
retainAll(Collection<?>) - Method in class org.mockito.internal.util.collections.HashCodeAndEqualsSafeSet
 
RetrieveGenericsForDefaultAnswers - Class in org.mockito.internal.stubbing.defaultanswers
 
RetrieveGenericsForDefaultAnswers() - Constructor for class org.mockito.internal.stubbing.defaultanswers.RetrieveGenericsForDefaultAnswers
 
RetrieveGenericsForDefaultAnswers.AnswerCallback - Interface in org.mockito.internal.stubbing.defaultanswers
 
returned - Variable in class org.mockito.internal.creation.bytebuddy.MockMethodAdvice.ReturnValueWrapper
 
returnedValue - Variable in class org.mockito.internal.handler.NotifiedMethodInvocationReport
 
returnOnSuccess - Variable in class org.mockito.internal.verification.VerificationOverTimeImpl
 
Returns - Class in org.mockito.internal.stubbing.answers
 
Returns(Object) - Constructor for class org.mockito.internal.stubbing.answers.Returns
 
RETURNS_DEEP_STUBS - org.mockito.Answers
An answer that returns deep stubs (not mocks).
RETURNS_DEEP_STUBS - Static variable in class org.mockito.Mockito
Optional Answer to be used with Mockito.mock(Class, Answer).
RETURNS_DEFAULTS - org.mockito.Answers
The default configured answer of every mock.
RETURNS_DEFAULTS - Static variable in class org.mockito.Mockito
The default Answer of every mock if the mock was not stubbed.
RETURNS_MOCKS - org.mockito.Answers
An answer that returns mocks (not stubs).
RETURNS_MOCKS - Static variable in class org.mockito.Mockito
Optional Answer to be used with Mockito.mock(Class, Answer)
RETURNS_SELF - org.mockito.Answers
An answer that tries to return itself.
RETURNS_SELF - Static variable in class org.mockito.Mockito
Optional Answer to be used with Mockito.mock(Class, Answer).
RETURNS_SMART_NULLS - org.mockito.Answers
An answer that returns smart-nulls.
RETURNS_SMART_NULLS - Static variable in class org.mockito.Mockito
Optional Answer to be used with Mockito.mock(Class, Answer).
returnsArgAt(int) - Static method in class org.mockito.AdditionalAnswers
Returns the parameter of an invocation at the given position.
ReturnsArgumentAt - Class in org.mockito.internal.stubbing.answers
Returns the passed parameter identity at specified index.
ReturnsArgumentAt(int) - Constructor for class org.mockito.internal.stubbing.answers.ReturnsArgumentAt
Build the identity answer to return the argument at the given position in the argument array.
ReturnsDeepStubs - Class in org.mockito.internal.stubbing.defaultanswers
Returning deep stub implementation.
ReturnsDeepStubs() - Constructor for class org.mockito.internal.stubbing.defaultanswers.ReturnsDeepStubs
 
ReturnsDeepStubs.DeeplyStubbedAnswer - Class in org.mockito.internal.stubbing.defaultanswers
 
ReturnsDeepStubs.LazyHolder - Class in org.mockito.internal.stubbing.defaultanswers
 
ReturnsDeepStubs.ReturnsDeepStubsSerializationFallback - Class in org.mockito.internal.stubbing.defaultanswers
 
returnsDeepStubsAnswerUsing(GenericMetadataSupport) - Method in class org.mockito.internal.stubbing.defaultanswers.ReturnsDeepStubs
 
ReturnsDeepStubsSerializationFallback(GenericMetadataSupport) - Constructor for class org.mockito.internal.stubbing.defaultanswers.ReturnsDeepStubs.ReturnsDeepStubsSerializationFallback
 
returnsElementsOf(Collection<?>) - Static method in class org.mockito.AdditionalAnswers
Returns elements of the collection.
ReturnsElementsOf - Class in org.mockito.internal.stubbing.answers
Returns elements of the collection.
ReturnsElementsOf(Collection<?>) - Constructor for class org.mockito.internal.stubbing.answers.ReturnsElementsOf
 
ReturnsEmptyValues - Class in org.mockito.internal.stubbing.defaultanswers
Default answer of every Mockito mock.
ReturnsEmptyValues() - Constructor for class org.mockito.internal.stubbing.defaultanswers.ReturnsEmptyValues
 
returnsFirstArg() - Static method in class org.mockito.AdditionalAnswers
Returns the first parameter of an invocation.
returnsLastArg() - Static method in class org.mockito.AdditionalAnswers
Returns the last parameter of an invocation.
ReturnsMocks - Class in org.mockito.internal.stubbing.defaultanswers
 
ReturnsMocks() - Constructor for class org.mockito.internal.stubbing.defaultanswers.ReturnsMocks
 
ReturnsMoreEmptyValues - Class in org.mockito.internal.stubbing.defaultanswers
It's likely this implementation will be used by default by every Mockito 4.0.0 mock.
ReturnsMoreEmptyValues() - Constructor for class org.mockito.internal.stubbing.defaultanswers.ReturnsMoreEmptyValues
 
returnsNull() - Method in class org.mockito.internal.stubbing.answers.Returns
 
returnsPrimitive() - Method in class org.mockito.internal.stubbing.answers.InvocationInfo
 
returnsSecondArg() - Static method in class org.mockito.AdditionalAnswers
Returns the second parameter of an invocation.
ReturnsSmartNulls - Class in org.mockito.internal.stubbing.defaultanswers
Optional Answer that can be used with Mockito.mock(Class, Answer)
ReturnsSmartNulls() - Constructor for class org.mockito.internal.stubbing.defaultanswers.ReturnsSmartNulls
 
ReturnsSmartNulls.ThrowsSmartNullPointer - Class in org.mockito.internal.stubbing.defaultanswers
 
returnType - Variable in class org.mockito.internal.invocation.SerializableMethod
 
returnType - Variable in class org.mockito.internal.util.reflection.GenericMetadataSupport.NotGenericReturnTypeSupport
 
returnType() - Method in class org.mockito.internal.stubbing.answers.Returns
 
returnTypeForMockWithCorrectGenerics(InvocationOnMock, RetrieveGenericsForDefaultAnswers.AnswerCallback) - Static method in class org.mockito.internal.stubbing.defaultanswers.RetrieveGenericsForDefaultAnswers
 
returnTypeGenericMetadata - Variable in class org.mockito.internal.stubbing.defaultanswers.ReturnsDeepStubs.ReturnsDeepStubsSerializationFallback
 
returnValueFor(Class<?>) - Method in class org.mockito.internal.stubbing.defaultanswers.ReturnsEmptyValues
 
returnValueFor(Class<?>) - Method in class org.mockito.internal.stubbing.defaultanswers.ReturnsMoreEmptyValues
 
ReturnValueWrapper(Object) - Constructor for class org.mockito.internal.creation.bytebuddy.MockMethodAdvice.ReturnValueWrapper
 
rule() - Static method in class org.mockito.junit.MockitoJUnit
Creates rule instance that initiates @Mocks For more details and examples see MockitoRule.
run() - Method in class org.mockito.internal.util.concurrent.DetachedThreadLocal
 
run() - Method in class org.mockito.internal.util.concurrent.WeakConcurrentMap
 
run() - Method in class org.mockito.internal.util.concurrent.WeakConcurrentSet
 
run(RunNotifier) - Method in class org.mockito.internal.runners.DefaultInternalRunner
 
run(RunNotifier) - Method in interface org.mockito.internal.runners.InternalRunner
 
run(RunNotifier) - Method in class org.mockito.internal.runners.StrictRunner
 
run(RunNotifier) - Method in class org.mockito.junit.MockitoJUnitRunner
 
run(RunNotifier) - Method in class org.mockito.runners.ConsoleSpammingMockitoJUnitRunner
Deprecated.
 
run(RunNotifier) - Method in class org.mockito.runners.MockitoJUnitRunner
Deprecated.
run(RunNotifier) - Method in class org.mockito.runners.VerboseMockitoJUnitRunner
Deprecated.
 
runner - Variable in class org.mockito.internal.runners.DefaultInternalRunner
 
runner - Variable in class org.mockito.internal.runners.StrictRunner
 
runner - Variable in class org.mockito.junit.MockitoJUnitRunner
 
runner - Variable in class org.mockito.runners.ConsoleSpammingMockitoJUnitRunner
Deprecated.
 
runner - Variable in class org.mockito.runners.VerboseMockitoJUnitRunner
Deprecated.
 
RunnerFactory - Class in org.mockito.internal.runners
Creates instances of Mockito JUnit Runner in a safe way, e.g.
RunnerFactory() - Constructor for class org.mockito.internal.runners.RunnerFactory
 
RunnerProvider - Class in org.mockito.internal.runners.util
 
RunnerProvider() - Constructor for class org.mockito.internal.runners.util.RunnerProvider
 

S

safelyMatches(ArgumentMatcher, Object) - Static method in class org.mockito.internal.verification.argumentmatching.ArgumentMatchingTool
 
same(T) - Static method in class org.mockito.ArgumentMatchers
Object argument that is the same as the given value.
Same - Class in org.mockito.internal.matchers
 
Same(Object) - Constructor for class org.mockito.internal.matchers.Same
 
scan() - Method in class org.mockito.internal.configuration.injection.scanner.InjectMocksScanner
Scan fields annotated by @InjectMocks
scan() - Method in class org.mockito.internal.configuration.injection.scanner.MockScanner
Scan and prepare mocks for the given testClassInstance and clazz in the type hierarchy.
ScenarioPrinter - Class in org.mockito.internal.exceptions.util
 
ScenarioPrinter() - Constructor for class org.mockito.internal.exceptions.util.ScenarioPrinter
 
ScopedMock - Interface in org.mockito
Represents a mock with a thread-local explicit scope.
selectMatchingName(Collection<Object>, Field) - Method in class org.mockito.internal.configuration.injection.filter.NameBasedCandidateFilter
 
selfCallInfo - Variable in class org.mockito.internal.creation.bytebuddy.MockMethodAdvice.RealMethodCall
 
selfCallInfo - Variable in class org.mockito.internal.creation.bytebuddy.MockMethodAdvice
 
selfCallInfo - Variable in class org.mockito.internal.creation.bytebuddy.MockMethodAdvice.StaticMethodCall
 
SelfCallInfo() - Constructor for class org.mockito.internal.creation.bytebuddy.MockMethodAdvice.SelfCallInfo
 
sequenceNumber - Variable in class org.mockito.internal.invocation.InterceptedInvocation
 
sequenceNumber - Static variable in class org.mockito.internal.progress.SequenceNumber
 
SequenceNumber - Class in org.mockito.internal.progress
 
SequenceNumber() - Constructor for class org.mockito.internal.progress.SequenceNumber
 
serializable() - Method in class org.mockito.internal.creation.MockSettingsImpl
 
serializable() - Method in annotation type org.mockito.Mock
Mock will be serializable, see MockSettings.serializable().
serializable() - Method in interface org.mockito.MockSettings
Configures the mock to be serializable.
serializable(SerializableMode) - Method in class org.mockito.internal.creation.MockSettingsImpl
 
serializable(SerializableMode) - Method in interface org.mockito.MockSettings
Configures the mock to be serializable with a specific serializable mode.
serializableMethod - Variable in class org.mockito.internal.creation.proxy.ProxyMockMaker.RealDefaultMethod
 
SerializableMethod - Class in org.mockito.internal.invocation
 
SerializableMethod(Method) - Constructor for class org.mockito.internal.invocation.SerializableMethod
 
serializableMode - Variable in class org.mockito.internal.creation.bytebuddy.MockFeatures
 
serializableMode - Variable in class org.mockito.internal.creation.bytebuddy.TypeCachingBytecodeGenerator.MockitoMockKey
 
serializableMode - Variable in class org.mockito.internal.creation.settings.CreationSettings
 
SerializableMode - Enum in org.mockito.mock
Mock serializable style.
SerializableMode() - Constructor for enum org.mockito.mock.SerializableMode
 
SerializableRealMethodCall(String, Method, Object, Object[]) - Constructor for class org.mockito.internal.creation.bytebuddy.MockMethodAdvice.SerializableRealMethodCall
 
serializableWontWorkForObjectsThatDontImplementSerializable(Class<?>) - Static method in class org.mockito.internal.exceptions.Reporter
 
serializationSupport - Variable in class org.mockito.internal.creation.bytebuddy.MockMethodInterceptor
 
serializedMock - Variable in class org.mockito.internal.creation.bytebuddy.ByteBuddyCrossClassLoaderSerializationSupport.CrossClassLoaderSerializationProxy
 
serialVersionUID - Static variable in error org.mockito.exceptions.base.MockitoAssertionError
 
serialVersionUID - Static variable in exception org.mockito.exceptions.base.MockitoException
 
serialVersionUID - Static variable in exception org.mockito.exceptions.base.MockitoInitializationException
 
serialVersionUID - Static variable in exception org.mockito.exceptions.misusing.FriendlyReminderException
 
serialVersionUID - Static variable in exception org.mockito.exceptions.misusing.InvalidUseOfMatchersException
 
serialVersionUID - Static variable in exception org.mockito.exceptions.misusing.MissingMethodInvocationException
 
serialVersionUID - Static variable in exception org.mockito.exceptions.misusing.MockitoConfigurationException
 
serialVersionUID - Static variable in exception org.mockito.exceptions.misusing.NotAMockException
 
serialVersionUID - Static variable in exception org.mockito.exceptions.misusing.NullInsteadOfMockException
 
serialVersionUID - Static variable in exception org.mockito.exceptions.misusing.UnfinishedStubbingException
 
serialVersionUID - Static variable in exception org.mockito.exceptions.misusing.UnfinishedVerificationException
 
serialVersionUID - Static variable in exception org.mockito.exceptions.misusing.WrongTypeOfReturnValue
 
serialVersionUID - Static variable in error org.mockito.exceptions.verification.ArgumentsAreDifferent
 
serialVersionUID - Static variable in error org.mockito.exceptions.verification.junit.ArgumentsAreDifferent
 
serialVersionUID - Static variable in error org.mockito.exceptions.verification.NeverWantedButInvoked
 
serialVersionUID - Static variable in error org.mockito.exceptions.verification.NoInteractionsWanted
 
serialVersionUID - Static variable in error org.mockito.exceptions.verification.opentest4j.ArgumentsAreDifferent
 
serialVersionUID - Static variable in exception org.mockito.exceptions.verification.SmartNullPointerException
 
serialVersionUID - Static variable in error org.mockito.exceptions.verification.TooFewActualInvocations
 
serialVersionUID - Static variable in error org.mockito.exceptions.verification.TooLittleActualInvocations
Deprecated.
 
serialVersionUID - Static variable in error org.mockito.exceptions.verification.TooManyActualInvocations
 
serialVersionUID - Static variable in error org.mockito.exceptions.verification.VerificationInOrderFailure
 
serialVersionUID - Static variable in error org.mockito.exceptions.verification.WantedButNotInvoked
 
serialVersionUID - Static variable in class org.mockito.internal.configuration.GlobalConfiguration
 
serialVersionUID - Static variable in class org.mockito.internal.creation.bytebuddy.ByteBuddyCrossClassLoaderSerializationSupport.CrossClassLoaderSerializationProxy
 
serialVersionUID - Static variable in class org.mockito.internal.creation.bytebuddy.ByteBuddyCrossClassLoaderSerializationSupport
 
serialVersionUID - Static variable in class org.mockito.internal.creation.bytebuddy.MockMethodInterceptor
 
serialVersionUID - Static variable in class org.mockito.internal.creation.MockSettingsImpl
 
serialVersionUID - Static variable in class org.mockito.internal.creation.settings.CreationSettings
 
serialVersionUID - Static variable in class org.mockito.internal.debugging.LocationImpl
 
serialVersionUID - Static variable in exception org.mockito.internal.exceptions.ExceptionIncludingMockitoWarnings
 
serialVersionUID - Static variable in class org.mockito.internal.exceptions.stacktrace.ConditionalStackTraceFilter
 
serialVersionUID - Static variable in class org.mockito.internal.exceptions.stacktrace.StackTraceFilter
 
serialVersionUID - Static variable in class org.mockito.internal.handler.MockHandlerImpl
 
serialVersionUID - Static variable in class org.mockito.internal.invocation.InterceptedInvocation
 
serialVersionUID - Static variable in class org.mockito.internal.invocation.SerializableMethod
 
serialVersionUID - Static variable in class org.mockito.internal.invocation.StubInfoImpl
 
serialVersionUID - Static variable in class org.mockito.internal.junit.DefaultStubbingLookupListener
 
serialVersionUID - Static variable in class org.mockito.internal.stubbing.answers.AnswersWithDelay
 
serialVersionUID - Static variable in class org.mockito.internal.stubbing.answers.CallsRealMethods
 
serialVersionUID - Static variable in class org.mockito.internal.stubbing.answers.DoesNothing
 
serialVersionUID - Static variable in class org.mockito.internal.stubbing.answers.Returns
 
serialVersionUID - Static variable in class org.mockito.internal.stubbing.answers.ReturnsArgumentAt
 
serialVersionUID - Static variable in class org.mockito.internal.stubbing.answers.ThrowsException
 
serialVersionUID - Static variable in class org.mockito.internal.stubbing.defaultanswers.ForwardsInvocations
 
serialVersionUID - Static variable in class org.mockito.internal.stubbing.defaultanswers.GloballyConfiguredAnswer
 
serialVersionUID - Static variable in class org.mockito.internal.stubbing.defaultanswers.ReturnsDeepStubs
 
serialVersionUID - Static variable in class org.mockito.internal.stubbing.defaultanswers.ReturnsEmptyValues
 
serialVersionUID - Static variable in class org.mockito.internal.stubbing.defaultanswers.ReturnsMocks
 
serialVersionUID - Static variable in class org.mockito.internal.stubbing.defaultanswers.ReturnsMoreEmptyValues
 
serialVersionUID - Static variable in class org.mockito.internal.stubbing.defaultanswers.ReturnsSmartNulls
 
serialVersionUID - Static variable in class org.mockito.internal.stubbing.InvocationContainerImpl
 
serialVersionUID - Static variable in class org.mockito.internal.stubbing.StubbedInvocationMatcher
 
serialVersionUID - Static variable in class org.mockito.internal.util.MockNameImpl
 
serialVersionUID - Static variable in class org.mockito.internal.verification.DefaultRegisteredInvocations
 
session - Variable in class org.mockito.internal.junit.JUnitSessionStore
 
sessionStore - Variable in class org.mockito.internal.junit.JUnitRule
 
sessionStore - Variable in class org.mockito.internal.junit.JUnitTestRule
 
set(Object) - Method in class org.mockito.internal.util.reflection.BeanPropertySetter
Set the value to the property represented by this BeanPropertySetter
set(Object) - Method in class org.mockito.internal.util.reflection.InstanceField
Set the given value to the field of this instance.
set(Field, Object, Object) - Method in class org.mockito.internal.util.reflection.InstrumentationMemberAccessor
 
set(Field, Object, Object) - Method in class org.mockito.internal.util.reflection.ModuleMemberAccessor
 
set(Field, Object, Object) - Method in class org.mockito.internal.util.reflection.ReflectionMemberAccessor
 
set(Field, Object, Object) - Method in interface org.mockito.plugins.MemberAccessor
 
set(String, MockMethodDispatcher) - Static method in class org.mockito.internal.creation.bytebuddy.inject.MockMethodDispatcher
 
set(T) - Method in class org.mockito.internal.util.concurrent.DetachedThreadLocal
 
SET_PREFIX - Static variable in class org.mockito.internal.util.reflection.BeanPropertySetter
 
setAccessible(AccessibleObject, boolean) - Method in interface org.mockito.internal.util.reflection.InstrumentationMemberAccessor.Dispatcher
 
setAnswers(List<Answer<?>>, Strictness) - Method in class org.mockito.internal.stubbing.DoAnswerStyleStubbing
 
setAnswersForStubbing(List<Answer<?>>, Strictness) - Method in class org.mockito.internal.stubbing.InvocationContainerImpl
Sets the answers declared with 'doAnswer' style.
setCurrentStrictness(Strictness) - Method in class org.mockito.internal.junit.DefaultStubbingLookupListener
Enables resetting the strictness to desired level
setEquals(boolean) - Method in class org.mockito.internal.matchers.apachecommons.EqualsBuilder
Sets the isEquals value.
setExtraInterfaces(Set<Class<?>>) - Method in class org.mockito.internal.creation.settings.CreationSettings
 
setInternalState(Object, String, Object) - Static method in class org.mockito.internal.junit.util.JUnitFailureHacker
Deprecated.
 
setInvocationForPotentialStubbing(MatchableInvocation) - Method in class org.mockito.internal.stubbing.InvocationContainerImpl
 
setListenerDirty() - Method in class org.mockito.internal.junit.UniversalTestListener
Marks listener as dirty, scheduled for cleanup when the next session starts
setMatchersToBeDescribedWithExtraTypeInfo(Integer[]) - Method in class org.mockito.internal.reporting.PrintSettings
 
setMatchersToBeDescribedWithFullName(Set<String>) - Method in class org.mockito.internal.reporting.PrintSettings
 
setMethodForStubbing(MatchableInvocation) - Method in class org.mockito.internal.stubbing.InvocationContainerImpl
 
setMock(Object) - Method in class org.mockito.internal.listeners.VerificationStartedNotifier.Event
 
setMock(Object) - Method in interface org.mockito.listeners.VerificationStartedEvent
Replaces existing mock object for verification with a different one.
setMockitoInterceptor(MockMethodInterceptor) - Method in interface org.mockito.internal.creation.bytebuddy.MockAccess
 
setMockName(MockName) - Method in class org.mockito.internal.creation.settings.CreationSettings
 
setMultiline(boolean) - Method in class org.mockito.internal.reporting.PrintSettings
 
Sets - Class in org.mockito.internal.util.collections
 
Sets() - Constructor for class org.mockito.internal.util.collections.Sets
 
setSerializableMode(SerializableMode) - Method in class org.mockito.internal.creation.settings.CreationSettings
 
setStrictness(Strictness) - Method in class org.mockito.internal.framework.DefaultMockitoSession
 
setStrictness(Strictness) - Method in class org.mockito.internal.junit.JUnitSessionStore
 
setStrictness(Strictness) - Method in class org.mockito.internal.junit.UniversalTestListener
 
setStrictness(Strictness) - Method in class org.mockito.internal.stubbing.OngoingStubbingImpl
 
setStrictness(Strictness) - Method in interface org.mockito.MockitoSession
Changes the strictness of this MockitoSession.
setterName(String) - Method in class org.mockito.internal.util.reflection.BeanPropertySetter
Retrieve the setter name from the field name.
settings - Variable in class org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.InlineStaticMockControl
 
settings - Variable in class org.mockito.internal.creation.proxy.ProxyMockMaker.MockInvocationHandler
 
settingsFactory - Variable in class org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.InlineConstructionMockControl
 
setTypeToMock(Class<T>) - Method in class org.mockito.internal.creation.settings.CreationSettings
 
setValue(V) - Method in class org.mockito.internal.util.concurrent.WeakConcurrentMap.SimpleEntry
 
setVerificationStrategy(VerificationStrategy) - Method in interface org.mockito.internal.progress.MockingProgress
 
setVerificationStrategy(VerificationStrategy) - Method in class org.mockito.internal.progress.MockingProgressImpl
 
shortThat(Matcher<Short>) - Static method in class org.mockito.hamcrest.MockitoHamcrest
Enables integrating hamcrest matchers that match primitive short arguments.
shortThat(ArgumentMatcher<Short>) - Static method in class org.mockito.ArgumentMatchers
Allows creating custom short argument matchers.
should() - Method in interface org.mockito.BDDMockito.Then
 
should() - Method in class org.mockito.BDDMockito.ThenImpl
 
should(InOrder) - Method in interface org.mockito.BDDMockito.Then
 
should(InOrder) - Method in class org.mockito.BDDMockito.ThenImpl
 
should(InOrder, VerificationMode) - Method in interface org.mockito.BDDMockito.Then
 
should(InOrder, VerificationMode) - Method in class org.mockito.BDDMockito.ThenImpl
 
should(VerificationMode) - Method in interface org.mockito.BDDMockito.Then
 
should(VerificationMode) - Method in class org.mockito.BDDMockito.ThenImpl
 
shouldBeReported(Stubbing) - Static method in class org.mockito.internal.stubbing.UnusedStubbingReporting
Decides if the stubbing should be reported as unused.
shouldHaveNoInteractions() - Method in interface org.mockito.BDDMockito.Then
 
shouldHaveNoInteractions() - Method in class org.mockito.BDDMockito.ThenImpl
 
shouldHaveNoMoreInteractions() - Method in interface org.mockito.BDDMockito.Then
 
shouldHaveNoMoreInteractions() - Method in class org.mockito.BDDMockito.ThenImpl
 
shouldHaveZeroInteractions() - Method in interface org.mockito.BDDMockito.Then
Deprecated.
Since 3.0.1. Please migrate your code to BDDMockito.Then.shouldHaveNoInteractions()
shouldHaveZeroInteractions() - Method in class org.mockito.BDDMockito.ThenImpl
 
silent() - Method in class org.mockito.internal.junit.JUnitRule
 
silent() - Method in class org.mockito.internal.junit.JUnitTestRule
 
silent() - Method in interface org.mockito.junit.MockitoRule
Rule will not report stubbing warnings during test execution.
silent() - Method in interface org.mockito.junit.MockitoTestRule
Equivalent to MockitoRule.silent().
Silent(Class<?>) - Constructor for class org.mockito.junit.MockitoJUnitRunner.Silent
 
Silent(Class<?>) - Constructor for class org.mockito.runners.MockitoJUnitRunner.Silent
Deprecated.
 
silentSetAccessible(AccessibleObject, boolean) - Static method in class org.mockito.internal.util.reflection.ReflectionMemberAccessor
 
SimpleArgumentResolver(Set<Object>) - Constructor for class org.mockito.internal.configuration.injection.ConstructorInjection.SimpleArgumentResolver
 
SimpleEntry(K, Map.Entry<WeakConcurrentMap.WeakKey<K>, V>) - Constructor for class org.mockito.internal.util.concurrent.WeakConcurrentMap.SimpleEntry
 
SingleRegisteredInvocation - Class in org.mockito.internal.verification
 
SingleRegisteredInvocation() - Constructor for class org.mockito.internal.verification.SingleRegisteredInvocation
 
SINGLETON - Static variable in class org.mockito.internal.stubbing.answers.DoesNothing
 
size() - Method in class org.mockito.internal.junit.StubbingArgMismatches
 
size() - Method in class org.mockito.internal.junit.UnusedStubbings
 
size() - Method in class org.mockito.internal.util.collections.HashCodeAndEqualsSafeSet
 
sleep(long) - Method in class org.mockito.internal.verification.VerificationOverTimeImpl
 
sleepyTime - Variable in class org.mockito.internal.stubbing.answers.AnswersWithDelay
 
smartNullPointerException(String, Location) - Static method in class org.mockito.internal.exceptions.Reporter
 
SmartNullPointerException - Exception in org.mockito.exceptions.verification
 
SmartNullPointerException(String) - Constructor for exception org.mockito.exceptions.verification.SmartNullPointerException
 
SmartPrinter - Class in org.mockito.internal.reporting
Makes sure both wanted and actual are printed consistently (single line or multiline)
SmartPrinter(MatchableInvocation, List<Invocation>, Integer[], Set<String>) - Constructor for class org.mockito.internal.reporting.SmartPrinter
 
SmartPrinter(MatchableInvocation, Invocation, Integer...) - Constructor for class org.mockito.internal.reporting.SmartPrinter
 
sortSuperTypesLast(Collection<? extends Field>) - Static method in class org.mockito.internal.util.reflection.SuperTypesLastSorter
Return a new collection with the fields sorted first by name, then with any fields moved after their supertypes.
sourceFile - Variable in class org.mockito.internal.debugging.LocationImpl
 
spiedInstance - Variable in class org.mockito.internal.creation.settings.CreationSettings
 
spiedInstance(Object) - Method in class org.mockito.internal.creation.MockSettingsImpl
 
spiedInstance(Object) - Method in interface org.mockito.MockSettings
Specifies the instance to spy on.
spy(Class<T>) - Static method in class org.mockito.Mockito
Please refer to the documentation of Mockito.spy(Object).
spy(T) - Static method in class org.mockito.Mockito
Creates a spy of the real object.
Spy - Annotation Type in org.mockito
Allows shorthand wrapping of field instances in an spy object.
spyAndDelegateAreMutuallyExclusive() - Static method in class org.mockito.internal.exceptions.Reporter
 
spyAnnotationEngine - Variable in class org.mockito.internal.configuration.InjectingAnnotationEngine
 
SpyAnnotationEngine - Class in org.mockito.internal.configuration
Process fields annotated with @Spy.
SpyAnnotationEngine() - Constructor for class org.mockito.internal.configuration.SpyAnnotationEngine
 
spyInstance(Field, Object) - Static method in class org.mockito.internal.configuration.SpyAnnotationEngine
 
spyNewInstance(Object, Field) - Static method in class org.mockito.internal.configuration.SpyAnnotationEngine
 
SpyOnInjectedFieldsHandler - Class in org.mockito.internal.configuration.injection
Handler for field annotated with @InjectMocks and @Spy.
SpyOnInjectedFieldsHandler() - Constructor for class org.mockito.internal.configuration.injection.SpyOnInjectedFieldsHandler
 
StackTraceCleaner - Interface in org.mockito.exceptions.stacktrace
Decides if particular StackTraceElement is excluded from the human-readable stack trace output.
stackTraceCleanerProvider - Variable in class org.mockito.internal.configuration.plugins.PluginRegistry
 
StackTraceCleanerProvider - Interface in org.mockito.plugins
An extension point to register custom StackTraceCleaner.
stackTraceFilter - Static variable in class org.mockito.internal.debugging.LocationImpl
 
StackTraceFilter - Class in org.mockito.internal.exceptions.stacktrace
 
StackTraceFilter() - Constructor for class org.mockito.internal.exceptions.stacktrace.StackTraceFilter
 
stackTraceLine - Variable in class org.mockito.internal.debugging.LocationImpl
 
start() - Method in class org.mockito.internal.util.Timer
Starts the timer count down.
startMocking() - Method in class org.mockito.internal.session.DefaultMockitoSessionBuilder
 
startMocking() - Method in interface org.mockito.session.MockitoSessionBuilder
Starts new mocking session! Creates new MockitoSession instance to initialize the session.
startsWith(String) - Static method in class org.mockito.ArgumentMatchers
String argument that starts with the given prefix.
StartsWith - Class in org.mockito.internal.matchers
 
StartsWith(String) - Constructor for class org.mockito.internal.matchers.StartsWith
 
startTime - Variable in class org.mockito.internal.util.Timer
 
StaticMethodCall(MockMethodAdvice.SelfCallInfo, Class<?>, Method, Object[]) - Constructor for class org.mockito.internal.creation.bytebuddy.MockMethodAdvice.StaticMethodCall
 
Strict(Class<?>) - Constructor for class org.mockito.junit.MockitoJUnitRunner.Strict
 
Strict(Class<?>) - Constructor for class org.mockito.runners.MockitoJUnitRunner.Strict
Deprecated.
 
STRICT_STUBS - org.mockito.quality.Strictness
Ensures clean tests, reduces test code duplication, improves debuggability.
strictness - Variable in class org.mockito.internal.junit.JUnitSessionStore
 
strictness - Variable in class org.mockito.internal.session.DefaultMockitoSessionBuilder
 
strictness - Variable in class org.mockito.internal.stubbing.OngoingStubbingImpl
 
strictness - Variable in class org.mockito.internal.stubbing.StubbedInvocationMatcher
 
strictness - Variable in class org.mockito.internal.stubbing.StubberImpl
 
strictness(Strictness) - Method in class org.mockito.internal.junit.JUnitRule
 
strictness(Strictness) - Method in class org.mockito.internal.junit.JUnitTestRule
 
strictness(Strictness) - Method in class org.mockito.internal.session.DefaultMockitoSessionBuilder
 
strictness(Strictness) - Method in interface org.mockito.junit.MockitoRule
The strictness, especially "strict stubs" (Strictness.STRICT_STUBS) helps debugging and keeping tests clean.
strictness(Strictness) - Method in interface org.mockito.junit.MockitoTestRule
strictness(Strictness) - Method in interface org.mockito.session.MockitoSessionBuilder
Configures strictness of MockitoSession instance.
Strictness - Enum in org.mockito.quality
Configures the "strictness" of Mockito, affecting the behavior of stubbings and verification.
Strictness() - Constructor for enum org.mockito.quality.Strictness
 
StrictnessSelector - Class in org.mockito.internal.stubbing
Helps determining the actual strictness given that it can be configured in multiple ways (at mock, at stubbing, in rule)
StrictnessSelector() - Constructor for class org.mockito.internal.stubbing.StrictnessSelector
 
StrictRunner - Class in org.mockito.internal.runners
 
StrictRunner(InternalRunner, Class<?>) - Constructor for class org.mockito.internal.runners.StrictRunner
 
StrictStubs(Class<?>) - Constructor for class org.mockito.junit.MockitoJUnitRunner.StrictStubs
 
StrictStubsRunnerTestListener - Class in org.mockito.internal.junit
Fails early when mismatched arguments used for stubbing
StrictStubsRunnerTestListener() - Constructor for class org.mockito.internal.junit.StrictStubsRunnerTestListener
 
StringUtil - Class in org.mockito.internal.util
 
StringUtil() - Constructor for class org.mockito.internal.util.StringUtil
 
stripAnnotations - Variable in class org.mockito.internal.creation.bytebuddy.MockFeatures
 
stripAnnotations - Variable in class org.mockito.internal.creation.bytebuddy.TypeCachingBytecodeGenerator.MockitoMockKey
 
stripAnnotations - Variable in class org.mockito.internal.creation.settings.CreationSettings
 
stripCommentAndWhitespace(String) - Static method in class org.mockito.internal.configuration.plugins.PluginFileReader
 
strongMockRef - Variable in class org.mockito.internal.stubbing.BaseStubbing
 
stubbed - Variable in class org.mockito.internal.stubbing.InvocationContainerImpl
 
stubbedAt - Variable in class org.mockito.internal.invocation.StubInfoImpl
 
stubbedAt() - Method in class org.mockito.internal.invocation.StubInfoImpl
 
stubbedAt() - Method in interface org.mockito.invocation.StubInfo
 
StubbedInvocationMatcher - Class in org.mockito.internal.stubbing
 
StubbedInvocationMatcher(Answer, MatchableInvocation, Strictness) - Constructor for class org.mockito.internal.stubbing.StubbedInvocationMatcher
 
stubber() - Method in class org.mockito.internal.MockitoCore
 
stubber() - Static method in class org.mockito.internal.stubbing.DefaultLenientStubber
 
stubber(Strictness) - Method in class org.mockito.internal.MockitoCore
 
Stubber - Interface in org.mockito.stubbing
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style
StubberImpl - Class in org.mockito.internal.stubbing
 
StubberImpl(Strictness) - Constructor for class org.mockito.internal.stubbing.StubberImpl
 
stubbing - Variable in class org.mockito.internal.listeners.StubbingLookupNotifier.Event
 
Stubbing - Interface in org.mockito.stubbing
Stubbing declared on the mock object.
StubbingArgMismatches - Class in org.mockito.internal.junit
Contains stubbing arg mismatches, knows how to format them
StubbingArgMismatches() - Constructor for class org.mockito.internal.junit.StubbingArgMismatches
 
StubbingComparator - Class in org.mockito.internal.stubbing
Compares stubbings based on InvocationComparator
StubbingComparator() - Constructor for class org.mockito.internal.stubbing.StubbingComparator
 
stubbingCompleted() - Method in interface org.mockito.internal.progress.MockingProgress
 
stubbingCompleted() - Method in class org.mockito.internal.progress.MockingProgressImpl
 
StubbingHint - Class in org.mockito.internal.junit
Stubbing hint emitted to the user
StubbingHint(String) - Constructor for class org.mockito.internal.junit.StubbingHint
 
stubbingInProgress - Variable in class org.mockito.internal.progress.MockingProgressImpl
 
StubbingLookupEvent - Interface in org.mockito.listeners
Represent an information about the looked up stubbing
stubbingLookupListener - Variable in class org.mockito.internal.junit.StrictStubsRunnerTestListener
 
stubbingLookupListener - Variable in class org.mockito.internal.junit.UniversalTestListener
 
StubbingLookupListener - Interface in org.mockito.listeners
When a method is called on a mock object Mockito looks up any stubbings recorded on that mock.
stubbingLookupListeners - Variable in class org.mockito.internal.creation.settings.CreationSettings
 
stubbingLookupListeners(StubbingLookupListener...) - Method in class org.mockito.internal.creation.MockSettingsImpl
 
stubbingLookupListeners(StubbingLookupListener...) - Method in interface org.mockito.MockSettings
Add stubbing lookup listener to the mock object.
StubbingLookupNotifier - Class in org.mockito.internal.listeners
 
StubbingLookupNotifier() - Constructor for class org.mockito.internal.listeners.StubbingLookupNotifier
 
StubbingLookupNotifier.Event - Class in org.mockito.internal.listeners
 
stubbingStarted() - Method in interface org.mockito.internal.progress.MockingProgress
 
stubbingStarted() - Method in class org.mockito.internal.progress.MockingProgressImpl
 
stubbingStrictness - Variable in class org.mockito.internal.stubbing.DoAnswerStyleStubbing
 
stubInfo - Variable in class org.mockito.internal.invocation.InterceptedInvocation
 
stubInfo() - Method in class org.mockito.internal.invocation.InterceptedInvocation
 
stubInfo() - Method in interface org.mockito.invocation.Invocation
 
StubInfo - Interface in org.mockito.invocation
The information about stubbing, for example the location of stubbing.
StubInfoImpl - Class in org.mockito.internal.invocation
 
StubInfoImpl(DescribedInvocation) - Constructor for class org.mockito.internal.invocation.StubInfoImpl
 
stubOnly - Variable in class org.mockito.internal.creation.settings.CreationSettings
 
stubOnly() - Method in class org.mockito.internal.creation.MockSettingsImpl
 
stubOnly() - Method in annotation type org.mockito.Mock
Mock will be 'stubOnly', see MockSettings.stubOnly().
stubOnly() - Method in interface org.mockito.MockSettings
A stub-only mock does not record method invocations, thus saving memory but disallowing verification of invocations.
stubPassedToVerify(Object) - Static method in class org.mockito.internal.exceptions.Reporter
 
subclassByteBuddyMockMaker - Variable in class org.mockito.internal.creation.bytebuddy.ByteBuddyMockMaker
 
SubclassByteBuddyMockMaker - Class in org.mockito.internal.creation.bytebuddy
Subclass based mock maker.
SubclassByteBuddyMockMaker() - Constructor for class org.mockito.internal.creation.bytebuddy.SubclassByteBuddyMockMaker
 
SubclassByteBuddyMockMaker(SubclassLoader) - Constructor for class org.mockito.internal.creation.bytebuddy.SubclassByteBuddyMockMaker
 
SubclassBytecodeGenerator - Class in org.mockito.internal.creation.bytebuddy
 
SubclassBytecodeGenerator() - Constructor for class org.mockito.internal.creation.bytebuddy.SubclassBytecodeGenerator
 
SubclassBytecodeGenerator(Implementation, ElementMatcher<? super MethodDescription>) - Constructor for class org.mockito.internal.creation.bytebuddy.SubclassBytecodeGenerator
 
SubclassBytecodeGenerator(SubclassLoader) - Constructor for class org.mockito.internal.creation.bytebuddy.SubclassBytecodeGenerator
 
SubclassBytecodeGenerator(SubclassLoader, Implementation, ElementMatcher<? super MethodDescription>) - Constructor for class org.mockito.internal.creation.bytebuddy.SubclassBytecodeGenerator
 
subclassEngine - Variable in class org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator
 
SubclassInjectionLoader - Class in org.mockito.internal.creation.bytebuddy
 
SubclassInjectionLoader() - Constructor for class org.mockito.internal.creation.bytebuddy.SubclassInjectionLoader
 
SubclassInjectionLoader.WithLookup - Class in org.mockito.internal.creation.bytebuddy
 
SubclassInjectionLoader.WithReflection - Class in org.mockito.internal.creation.bytebuddy
 
SubclassLoader - Interface in org.mockito.internal.creation.bytebuddy
A subclass loader is responsible for resolving a class loading strategy for a mock that is implemented as a subclass.
substring - Variable in class org.mockito.internal.matchers.Contains
 
suffix - Variable in class org.mockito.internal.matchers.EndsWith
 
SuperTypesLastSorter - Class in org.mockito.internal.util.reflection
Sort fields in an order suitable for injection, by name with superclasses moved after their subclasses.
SuperTypesLastSorter() - Constructor for class org.mockito.internal.util.reflection.SuperTypesLastSorter
 
Supplier<T> - Interface in org.mockito.internal.util
Abstract provider that can supply (provide/create) objects of given type.
SuppressSignatureCheck - Annotation Type in org.mockito.internal
 
SuspendMethod - Class in org.mockito.internal.creation
Utilities for Kotlin Continuation-Passing-Style suspending function, detecting and trimming last hidden parameter.
SuspendMethod() - Constructor for class org.mockito.internal.creation.SuspendMethod
 
syntheticField() - Static method in class org.mockito.internal.util.reflection.Fields
Accept fields with non null value.

T

target - Variable in class org.mockito.internal.util.concurrent.WeakConcurrentMap
 
target - Variable in class org.mockito.internal.util.concurrent.WeakConcurrentSet
 
target - Variable in class org.mockito.internal.util.reflection.BeanPropertySetter
 
target - Variable in class org.mockito.internal.util.reflection.FieldReader
 
TerminalMockCandidateFilter - Class in org.mockito.internal.configuration.injection.filter
This node returns an actual injecter which will be either : an OngoingInjector that do nothing if a candidate couldn't be found an OngoingInjector that will try to inject the candidate trying first the property setter then if not possible try the field access
TerminalMockCandidateFilter() - Constructor for class org.mockito.internal.configuration.injection.filter.TerminalMockCandidateFilter
 
testClass - Variable in class org.mockito.internal.runners.StrictRunner
 
testClass - Variable in class org.mockito.internal.util.reflection.FieldInitializer.NoArgConstructorInstantiator
 
testClass - Variable in class org.mockito.internal.util.reflection.FieldInitializer.ParameterizedConstructorInstantiator
 
testClassInstance - Variable in class org.mockito.internal.junit.DefaultTestFinishedEvent
 
testClassInstances - Variable in class org.mockito.internal.session.DefaultMockitoSessionBuilder
 
testFailure - Variable in class org.mockito.internal.junit.DefaultTestFinishedEvent
 
testFailure(Failure) - Method in class org.mockito.internal.runners.util.FailureDetector
 
testFinished(TestFinishedEvent) - Method in class org.mockito.internal.junit.MismatchReportingTestListener
 
testFinished(TestFinishedEvent) - Method in interface org.mockito.internal.junit.MockitoTestListener
 
testFinished(TestFinishedEvent) - Method in class org.mockito.internal.junit.NoOpTestListener
 
testFinished(TestFinishedEvent) - Method in class org.mockito.internal.junit.StrictStubsRunnerTestListener
 
testFinished(TestFinishedEvent) - Method in class org.mockito.internal.junit.UniversalTestListener
 
TestFinishedEvent - Interface in org.mockito.internal.junit
 
testInstance - Variable in class org.mockito.internal.junit.JUnitTestRule
 
testMethodName - Variable in class org.mockito.internal.junit.DefaultTestFinishedEvent
 
TestMethodsFinder - Class in org.mockito.internal.runners.util
 
TestMethodsFinder() - Constructor for class org.mockito.internal.runners.util.TestMethodsFinder
 
testRule(Object) - Static method in class org.mockito.junit.MockitoJUnit
Creates a rule instance that initiates @Mocks and is a TestRule.
text - Variable in class org.mockito.internal.matchers.text.FormattedText
 
then(Answer<?>) - Method in class org.mockito.internal.stubbing.BaseStubbing
 
then(Answer<?>) - Method in interface org.mockito.stubbing.OngoingStubbing
Sets a generic Answer for the method.
then(T) - Static method in class org.mockito.BDDMockito
Bdd style verification of mock behavior.
thenAnswer(Answer<?>) - Method in class org.mockito.internal.stubbing.ConsecutiveStubbing
 
thenAnswer(Answer<?>) - Method in class org.mockito.internal.stubbing.OngoingStubbingImpl
 
thenAnswer(Answer<?>) - Method in interface org.mockito.stubbing.OngoingStubbing
Sets a generic Answer for the method.
thenCallRealMethod() - Method in class org.mockito.internal.stubbing.BaseStubbing
 
thenCallRealMethod() - Method in interface org.mockito.stubbing.OngoingStubbing
Sets the real implementation to be called when the method is called on a mock object.
ThenImpl(T) - Constructor for class org.mockito.BDDMockito.ThenImpl
 
thenInject() - Method in interface org.mockito.internal.configuration.injection.filter.OngoingInjector
Inject the mock.
thenReturn(T) - Method in class org.mockito.internal.stubbing.BaseStubbing
 
thenReturn(T) - Method in interface org.mockito.stubbing.OngoingStubbing
Sets a return value to be returned when the method is called.
thenReturn(T, T...) - Method in class org.mockito.internal.stubbing.BaseStubbing
 
thenReturn(T, T...) - Method in interface org.mockito.stubbing.OngoingStubbing
Sets consecutive return values to be returned when the method is called.
thenThrow(Class<? extends Throwable>) - Method in class org.mockito.internal.stubbing.BaseStubbing
 
thenThrow(Class<? extends Throwable>) - Method in interface org.mockito.stubbing.OngoingStubbing
Sets a Throwable type to be thrown when the method is called.
thenThrow(Class<? extends Throwable>, Class<? extends Throwable>...) - Method in class org.mockito.internal.stubbing.BaseStubbing
 
thenThrow(Class<? extends Throwable>, Class<? extends Throwable>...) - Method in interface org.mockito.stubbing.OngoingStubbing
Sets Throwable classes to be thrown when the method is called.
thenThrow(Throwable) - Method in class org.mockito.internal.stubbing.BaseStubbing
 
thenThrow(Throwable...) - Method in class org.mockito.internal.stubbing.BaseStubbing
 
thenThrow(Throwable...) - Method in interface org.mockito.stubbing.OngoingStubbing
Sets Throwable objects to be thrown when the method is called.
thenTry(MockInjectionStrategy) - Method in class org.mockito.internal.configuration.injection.MockInjectionStrategy
Enqueue next injection strategy.
thread - Variable in class org.mockito.internal.util.concurrent.WeakConcurrentMap
 
THREAD - org.mockito.internal.util.concurrent.DetachedThreadLocal.Cleaner
 
THREAD - org.mockito.internal.util.concurrent.WeakConcurrentSet.Cleaner
 
ThreadSafeMockingProgress - Class in org.mockito.internal.progress
Provides access to the MockingProgress of a corresponding Thread.
ThreadSafeMockingProgress() - Constructor for class org.mockito.internal.progress.ThreadSafeMockingProgress
 
threwException() - Method in class org.mockito.internal.handler.NotifiedMethodInvocationReport
 
threwException() - Method in interface org.mockito.listeners.MethodInvocationReport
 
throwable - Variable in class org.mockito.internal.handler.NotifiedMethodInvocationReport
 
throwable - Variable in class org.mockito.internal.stubbing.answers.ThrowsException
 
throwableClass - Variable in class org.mockito.internal.stubbing.answers.ThrowsExceptionForClassType
 
throwIfAlreadyAssigned(Field, boolean) - Method in class org.mockito.internal.configuration.IndependentAnnotationEngine
 
ThrowsException - Class in org.mockito.internal.stubbing.answers
An answer that always throws the same throwable.
ThrowsException(Throwable) - Constructor for class org.mockito.internal.stubbing.answers.ThrowsException
Creates a new answer always throwing the given throwable.
ThrowsExceptionForClassType - Class in org.mockito.internal.stubbing.answers
 
ThrowsExceptionForClassType(Class<? extends Throwable>) - Constructor for class org.mockito.internal.stubbing.answers.ThrowsExceptionForClassType
 
ThrowsSmartNullPointer(InvocationOnMock, Location) - Constructor for class org.mockito.internal.stubbing.defaultanswers.ReturnsSmartNulls.ThrowsSmartNullPointer
 
timeout(long) - Static method in class org.mockito.Mockito
Verification will be triggered over and over until the given amount of millis, allowing testing of async code.
Timeout - Class in org.mockito.verification
See the javadoc for VerificationWithTimeout
Timeout(long, long, VerificationMode) - Constructor for class org.mockito.verification.Timeout
See the javadoc for VerificationWithTimeout
Timeout(long, VerificationMode) - Constructor for class org.mockito.verification.Timeout
See the javadoc for VerificationWithTimeout
Timeout(long, VerificationMode, Timer) - Constructor for class org.mockito.verification.Timeout
See the javadoc for VerificationWithTimeout
Timeout(VerificationOverTimeImpl) - Constructor for class org.mockito.verification.Timeout
 
timer - Variable in class org.mockito.internal.verification.VerificationOverTimeImpl
 
Timer - Class in org.mockito.internal.util
 
Timer(long) - Constructor for class org.mockito.internal.util.Timer
 
times(int) - Static method in class org.mockito.internal.verification.VerificationModeFactory
 
times(int) - Method in class org.mockito.internal.verification.VerificationWrapper
 
times(int) - Static method in class org.mockito.Mockito
Allows verifying exact number of invocations.
times(int) - Method in interface org.mockito.verification.VerificationAfterDelay
Verifies that there are exactly N invocations during the given period.
times(int) - Method in interface org.mockito.verification.VerificationWithTimeout
Allows verifying exact number of invocations within given timeout
Times - Class in org.mockito.internal.verification
 
Times(int) - Constructor for class org.mockito.internal.verification.Times
 
toAnswer(Answer1<T, A>) - Static method in class org.mockito.internal.stubbing.answers.AnswerFunctionalInterfaces
Construct an answer from a two parameter answer interface
toAnswer(Answer2<T, A, B>) - Static method in class org.mockito.internal.stubbing.answers.AnswerFunctionalInterfaces
Construct an answer from a two parameter answer interface
toAnswer(Answer3<T, A, B, C>) - Static method in class org.mockito.internal.stubbing.answers.AnswerFunctionalInterfaces
Construct an answer from a three parameter answer interface
toAnswer(Answer4<T, A, B, C, D>) - Static method in class org.mockito.internal.stubbing.answers.AnswerFunctionalInterfaces
Construct an answer from a four parameter answer interface
toAnswer(Answer5<T, A, B, C, D, E>) - Static method in class org.mockito.internal.stubbing.answers.AnswerFunctionalInterfaces
Construct an answer from a five parameter answer interface
toAnswer(Answer6<T, A, B, C, D, E, F>) - Static method in class org.mockito.internal.stubbing.answers.AnswerFunctionalInterfaces
Construct an answer from a six parameter answer interface
toAnswer(VoidAnswer1<A>) - Static method in class org.mockito.internal.stubbing.answers.AnswerFunctionalInterfaces
Construct an answer from a two parameter answer interface
toAnswer(VoidAnswer2<A, B>) - Static method in class org.mockito.internal.stubbing.answers.AnswerFunctionalInterfaces
Construct an answer from a two parameter answer interface
toAnswer(VoidAnswer3<A, B, C>) - Static method in class org.mockito.internal.stubbing.answers.AnswerFunctionalInterfaces
Construct an answer from a three parameter answer interface
toAnswer(VoidAnswer4<A, B, C, D>) - Static method in class org.mockito.internal.stubbing.answers.AnswerFunctionalInterfaces
Construct an answer from a four parameter answer interface
toAnswer(VoidAnswer5<A, B, C, D, E>) - Static method in class org.mockito.internal.stubbing.answers.AnswerFunctionalInterfaces
Construct an answer from a five parameter answer interface
toAnswer(VoidAnswer6<A, B, C, D, E, F>) - Static method in class org.mockito.internal.stubbing.answers.AnswerFunctionalInterfaces
Construct an answer from a five parameter answer interface
toArray() - Method in class org.mockito.internal.util.collections.HashCodeAndEqualsSafeSet
 
toArray(T[]) - Method in class org.mockito.internal.util.collections.HashCodeAndEqualsSafeSet
 
toClassName(Class<?>) - Static method in class org.mockito.internal.util.MockNameImpl
 
toFrames(Object, List<TypeDescription>) - Static method in class org.mockito.internal.creation.bytebuddy.MockMethodAdvice.ConstructorShortcut
 
toInspect - Variable in class org.mockito.internal.util.DefaultMockingDetails
 
toInstanceName(Class<?>) - Static method in class org.mockito.internal.util.MockNameImpl
 
toIterable(Enumeration<T>) - Static method in class org.mockito.internal.util.collections.Iterables
Converts enumeration into iterable
tooFewActualInvocations(Discrepancy, DescribedInvocation, List<Location>) - Static method in class org.mockito.internal.exceptions.Reporter
 
TooFewActualInvocations - Error in org.mockito.exceptions.verification
 
TooFewActualInvocations(String) - Constructor for error org.mockito.exceptions.verification.TooFewActualInvocations
 
tooFewActualInvocationsInOrder(Discrepancy, DescribedInvocation, List<Location>) - Static method in class org.mockito.internal.exceptions.Reporter
 
TooLittleActualInvocations - Error in org.mockito.exceptions.verification
Deprecated.
as of 2.27.5. Please use TooFewActualInvocations instead.
TooLittleActualInvocations(String) - Constructor for error org.mockito.exceptions.verification.TooLittleActualInvocations
Deprecated.
 
tooMany(Collection<Object>) - Method in class org.mockito.internal.configuration.injection.filter.NameBasedCandidateFilter
 
tooManyActualInvocations(int, int, DescribedInvocation, List<Location>) - Static method in class org.mockito.internal.exceptions.Reporter
 
TooManyActualInvocations - Error in org.mockito.exceptions.verification
 
TooManyActualInvocations(String) - Constructor for error org.mockito.exceptions.verification.TooManyActualInvocations
 
tooManyActualInvocationsInOrder(int, int, DescribedInvocation, List<Location>) - Static method in class org.mockito.internal.exceptions.Reporter
 
toString() - Method in error org.mockito.exceptions.verification.junit.ArgumentsAreDifferent
 
toString() - Method in error org.mockito.exceptions.verification.opentest4j.ArgumentsAreDifferent
 
toString() - Method in error org.mockito.exceptions.verification.WantedButNotInvoked
 
toString() - Method in class org.mockito.internal.debugging.LocationImpl
 
toString() - Method in class org.mockito.internal.hamcrest.HamcrestArgumentMatcher
 
toString() - Method in class org.mockito.internal.invocation.InterceptedInvocation
 
toString() - Method in class org.mockito.internal.invocation.InvocationMatcher
 
toString() - Method in class org.mockito.internal.junit.StubbingArgMismatches
 
toString() - Method in class org.mockito.internal.junit.StubbingHint
 
toString() - Method in class org.mockito.internal.junit.UnusedStubbings
 
toString() - Method in class org.mockito.internal.matchers.And
 
toString() - Method in class org.mockito.internal.matchers.Any
 
toString() - Method in class org.mockito.internal.matchers.apachecommons.ReflectionEquals
 
toString() - Method in class org.mockito.internal.matchers.ArrayEquals
 
toString() - Method in class org.mockito.internal.matchers.CapturingMatcher
 
toString() - Method in class org.mockito.internal.matchers.CompareTo
 
toString() - Method in class org.mockito.internal.matchers.Contains
 
toString() - Method in class org.mockito.internal.matchers.EndsWith
 
toString() - Method in class org.mockito.internal.matchers.Equals
 
toString() - Method in class org.mockito.internal.matchers.EqualsWithDelta
 
toString() - Method in class org.mockito.internal.matchers.Find
 
toString() - Method in class org.mockito.internal.matchers.InstanceOf
 
toString() - Method in class org.mockito.internal.matchers.Matches
 
toString() - Method in class org.mockito.internal.matchers.Not
 
toString() - Method in class org.mockito.internal.matchers.NotNull
 
toString() - Method in class org.mockito.internal.matchers.Null
 
toString() - Method in class org.mockito.internal.matchers.Or
 
toString() - Method in class org.mockito.internal.matchers.Same
 
toString() - Method in class org.mockito.internal.matchers.StartsWith
 
toString() - Method in class org.mockito.internal.MockedStaticImpl
 
toString() - Method in class org.mockito.internal.progress.MockingProgressImpl
 
toString() - Method in class org.mockito.internal.stubbing.answers.Returns
 
toString() - Method in class org.mockito.internal.stubbing.InvocationContainerImpl
 
toString() - Method in class org.mockito.internal.stubbing.StubbedInvocationMatcher
 
toString() - Method in class org.mockito.internal.util.collections.HashCodeAndEqualsMockWrapper
 
toString() - Method in class org.mockito.internal.util.collections.HashCodeAndEqualsSafeSet
 
toString() - Method in class org.mockito.internal.util.MockNameImpl
 
toString() - Method in class org.mockito.internal.util.reflection.GenericMetadataSupport.TypeVarBoundedType
 
toString() - Method in class org.mockito.internal.util.reflection.GenericMetadataSupport.WildCardBoundedType
 
toString() - Method in class org.mockito.internal.util.reflection.InstanceField
 
toString() - Method in class org.mockito.internal.verification.AtLeast
 
toString() - Method in class org.mockito.internal.verification.Calls
 
toString() - Method in class org.mockito.internal.verification.Times
 
toString() - Method in interface org.mockito.invocation.DescribedInvocation
Describes the invocation in the human friendly way.
toString() - Method in interface org.mockito.invocation.Location
Human readable location in the source code, see Invocation.getLocation()
toString() - Method in interface org.mockito.mock.MockName
the name
toString(ArgumentMatcher<?>) - Static method in class org.mockito.internal.matchers.text.MatcherToString
Attempts to provide more descriptive toString() for given matcher.
toStringEquals(ArgumentMatcher, Object) - Static method in class org.mockito.internal.verification.argumentmatching.ArgumentMatchingTool
 
toStringWithType(String) - Method in interface org.mockito.internal.matchers.ContainsExtraTypeInfo
 
toStringWithType(String) - Method in class org.mockito.internal.matchers.Equals
 
transform(ClassLoader, String, Class<?>, ProtectionDomain, byte[]) - Method in class org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator
 
TriesToReturnSelf - Class in org.mockito.internal.stubbing.defaultanswers
 
TriesToReturnSelf() - Constructor for class org.mockito.internal.stubbing.defaultanswers.TriesToReturnSelf
 
triggerRetransformation(Set<Class<?>>, boolean) - Method in class org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator
 
trimSuspendParameterTypes(Class<?>[]) - Static method in class org.mockito.internal.creation.SuspendMethod
 
tryConstructorInjection() - Method in class org.mockito.internal.configuration.injection.MockInjection.OngoingMockInjection
 
tryGetPluginAnnotationEngine() - Method in class org.mockito.internal.configuration.GlobalConfiguration
 
tryInvoke(Method, Object, Object[]) - Static method in class org.mockito.internal.creation.bytebuddy.MockMethodAdvice
 
tryLookup() - Static method in class org.mockito.internal.creation.bytebuddy.SubclassInjectionLoader
 
tryPropertyOrFieldInjection() - Method in class org.mockito.internal.configuration.injection.MockInjection.OngoingMockInjection
 
TWO_SUB_MATCHERS - Static variable in class org.mockito.internal.progress.ArgumentMatcherStorageImpl
 
type - Variable in class org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator.ParameterWritingVisitorWrapper
 
type - Variable in class org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.InlineConstructionMockContext
 
type - Variable in class org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.InlineConstructionMockControl
 
type - Variable in class org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.InlineStaticMockControl
 
type - Variable in class org.mockito.internal.creation.bytebuddy.MockMethodAdvice.StaticMethodCall
 
TYPE_SAFE_MATCHING_ACTION - Static variable in class org.mockito.internal.invocation.TypeSafeMatching
 
TypeBasedCandidateFilter - Class in org.mockito.internal.configuration.injection.filter
 
TypeBasedCandidateFilter(MockCandidateFilter) - Constructor for class org.mockito.internal.configuration.injection.filter.TypeBasedCandidateFilter
 
typeCache - Variable in class org.mockito.internal.creation.bytebuddy.TypeCachingBytecodeGenerator
 
TypeCachingBytecodeGenerator - Class in org.mockito.internal.creation.bytebuddy
 
TypeCachingBytecodeGenerator(BytecodeGenerator, boolean) - Constructor for class org.mockito.internal.creation.bytebuddy.TypeCachingBytecodeGenerator
 
TypeCachingBytecodeGenerator.MockitoMockKey - Class in org.mockito.internal.creation.bytebuddy
 
typeDescription - Variable in class org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator.ParameterWritingVisitorWrapper.ParameterAddingClassVisitor
 
typeInstanceString() - Method in class org.mockito.internal.util.collections.HashCodeAndEqualsMockWrapper
 
typeIsNonStaticInnerClass(Class<?>, int) - Static method in class org.mockito.internal.configuration.SpyAnnotationEngine
 
typeIsPrivateAbstractInnerClass(Class<?>, int) - Static method in class org.mockito.internal.configuration.SpyAnnotationEngine
 
typeMatches(Object) - Method in interface org.mockito.internal.matchers.ContainsExtraTypeInfo
Checks if target target has matching type.
typeMatches(Object) - Method in class org.mockito.internal.matchers.Equals
 
typeMockabilityOf(Class<?>) - Static method in class org.mockito.internal.util.MockUtil
 
typeParameters - Variable in class org.mockito.internal.util.reflection.GenericMetadataSupport.ParameterizedReturnType
 
typeParameters - Variable in class org.mockito.internal.util.reflection.GenericMetadataSupport.TypeVariableReturnType
 
TypeSafeMatching - Class in org.mockito.internal.invocation
 
TypeSafeMatching() - Constructor for class org.mockito.internal.invocation.TypeSafeMatching
 
TypeSupport - Class in org.mockito.internal.creation.bytebuddy
 
TypeSupport(Method) - Constructor for class org.mockito.internal.creation.bytebuddy.TypeSupport
 
typeToMock - Variable in class org.mockito.internal.creation.bytebuddy.ByteBuddyCrossClassLoaderSerializationSupport.CrossClassLoaderSerializationProxy
 
typeToMock - Variable in class org.mockito.internal.creation.bytebuddy.ByteBuddyCrossClassLoaderSerializationSupport.MockitoMockObjectInputStream
 
typeToMock - Variable in class org.mockito.internal.creation.settings.CreationSettings
 
TypeVarBoundedType(TypeVariable<?>) - Constructor for class org.mockito.internal.util.reflection.GenericMetadataSupport.TypeVarBoundedType
 
typeVariable - Variable in class org.mockito.internal.util.reflection.GenericMetadataSupport.TypeVarBoundedType
 
typeVariable - Variable in class org.mockito.internal.util.reflection.GenericMetadataSupport.TypeVariableReturnType
 
typeVariable() - Method in class org.mockito.internal.util.reflection.GenericMetadataSupport.TypeVarBoundedType
 
TypeVariableReturnType(GenericMetadataSupport, TypeVariable<?>[], TypeVariable<?>) - Constructor for class org.mockito.internal.util.reflection.GenericMetadataSupport.TypeVariableReturnType
 

U

unboxInlineClassIfPossible(Object) - Static method in class org.mockito.internal.util.KotlinInlineClassUtil
 
unboxUnderlyingValueIfNeeded(InvocationOnMock, Object) - Static method in class org.mockito.internal.util.KotlinInlineClassUtil
 
unfilteredStackTrace - Variable in error org.mockito.exceptions.base.MockitoAssertionError
 
unfilteredStackTrace - Variable in exception org.mockito.exceptions.base.MockitoException
 
unfilteredStackTrace - Variable in exception org.mockito.exceptions.base.MockitoSerializationIssue
 
unfilteredStackTrace - Variable in error org.mockito.exceptions.verification.junit.ArgumentsAreDifferent
 
unfilteredStackTrace - Variable in error org.mockito.exceptions.verification.opentest4j.ArgumentsAreDifferent
 
unfinishedMockingSession() - Static method in class org.mockito.internal.exceptions.Reporter
 
UnfinishedMockingSessionException - Exception in org.mockito.exceptions.misusing
This exception prevents the user from forgetting to use MockitoSession.finishMocking().
UnfinishedMockingSessionException(String) - Constructor for exception org.mockito.exceptions.misusing.UnfinishedMockingSessionException
 
unfinishedStubbing(Location) - Static method in class org.mockito.internal.exceptions.Reporter
 
UnfinishedStubbingException - Exception in org.mockito.exceptions.misusing
 
UnfinishedStubbingException(String) - Constructor for exception org.mockito.exceptions.misusing.UnfinishedStubbingException
 
unfinishedVerificationException(Location) - Static method in class org.mockito.internal.exceptions.Reporter
 
UnfinishedVerificationException - Exception in org.mockito.exceptions.misusing
 
UnfinishedVerificationException(String) - Constructor for exception org.mockito.exceptions.misusing.UnfinishedVerificationException
 
UniversalTestListener - Class in org.mockito.internal.junit
Universal test listener that behaves accordingly to current setting of strictness.
UniversalTestListener(Strictness, MockitoLogger) - Constructor for class org.mockito.internal.junit.UniversalTestListener
 
unncessaryStubbingException(List<Invocation>) - Static method in class org.mockito.internal.exceptions.Reporter
 
UnnecessaryStubbingException - Exception in org.mockito.exceptions.misusing
This exception indicates presence of unused stubbings.
UnnecessaryStubbingException(String) - Constructor for exception org.mockito.exceptions.misusing.UnnecessaryStubbingException
 
UnnecessaryStubbingsReporter - Class in org.mockito.internal.junit
Reports unnecessary stubbings
UnnecessaryStubbingsReporter() - Constructor for class org.mockito.internal.junit.UnnecessaryStubbingsReporter
 
unstubbedCalls - Variable in class org.mockito.internal.debugging.LoggingListener
 
unstubbedInvocation - Variable in class org.mockito.internal.stubbing.defaultanswers.ReturnsSmartNulls.ThrowsSmartNullPointer
 
unsupportedCombinationOfAnnotations(String, String) - Static method in class org.mockito.internal.exceptions.Reporter
 
unused - Variable in class org.mockito.internal.junit.UnusedStubbings
 
UnusedStubbingReporting - Class in org.mockito.internal.stubbing
Helps determining if stubbing should be reported as unused
UnusedStubbingReporting() - Constructor for class org.mockito.internal.stubbing.UnusedStubbingReporting
 
UnusedStubbings - Class in org.mockito.internal.junit
Contains unused stubbings, knows how to format them
UnusedStubbings(Collection<? extends Stubbing>) - Constructor for class org.mockito.internal.junit.UnusedStubbings
 
UnusedStubbingsFinder - Class in org.mockito.internal.junit
Finds unused stubbings
UnusedStubbingsFinder() - Constructor for class org.mockito.internal.junit.UnusedStubbingsFinder
 
unusedStubs - Variable in class org.mockito.internal.debugging.LoggingListener
 
unusedStubsFinder - Variable in class org.mockito.internal.debugging.MockitoDebuggerImpl
 
UnusedStubsFinder - Class in org.mockito.internal.invocation
Deprecated.
UnusedStubsFinder() - Constructor for class org.mockito.internal.invocation.UnusedStubsFinder
Deprecated.
 
unwrapTo(T[]) - Method in class org.mockito.internal.util.collections.HashCodeAndEqualsSafeSet
 
useConstructor - Variable in class org.mockito.internal.creation.MockSettingsImpl
 
useConstructor - Variable in class org.mockito.internal.creation.settings.CreationSettings
 
useConstructor(Object...) - Method in class org.mockito.internal.creation.MockSettingsImpl
 
useConstructor(Object...) - Method in interface org.mockito.MockSettings
Mockito attempts to use constructor when creating instance of the mock.
usedAt - Variable in class org.mockito.internal.stubbing.StubbedInvocationMatcher
 
usedAtLock - Variable in class org.mockito.internal.stubbing.StubbedInvocationMatcher
 
usingConstructorWithFancySerializable(SerializableMode) - Static method in class org.mockito.internal.exceptions.Reporter
 

V

ValidableAnswer - Interface in org.mockito.stubbing
Allow to validate this answer is correct for the given invocation.
validate() - Static method in class org.mockito.internal.configuration.GlobalConfiguration
 
validateArgumentTypeCompatibility(Invocation, int) - Method in class org.mockito.internal.stubbing.answers.ReturnsArgumentAt
 
validateConstructorUse(boolean, SerializableMode) - Method in class org.mockito.internal.util.MockCreationValidator
 
validateDelegatedInstance(Class<?>, Object) - Method in class org.mockito.internal.util.MockCreationValidator
 
validatedSettings(Class<T>, CreationSettings<T>) - Static method in class org.mockito.internal.creation.MockSettingsImpl
 
validatedStaticSettings(Class<T>, CreationSettings<T>) - Static method in class org.mockito.internal.creation.MockSettingsImpl
 
validateExtraInterfaces(Class<?>, Collection<Class<?>>) - Method in class org.mockito.internal.util.MockCreationValidator
 
validateFor(InvocationOnMock) - Method in class org.mockito.internal.stubbing.answers.AbstractThrowsException
 
validateFor(InvocationOnMock) - Method in class org.mockito.internal.stubbing.answers.AnswersWithDelay
 
validateFor(InvocationOnMock) - Method in class org.mockito.internal.stubbing.answers.CallsRealMethods
 
validateFor(InvocationOnMock) - Method in class org.mockito.internal.stubbing.answers.DoesNothing
 
validateFor(InvocationOnMock) - Method in class org.mockito.internal.stubbing.answers.Returns
 
validateFor(InvocationOnMock) - Method in class org.mockito.internal.stubbing.answers.ReturnsArgumentAt
 
validateFor(InvocationOnMock) - Method in interface org.mockito.stubbing.ValidableAnswer
Validation of the answer at stub time for the given invocation.
validateIndexWithinInvocationRange(InvocationOnMock, int) - Method in class org.mockito.internal.stubbing.answers.ReturnsArgumentAt
 
validateInput(long) - Method in class org.mockito.internal.util.Timer
 
validateMatchers(Invocation, List<LocalizedMatcher>) - Method in class org.mockito.internal.invocation.MatchersBinder
 
validateMockedType(Class<?>, Object) - Method in class org.mockito.internal.util.MockCreationValidator
 
validateMockitoUsage() - Method in class org.mockito.internal.MockitoCore
 
validateMockitoUsage() - Static method in class org.mockito.Mockito
First of all, in case of any trouble, I encourage you to read the Mockito FAQ: https://github.com/mockito/mockito/wiki/FAQ
validateMostStuff() - Method in class org.mockito.internal.progress.MockingProgressImpl
 
validateReturnValueFor(InvocationOnMock, Object) - Static method in class org.mockito.internal.stubbing.answers.DefaultAnswerValidator
 
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
 
validateType(Class<?>) - Method in class org.mockito.internal.util.MockCreationValidator
 
validateUnusedStubs(Class<?>, RunNotifier) - Method in class org.mockito.internal.junit.UnnecessaryStubbingsReporter
 
value - Variable in class org.mockito.internal.stubbing.answers.Returns
 
valueOf(String) - Static method in enum org.mockito.Answers
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.mockito.internal.invocation.MatcherApplicationStrategy.MatcherApplicationType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.mockito.internal.invocation.RealMethod.IsIllegal
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.mockito.internal.util.concurrent.DetachedThreadLocal.Cleaner
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.mockito.internal.util.concurrent.WeakConcurrentSet.Cleaner
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.mockito.mock.SerializableMode
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.mockito.quality.Strictness
Returns the enum constant of this type with the specified name.
ValuePrinter - Class in org.mockito.internal.matchers.text
Prints a Java object value in a way humans can read it neatly.
ValuePrinter() - Constructor for class org.mockito.internal.matchers.text.ValuePrinter
 
values() - Static method in enum org.mockito.Answers
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.mockito.internal.invocation.MatcherApplicationStrategy.MatcherApplicationType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.mockito.internal.invocation.RealMethod.IsIllegal
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.mockito.internal.util.concurrent.DetachedThreadLocal.Cleaner
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.mockito.internal.util.concurrent.WeakConcurrentSet.Cleaner
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.mockito.mock.SerializableMode
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.mockito.quality.Strictness
Returns an array containing the constants of this enum type, in the order they are declared.
VarArgAware(Class<?>) - Constructor for class org.mockito.internal.matchers.InstanceOf.VarArgAware
 
VarArgAware(Class<?>, String) - Constructor for class org.mockito.internal.matchers.InstanceOf.VarArgAware
 
varargLength(Invocation) - Static method in class org.mockito.internal.invocation.MatcherApplicationStrategy
 
VarargMatcher - Interface in org.mockito.internal.matchers
Internal interface that informs Mockito that the matcher is intended to capture varargs.
verboseLogging() - Method in class org.mockito.internal.creation.MockSettingsImpl
 
verboseLogging() - Method in interface org.mockito.MockSettings
Enables real-time logging of method invocations on this mock.
verboseMatchers(Integer...) - Static method in class org.mockito.internal.reporting.PrintSettings
 
VerboseMockInvocationLogger - Class in org.mockito.internal.debugging
Logs all invocations to standard output.
VerboseMockInvocationLogger() - Constructor for class org.mockito.internal.debugging.VerboseMockInvocationLogger
 
VerboseMockInvocationLogger(PrintStream) - Constructor for class org.mockito.internal.debugging.VerboseMockInvocationLogger
 
VerboseMockitoJUnitRunner - Class in org.mockito.runners
Deprecated.
as of 2.1.0. Use the MockitoJUnitRunner runner instead which contains support for detecting unused stubs.

If you still prefer using this runner, tell us why (create ticket in our issue tracker).

VerboseMockitoJUnitRunner(Class<?>) - Constructor for class org.mockito.runners.VerboseMockitoJUnitRunner
Deprecated.
 
VerboseMockitoJUnitRunner(InternalRunner) - Constructor for class org.mockito.runners.VerboseMockitoJUnitRunner
Deprecated.
 
VerifiableInvocationsFinder - Class in org.mockito.internal.invocation.finder
Author: Szczepan Faber, created at: 4/3/11
VerifiableInvocationsFinder() - Constructor for class org.mockito.internal.invocation.finder.VerifiableInvocationsFinder
 
VerifiableInvocationsFinder.RemoveIgnoredForVerification - Class in org.mockito.internal.invocation.finder
 
verification - Variable in class org.mockito.internal.verification.Description
 
VerificationAfterDelay - Interface in org.mockito.verification
VerificationAfterDelay is a VerificationMode that allows combining existing verification modes with an initial delay, e.g.
VerificationAwareInvocation - Interface in org.mockito.internal.exceptions
 
VerificationCollector - Interface in org.mockito.junit
Use this rule in order to collect multiple verification failures and report at once.
VerificationCollectorImpl - Class in org.mockito.internal.junit
Mockito implementation of VerificationCollector.
VerificationCollectorImpl() - Constructor for class org.mockito.internal.junit.VerificationCollectorImpl
 
VerificationCollectorImpl.VerificationWrapper - Class in org.mockito.internal.junit
 
VerificationData - Interface in org.mockito.internal.verification.api
Data needed to perform verification of interactions.
VerificationDataImpl - Class in org.mockito.internal.verification
 
VerificationDataImpl(InvocationContainerImpl, InvocationMatcher) - Constructor for class org.mockito.internal.verification.VerificationDataImpl
 
VerificationDataInOrder - Interface in org.mockito.internal.verification.api
 
VerificationDataInOrderImpl - Class in org.mockito.internal.verification.api
 
VerificationDataInOrderImpl(InOrderContext, List<Invocation>, MatchableInvocation) - Constructor for class org.mockito.internal.verification.api.VerificationDataInOrderImpl
 
VerificationEvent - Interface in org.mockito.verification
Contains all information about a verification that has happened.
VerificationEventImpl - Class in org.mockito.internal.verification
 
VerificationEventImpl(Object, VerificationMode, VerificationData, Throwable) - Constructor for class org.mockito.internal.verification.VerificationEventImpl
 
VerificationInOrderFailure - Error in org.mockito.exceptions.verification
 
VerificationInOrderFailure(String) - Constructor for error org.mockito.exceptions.verification.VerificationInOrderFailure
 
VerificationInOrderMode - Interface in org.mockito.internal.verification.api
 
VerificationListener - Interface in org.mockito.listeners
This listener can be notified of verify invocations on a mock.
verificationListeners() - Method in interface org.mockito.internal.progress.MockingProgress
 
verificationListeners() - Method in class org.mockito.internal.progress.MockingProgressImpl
 
verificationMode - Variable in class org.mockito.internal.progress.MockingProgressImpl
 
VerificationMode - Interface in org.mockito.verification
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
 
VerificationOverTimeImpl - Class in org.mockito.internal.verification
Verifies that another verification mode (the delegate) is satisfied within a certain timeframe (before timeoutMillis has passed, measured from the call to verify()), and either returns immediately once it does, or waits until it is definitely satisfied once the full time has passed.
VerificationOverTimeImpl(long, long, VerificationMode, boolean) - Constructor for class org.mockito.internal.verification.VerificationOverTimeImpl
Create this verification mode, to be used to verify invocation ongoing data later.
VerificationOverTimeImpl(long, VerificationMode, boolean, Timer) - Constructor for class org.mockito.internal.verification.VerificationOverTimeImpl
Create this verification mode, to be used to verify invocation ongoing data later.
verificationStarted(VerificationMode) - Method in interface org.mockito.internal.progress.MockingProgress
 
verificationStarted(VerificationMode) - Method in class org.mockito.internal.progress.MockingProgressImpl
 
VerificationStartedEvent - Interface in org.mockito.listeners
The instance of this class is passed to VerificationStartedListener.
VerificationStartedListener - Interface in org.mockito.listeners
This listener gets notified when the user starts verification.
verificationStartedListeners - Variable in class org.mockito.internal.creation.settings.CreationSettings
 
verificationStartedListeners(VerificationStartedListener...) - Method in class org.mockito.internal.creation.MockSettingsImpl
 
verificationStartedListeners(VerificationStartedListener...) - Method in interface org.mockito.MockSettings
Registers a listener(s) that will be notified when user starts verification.
VerificationStartedNotifier - Class in org.mockito.internal.listeners
 
VerificationStartedNotifier() - Constructor for class org.mockito.internal.listeners.VerificationStartedNotifier
 
VerificationStartedNotifier.Event - Class in org.mockito.internal.listeners
 
verificationStrategy - Variable in class org.mockito.internal.progress.MockingProgressImpl
 
VerificationStrategy - Interface in org.mockito.verification
Strategy to possibly lazily perform verifications.
VerificationWithTimeout - Interface in org.mockito.verification
VerificationWithTimeout is a VerificationMode that allows combining existing verification modes with 'timeout'.
VerificationWrapper<WrapperT extends VerificationMode> - Class in org.mockito.internal.verification
 
VerificationWrapper(VerificationMode) - Constructor for class org.mockito.internal.junit.VerificationCollectorImpl.VerificationWrapper
 
VerificationWrapper(WrapperT) - Constructor for class org.mockito.internal.verification.VerificationWrapper
 
VerificationWrapperInOrderWrapper - Class in org.mockito.internal.verification
 
VerificationWrapperInOrderWrapper(VerificationWrapper<?>, InOrderImpl) - Constructor for class org.mockito.internal.verification.VerificationWrapperInOrderWrapper
 
verified - Variable in class org.mockito.internal.invocation.InterceptedInvocation
 
verified - Variable in class org.mockito.internal.verification.InOrderContextImpl
 
verify(VerificationData) - Method in class org.mockito.internal.junit.VerificationCollectorImpl.VerificationWrapper
 
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.Calls
 
verify(VerificationData) - Method in class org.mockito.internal.verification.Description
Performs verification using the wrapped verification mode implementation.
verify(VerificationData) - Method in class org.mockito.internal.verification.InOrderWrapper
 
verify(VerificationData) - Method in class org.mockito.internal.verification.MockAwareVerificationMode
 
verify(VerificationData) - Method in class org.mockito.internal.verification.NoInteractions
 
verify(VerificationData) - Method in class org.mockito.internal.verification.NoMoreInteractions
 
verify(VerificationData) - Method in class org.mockito.internal.verification.Only
 
verify(VerificationData) - Method in class org.mockito.internal.verification.Times
 
verify(VerificationData) - Method in class org.mockito.internal.verification.VerificationOverTimeImpl
Verify the given ongoing verification data, and confirm that it satisfies the delegate verification mode before the full duration has passed.
verify(VerificationData) - Method in class org.mockito.internal.verification.VerificationWrapper
 
verify(VerificationData) - Method in class org.mockito.internal.verification.VerificationWrapperInOrderWrapper
 
verify(VerificationData) - Method in interface org.mockito.verification.VerificationMode
Performs the verification
verify(MockedStatic.Verification) - Method in interface org.mockito.MockedStatic
verify(MockedStatic.Verification, VerificationMode) - Method in class org.mockito.internal.MockedStaticImpl
 
verify(MockedStatic.Verification, VerificationMode) - Method in interface org.mockito.MockedStatic
verify(VerificationMode, MockedStatic.Verification) - Method in class org.mockito.internal.MockedStaticImpl
 
verify(VerificationMode, MockedStatic.Verification) - Method in interface org.mockito.MockedStatic
Deprecated.
Please use instead
verify(T) - Method in interface org.mockito.InOrder
Verifies interaction happened once in order.
verify(T) - Method in class org.mockito.internal.InOrderImpl
 
verify(T) - Static method in class org.mockito.Mockito
Verifies certain behavior happened once.
verify(T, VerificationMode) - Method in interface org.mockito.InOrder
Verifies interaction in order.
verify(T, VerificationMode) - Method in class org.mockito.internal.InOrderImpl
 
verify(T, VerificationMode) - Method in class org.mockito.internal.MockitoCore
 
verify(T, VerificationMode) - Static method in class org.mockito.Mockito
Verifies certain behavior happened at least once / exact number of times / never.
verifyInOrder(VerificationDataInOrder) - Method in interface org.mockito.internal.verification.api.VerificationInOrderMode
 
verifyInOrder(VerificationDataInOrder) - Method in class org.mockito.internal.verification.AtLeast
 
verifyInOrder(VerificationDataInOrder) - Method in class org.mockito.internal.verification.Calls
 
verifyInOrder(VerificationDataInOrder) - Method in class org.mockito.internal.verification.NoMoreInteractions
 
verifyInOrder(VerificationDataInOrder) - Method in class org.mockito.internal.verification.Times
 
verifyNoInteractions() - Method in class org.mockito.internal.MockedStaticImpl
 
verifyNoInteractions() - Method in interface org.mockito.MockedStatic
verifyNoInteractions(Object...) - Method in class org.mockito.internal.MockitoCore
 
verifyNoInteractions(Object...) - Static method in class org.mockito.Mockito
Verifies that no interactions happened on given mocks.
verifyNoMoreInteractions() - Method in interface org.mockito.InOrder
Verifies that no more interactions happened in order.
verifyNoMoreInteractions() - Method in class org.mockito.internal.InOrderImpl
 
verifyNoMoreInteractions() - Method in class org.mockito.internal.MockedStaticImpl
 
verifyNoMoreInteractions() - Method in interface org.mockito.MockedStatic
verifyNoMoreInteractions(Object...) - Method in class org.mockito.internal.MockitoCore
 
verifyNoMoreInteractions(Object...) - Static method in class org.mockito.Mockito
Checks if any of given mocks has any unverified interaction.
verifyNoMoreInteractionsInOrder(List<Object>, InOrderContext) - Method in class org.mockito.internal.MockitoCore
 
verifyZeroInteractions(Object...) - Static method in class org.mockito.Mockito
Deprecated.
Since 3.0.1. Please migrate your code to Mockito.verifyNoInteractions(Object...)
visitMethod(int, String, String, String, String[]) - Method in class org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator.ParameterWritingVisitorWrapper.ParameterAddingClassVisitor
 
visitParameter(String, int) - Method in class org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator.ParameterWritingVisitorWrapper.MethodParameterStrippingMethodVisitor
 
VoidAnswer1<A0> - Interface in org.mockito.stubbing
Generic interface to be used for configuring mock's answer for a single argument invocation that returns nothing.
VoidAnswer2<A0,​A1> - Interface in org.mockito.stubbing
Generic interface to be used for configuring mock's answer for a two argument invocation that returns nothing.
VoidAnswer3<A0,​A1,​A2> - Interface in org.mockito.stubbing
Generic interface to be used for configuring mock's answer for a three argument invocation that returns nothing.
VoidAnswer4<A0,​A1,​A2,​A3> - Interface in org.mockito.stubbing
Generic interface to be used for configuring mock's answer for a four argument invocation that returns nothing.
VoidAnswer5<A0,​A1,​A2,​A3,​A4> - Interface in org.mockito.stubbing
Generic interface to be used for configuring mock's answer for a five argument invocation that returns nothing.
VoidAnswer6<A0,​A1,​A2,​A3,​A4,​A5> - Interface in org.mockito.stubbing
Generic interface to be used for configuring mock's answer for a six argument invocation that returns nothing.

W

wanted - Variable in class org.mockito.internal.invocation.InvocationsFinder.RemoveNotMatching
 
wanted - Variable in class org.mockito.internal.matchers.apachecommons.ReflectionEquals
 
wanted - Variable in class org.mockito.internal.matchers.CompareTo
 
wanted - Variable in class org.mockito.internal.matchers.Equals
 
wanted - Variable in class org.mockito.internal.matchers.EqualsWithDelta
 
wanted - Variable in class org.mockito.internal.matchers.Same
 
wanted - Variable in class org.mockito.internal.reporting.SmartPrinter
 
wanted - Variable in class org.mockito.internal.verification.api.VerificationDataInOrderImpl
 
wanted - Variable in class org.mockito.internal.verification.VerificationDataImpl
 
wantedArgIndexIsVarargAndSameTypeAsReturnType(Method, int) - Method in class org.mockito.internal.stubbing.answers.ReturnsArgumentAt
 
wantedArgumentPosition - Variable in class org.mockito.internal.stubbing.answers.ReturnsArgumentAt
 
wantedArgumentPositionIsValidForInvocation(InvocationOnMock, int) - Method in class org.mockito.internal.stubbing.answers.ReturnsArgumentAt
 
wantedAtMostX(int, int) - Static method in class org.mockito.internal.exceptions.Reporter
 
wantedButNotInvoked(DescribedInvocation) - Static method in class org.mockito.internal.exceptions.Reporter
 
wantedButNotInvoked(DescribedInvocation, List<? extends DescribedInvocation>) - Static method in class org.mockito.internal.exceptions.Reporter
 
WantedButNotInvoked - Error in org.mockito.exceptions.verification
 
WantedButNotInvoked(String) - Constructor for error org.mockito.exceptions.verification.WantedButNotInvoked
 
wantedButNotInvokedInOrder(DescribedInvocation, DescribedInvocation) - Static method in class org.mockito.internal.exceptions.Reporter
 
wantedCount - Variable in class org.mockito.internal.reporting.Discrepancy
 
wantedCount - Variable in class org.mockito.internal.verification.AtLeast
 
wantedCount - Variable in class org.mockito.internal.verification.Calls
 
wantedCount - Variable in class org.mockito.internal.verification.Times
 
WARN - org.mockito.quality.Strictness
Helps keeping tests clean and improves debuggability only if you read the console output.
warnAboutUnstubbed - Variable in class org.mockito.internal.debugging.LoggingListener
 
warnAboutUnstubbed - Variable in class org.mockito.internal.debugging.WarningsPrinterImpl
 
warnForVM(String, String, String, String) - Static method in class org.mockito.internal.util.Platform
 
warnForVM(String, String, String, String, String) - Static method in class org.mockito.internal.util.Platform
 
WarningsCollector - Class in org.mockito.internal.debugging
Deprecated.
WarningsCollector() - Constructor for class org.mockito.internal.debugging.WarningsCollector
Deprecated.
 
WarningsFinder - Class in org.mockito.internal.debugging
 
WarningsFinder(List<Invocation>, List<InvocationMatcher>) - Constructor for class org.mockito.internal.debugging.WarningsFinder
 
WarningsPrinterImpl - Class in org.mockito.internal.debugging
 
WarningsPrinterImpl(boolean, WarningsFinder) - Constructor for class org.mockito.internal.debugging.WarningsPrinterImpl
 
WarningsPrinterImpl(List<Invocation>, List<InvocationMatcher>, boolean) - Constructor for class org.mockito.internal.debugging.WarningsPrinterImpl
 
wasInitialized - Variable in class org.mockito.internal.util.reflection.FieldInitializationReport
 
wasInitializedUsingConstructorArgs - Variable in class org.mockito.internal.util.reflection.FieldInitializationReport
 
wasUsed() - Method in class org.mockito.internal.stubbing.StubbedInvocationMatcher
 
wasUsed() - Method in interface org.mockito.stubbing.Stubbing
Informs if the stubbing was used
WeakConcurrentMap<K,​V> - Class in org.mockito.internal.util.concurrent
A thread-safe map with weak keys.
WeakConcurrentMap(boolean) - Constructor for class org.mockito.internal.util.concurrent.WeakConcurrentMap
 
WeakConcurrentMap.EntryIterator - Class in org.mockito.internal.util.concurrent
 
WeakConcurrentMap.LatentKey<T> - Class in org.mockito.internal.util.concurrent
 
WeakConcurrentMap.SimpleEntry - Class in org.mockito.internal.util.concurrent
 
WeakConcurrentMap.WeakKey<T> - Class in org.mockito.internal.util.concurrent
 
WeakConcurrentMap.WithInlinedExpunction<K,​V> - Class in org.mockito.internal.util.concurrent
A WeakConcurrentMap where stale entries are removed as a side effect of interacting with this map.
WeakConcurrentSet<V> - Class in org.mockito.internal.util.concurrent
A thread-safe set with weak values.
WeakConcurrentSet(WeakConcurrentSet.Cleaner) - Constructor for class org.mockito.internal.util.concurrent.WeakConcurrentSet
 
WeakConcurrentSet.Cleaner - Enum in org.mockito.internal.util.concurrent
Determines the cleaning format.
WeakConcurrentSet.ReducingIterator<V> - Class in org.mockito.internal.util.concurrent
 
WeakKey(T, ReferenceQueue<? super T>) - Constructor for class org.mockito.internal.util.concurrent.WeakConcurrentMap.WeakKey
 
weakReferenceHatch - Variable in class org.mockito.internal.creation.bytebuddy.MockMethodInterceptor
 
were_exactly_x_interactions(int) - Static method in class org.mockito.internal.reporting.Pluralizer
 
when(MockedStatic.Verification) - Method in class org.mockito.internal.MockedStaticImpl
 
when(MockedStatic.Verification) - Method in interface org.mockito.MockedStatic
when(T) - Method in class org.mockito.internal.MockitoCore
 
when(T) - Method in class org.mockito.internal.stubbing.DefaultLenientStubber
 
when(T) - Method in class org.mockito.internal.stubbing.StubberImpl
 
when(T) - Static method in class org.mockito.Mockito
Enables stubbing methods.
when(T) - Method in interface org.mockito.stubbing.LenientStubber
Allows declaring the method to stub.
when(T) - Method in interface org.mockito.stubbing.Stubber
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style
wildcard - Variable in class org.mockito.internal.util.reflection.GenericMetadataSupport.WildCardBoundedType
 
wildCard() - Method in class org.mockito.internal.util.reflection.GenericMetadataSupport.WildCardBoundedType
 
WildCardBoundedType(WildcardType) - Constructor for class org.mockito.internal.util.reflection.GenericMetadataSupport.WildCardBoundedType
 
will(Answer<?>) - Method in interface org.mockito.BDDMockito.BDDMyOngoingStubbing
will(Answer<?>) - Method in class org.mockito.BDDMockito.BDDOngoingStubbingImpl
 
will(Answer<?>) - Method in interface org.mockito.BDDMockito.BDDStubber
will(Answer<?>) - Method in class org.mockito.BDDMockito.BDDStubberImpl
 
will(Answer<?>) - Static method in class org.mockito.BDDMockito
willAnswer(Answer<?>) - Method in interface org.mockito.BDDMockito.BDDMyOngoingStubbing
willAnswer(Answer<?>) - Method in class org.mockito.BDDMockito.BDDOngoingStubbingImpl
 
willAnswer(Answer<?>) - Method in interface org.mockito.BDDMockito.BDDStubber
willAnswer(Answer<?>) - Method in class org.mockito.BDDMockito.BDDStubberImpl
 
willAnswer(Answer<?>) - Static method in class org.mockito.BDDMockito
willCallRealMethod() - Method in interface org.mockito.BDDMockito.BDDMyOngoingStubbing
willCallRealMethod() - Method in class org.mockito.BDDMockito.BDDOngoingStubbingImpl
 
willCallRealMethod() - Method in interface org.mockito.BDDMockito.BDDStubber
willCallRealMethod() - Method in class org.mockito.BDDMockito.BDDStubberImpl
 
willCallRealMethod() - Static method in class org.mockito.BDDMockito
willDoNothing() - Method in interface org.mockito.BDDMockito.BDDStubber
willDoNothing() - Method in class org.mockito.BDDMockito.BDDStubberImpl
 
willDoNothing() - Static method in class org.mockito.BDDMockito
see original Mockito.doNothing()
willNothing() - Method in interface org.mockito.BDDMockito.BDDStubber
Deprecated.
as of 2.1.0 please use BDDMockito.BDDStubber.willDoNothing() instead
willNothing() - Method in class org.mockito.BDDMockito.BDDStubberImpl
Deprecated.
willReturn(Object) - Method in interface org.mockito.BDDMockito.BDDStubber
willReturn(Object) - Method in class org.mockito.BDDMockito.BDDStubberImpl
 
willReturn(Object) - Static method in class org.mockito.BDDMockito
willReturn(Object, Object...) - Method in interface org.mockito.BDDMockito.BDDStubber
willReturn(Object, Object...) - Method in class org.mockito.BDDMockito.BDDStubberImpl
 
willReturn(Object, Object...) - Static method in class org.mockito.BDDMockito
willReturn(T) - Method in interface org.mockito.BDDMockito.BDDMyOngoingStubbing
willReturn(T) - Method in class org.mockito.BDDMockito.BDDOngoingStubbingImpl
 
willReturn(T, T...) - Method in interface org.mockito.BDDMockito.BDDMyOngoingStubbing
willReturn(T, T...) - Method in class org.mockito.BDDMockito.BDDOngoingStubbingImpl
 
willThrow(Class<? extends Throwable>) - Method in interface org.mockito.BDDMockito.BDDMyOngoingStubbing
willThrow(Class<? extends Throwable>) - Method in class org.mockito.BDDMockito.BDDOngoingStubbingImpl
 
willThrow(Class<? extends Throwable>) - Method in interface org.mockito.BDDMockito.BDDStubber
willThrow(Class<? extends Throwable>) - Method in class org.mockito.BDDMockito.BDDStubberImpl
 
willThrow(Class<? extends Throwable>) - Static method in class org.mockito.BDDMockito
willThrow(Class<? extends Throwable>, Class<? extends Throwable>...) - Method in interface org.mockito.BDDMockito.BDDMyOngoingStubbing
willThrow(Class<? extends Throwable>, Class<? extends Throwable>...) - Method in class org.mockito.BDDMockito.BDDOngoingStubbingImpl
 
willThrow(Class<? extends Throwable>, Class<? extends Throwable>...) - Method in interface org.mockito.BDDMockito.BDDStubber
willThrow(Class<? extends Throwable>, Class<? extends Throwable>...) - Method in class org.mockito.BDDMockito.BDDStubberImpl
 
willThrow(Class<? extends Throwable>, Class<? extends Throwable>...) - Static method in class org.mockito.BDDMockito
willThrow(Throwable...) - Method in interface org.mockito.BDDMockito.BDDMyOngoingStubbing
willThrow(Throwable...) - Method in class org.mockito.BDDMockito.BDDOngoingStubbingImpl
 
willThrow(Throwable...) - Method in interface org.mockito.BDDMockito.BDDStubber
willThrow(Throwable...) - Method in class org.mockito.BDDMockito.BDDStubberImpl
 
willThrow(Throwable...) - Static method in class org.mockito.BDDMockito
withFullyQualifiedName - Variable in class org.mockito.internal.reporting.PrintSettings
 
WithInlinedExpunction() - Constructor for class org.mockito.internal.util.concurrent.WeakConcurrentMap.WithInlinedExpunction
 
WithLookup(Object, Object, Method) - Constructor for class org.mockito.internal.creation.bytebuddy.SubclassInjectionLoader.WithLookup
 
withMockFeatures(Class<T>, Set<Class<?>>, SerializableMode, boolean, Answer) - Static method in class org.mockito.internal.creation.bytebuddy.MockFeatures
 
withMocks(Set<Object>) - Method in class org.mockito.internal.configuration.injection.MockInjection.OngoingMockInjection
 
withoutAnnotations() - Method in class org.mockito.internal.creation.MockSettingsImpl
 
withoutAnnotations() - Method in interface org.mockito.MockSettings
By default, Mockito makes an attempt to preserve all annotation meta data on the mocked type and its methods to mirror the mocked type as closely as possible.
withParams(Class<T>, Object...) - Method in class org.mockito.internal.creation.instance.ConstructorInstantiator
 
WithReflection() - Constructor for class org.mockito.internal.creation.bytebuddy.SubclassInjectionLoader.WithReflection
 
withSettings() - Static method in class org.mockito.Mockito
Allows mock creation with additional mock settings.
withSettingsUsing(GenericMetadataSupport, MockCreationSettings) - Method in class org.mockito.internal.stubbing.defaultanswers.ReturnsDeepStubs
 
withTypeInfo - Variable in class org.mockito.internal.reporting.PrintSettings
 
wrap(TypeDescription, MethodDescription, MethodVisitor, Implementation.Context, TypePool, int, int) - Method in class org.mockito.internal.creation.bytebuddy.MockMethodAdvice.ConstructorShortcut
 
wrap(TypeDescription, ClassVisitor, Implementation.Context, TypePool, FieldList<FieldDescription.InDefinedShape>, MethodList<?>, int, int) - Method in class org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator.ParameterWritingVisitorWrapper
 
wrapInOrder(VerificationWrapper<?>, VerificationMode, InOrderImpl) - Method in class org.mockito.internal.verification.VerificationWrapperInOrderWrapper
 
wrappedVerification - Variable in class org.mockito.internal.verification.VerificationWrapper
 
WRAPPERS - Static variable in class org.mockito.internal.util.reflection.InstrumentationMemberAccessor
 
writeLock - Variable in class org.mockito.internal.matchers.CapturingMatcher
 
writeReplace - Variable in class org.mockito.internal.creation.bytebuddy.SubclassBytecodeGenerator
 
writeReplace() - Method in interface org.mockito.internal.creation.bytebuddy.ByteBuddyCrossClassLoaderSerializationSupport.CrossClassLoaderSerializableMock
 
writeReplace() - Method in class org.mockito.internal.invocation.mockref.MockWeakReference
 
writeReplace() - Method in class org.mockito.internal.stubbing.defaultanswers.ReturnsDeepStubs.ReturnsDeepStubsSerializationFallback
Generics support and serialization with deep stubs don't work together.
writeReplace(Object) - Method in class org.mockito.internal.creation.bytebuddy.ByteBuddyCrossClassLoaderSerializationSupport
Custom implementation of the writeReplace method for serialization.
writeText(String, File) - Static method in class org.mockito.internal.util.io.IOUtil
Writes text to file
wrongTypeOfArgumentToReturn(InvocationOnMock, String, Class<?>, int) - Static method in class org.mockito.internal.exceptions.Reporter
 
wrongTypeOfReturnValue(String, String, String) - Static method in class org.mockito.internal.exceptions.Reporter
 
WrongTypeOfReturnValue - Exception in org.mockito.exceptions.misusing
 
WrongTypeOfReturnValue(String) - Constructor for exception org.mockito.exceptions.misusing.WrongTypeOfReturnValue
 
wrongTypeReturnedByDefaultAnswer(Object, String, String, String) - Static method in class org.mockito.internal.exceptions.Reporter
 
A B C D E F G H I J K L M N O P R S T U V W 
All Classes All Packages