- 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.InvocationImpl
-
- 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.
- incorrectUseOfAdditionalMatchers(String, int, Collection<LocalizedMatcher>) - Static method in class org.mockito.exceptions.Reporter
-
- incorrectUseOfApi() - Static method in class org.mockito.exceptions.Reporter
-
- Incubating - Annotation Type in org.mockito
-
The annotation conveys following information:
The API is fairly new and we would appreciate your feedback.
- inferFrom(Type) - Static method in class org.mockito.internal.util.reflection.GenericMetadataSupport
-
- initialize() - Method in class org.mockito.internal.util.reflection.FieldInitializer
-
Initialize field if not initialized and return the actual instance.
- initMocks(Object) - Static method in class org.mockito.MockitoAnnotations
-
- InjectingAnnotationEngine - Class in org.mockito.internal.configuration
-
- InjectingAnnotationEngine() - Constructor for class org.mockito.internal.configuration.InjectingAnnotationEngine
-
- InjectMocks - Annotation Type in org.mockito
-
Mark a field on which injection should be performed.
- injectMocks(Object) - Method in class org.mockito.internal.configuration.InjectingAnnotationEngine
-
Initializes mock/spies dependencies for objects annotated with
@InjectMocks for given testClassInstance.
- 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
- InOrder - Interface in org.mockito
-
Allows verification in order.
- 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.
- 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<Object>) - Constructor for class org.mockito.internal.InOrderImpl
-
- inOrderRequiresFamiliarMock() - Static method in class org.mockito.exceptions.Reporter
-
- InOrderWrapper - Class in org.mockito.internal.verification
-
- InOrderWrapper(VerificationInOrderMode, InOrderImpl) - Constructor for class org.mockito.internal.verification.InOrderWrapper
-
- 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() - Method in class org.mockito.internal.util.reflection.Fields.InstanceFields
-
- InstanceOf - Class in org.mockito.internal.matchers
-
- InstanceOf(Class<?>) - Constructor for class org.mockito.internal.matchers.InstanceOf
-
- InstantiationException - Exception in org.mockito.internal.creation.instance
-
- InstantiationException(String, Throwable) - Constructor for exception org.mockito.internal.creation.instance.InstantiationException
-
- Instantiator - Interface in org.mockito.internal.creation.instance
-
Provides instances of classes.
- InstantiatorProvider - Interface in org.mockito.plugins
-
Mockito will invoke this interface in order to fetch an instance instantiator provider.
- interceptAbstract(Object, MockMethodInterceptor, Object, Method, Object[]) - Static method in class org.mockito.internal.creation.bytebuddy.MockMethodInterceptor.DispatcherDefaultingToRealMethod
-
- 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
-
- InternalMockHandler<T> - Interface in org.mockito.internal
-
- 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.Matchers
-
Allows creating custom int
argument matchers.
- invalidArgumentPositionRangeAtInvocationTime(InvocationOnMock, boolean, int) - Static method in class org.mockito.exceptions.Reporter
-
- invalidArgumentRangeAtIdentityAnswerCreationTime() - Static method in class org.mockito.exceptions.Reporter
-
- invalidUseOfMatchers(int, List<LocalizedMatcher>) - Static method in class org.mockito.exceptions.Reporter
-
- InvalidUseOfMatchersException - Exception in org.mockito.exceptions.misusing
-
- InvalidUseOfMatchersException(String) - Constructor for exception org.mockito.exceptions.misusing.InvalidUseOfMatchersException
-
- InvalidUseOfMatchersException() - Constructor for exception org.mockito.exceptions.misusing.InvalidUseOfMatchersException
-
- Invocation - Interface in org.mockito.invocation
-
A method call on a mock object.
- InvocationContainer - Interface in org.mockito.internal.stubbing
-
- InvocationContainerImpl - Class in org.mockito.internal.stubbing
-
- InvocationContainerImpl(MockingProgress, MockCreationSettings) - Constructor for class org.mockito.internal.stubbing.InvocationContainerImpl
-
- InvocationImpl - Class in org.mockito.internal.invocation
-
Method call on a mock object.
- InvocationImpl(Object, MockitoMethod, Object[], int, RealMethod, Location) - Constructor for class org.mockito.internal.invocation.InvocationImpl
-
- InvocationListener - Interface in org.mockito.listeners
-
This listener can be notified of method invocations on a mock.
- invocationListenerDoesNotAcceptNullParameters() - Static method in class org.mockito.exceptions.Reporter
-
- invocationListeners(InvocationListener...) - Method in class org.mockito.internal.creation.MockSettingsImpl
-
- invocationListeners - Variable in class org.mockito.internal.creation.settings.CreationSettings
-
- invocationListeners(InvocationListener...) - Method in interface org.mockito.MockSettings
-
Registers a listener for method invocations on this mock.
- invocationListenersRequiresAtLeastOneListener() - Static method in class org.mockito.exceptions.Reporter
-
- invocationListenerThrewException(InvocationListener, Throwable) - Static method in class org.mockito.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
-
- InvocationMatcher(Invocation, List<ArgumentMatcher>) - Constructor for class org.mockito.internal.invocation.InvocationMatcher
-
- InvocationMatcher(Invocation) - Constructor for class org.mockito.internal.invocation.InvocationMatcher
-
- InvocationOnMock - Interface in org.mockito.invocation
-
An invocation on a mock
- InvocationsFinder - Class in org.mockito.internal.invocation
-
- InvocationsFinder() - Constructor for class org.mockito.internal.invocation.InvocationsFinder
-
- invoke(Object, Object[]) - Method in class org.mockito.internal.invocation.realmethod.CleanTraceRealMethod
-
- invoke(Object, Object[]) - Method in class org.mockito.internal.invocation.realmethod.DefaultRealMethod
-
- invoke(Object, Object[]) - Method in interface org.mockito.internal.invocation.realmethod.RealMethod
-
- invokedMock() - Method in class org.mockito.internal.stubbing.InvocationContainerImpl
-
- invokeSuper(Object, Object[]) - Method in interface org.mockito.internal.creation.util.MockitoMethodProxy
-
- 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.Matchers
-
Object
argument that implements the given class.
- 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.MethodInfo
-
- isAnnotatedBy(Class<? extends Annotation>) - Method in class org.mockito.internal.util.reflection.InstanceField
-
Check if the field is annotated by the given annotation.
- isCompareToMethod(Method) - Method in class org.mockito.internal.util.ObjectMethodsGuru
-
- 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.MethodInfo
-
- isDefault() - Method in class org.mockito.internal.util.MockNameImpl
-
- isDefault() - Method in interface org.mockito.mock.MockName
-
default name means generated by Mockito.
- isEmpty(T[]) - Method in class org.mockito.internal.util.collections.ArrayUtils
-
- 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
-
- 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).
- isEqualsMethod(Method) - Method in class org.mockito.internal.util.ObjectMethodsGuru
-
- isHashCodeMethod(Method) - Method in class org.mockito.internal.util.ObjectMethodsGuru
-
- isIgnoredForVerification() - Method in class org.mockito.internal.invocation.InvocationImpl
-
- isIgnoredForVerification() - Method in interface org.mockito.invocation.Invocation
-
Informs if the invocation participates in verify-no-more-invocations or verification in order.
- isMock() - Method in class org.mockito.internal.util.DefaultMockingDetails
-
- isMock(Object) - Method in class org.mockito.internal.util.MockUtil
-
- isMock() - Method in interface org.mockito.MockingDetails
-
Informs if the object is a mock.
- isMultiline() - Method in class org.mockito.internal.reporting.PrintSettings
-
- isNotNull() - Static method in class org.mockito.Matchers
-
Not null
argument.
- isNotNull(Class<T>) - Static method in class org.mockito.Matchers
-
Not null
argument, not necessary of the given class.
- 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() - Static method in class org.mockito.Matchers
-
null
argument.
- isNull(Class<T>) - Static method in class org.mockito.Matchers
-
null
argument.
- isOut(StackTraceElement) - Method in interface org.mockito.exceptions.stacktrace.StackTraceCleaner
-
Decides if element is excluded.
- isOut(StackTraceElement) - Method in class org.mockito.internal.exceptions.stacktrace.DefaultStackTraceCleaner
-
- isOut(T) - Method in interface org.mockito.internal.util.collections.ListUtil.Filter
-
- isPrimitiveOrWrapper(Class<?>) - Static method in class org.mockito.internal.util.Primitives
-
Indicates if the given class is primitive type or a primitive wrapper.
- isSerializable() - Method in class org.mockito.internal.creation.settings.CreationSettings
-
- isSerializable() - Method in interface org.mockito.mock.MockCreationSettings
-
- isSpy() - Method in class org.mockito.internal.util.DefaultMockingDetails
-
- isSpy(Object) - Method in class org.mockito.internal.util.MockUtil
-
- isSpy() - Method in interface org.mockito.MockingDetails
-
Informs if the object is a spy.
- 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.
- isSynthetic() - Method in class org.mockito.internal.util.reflection.InstanceField
-
Check if the field is synthetic.
- isToString(Method) - Method in class org.mockito.internal.util.ObjectMethodsGuru
-
- isToString(MockitoMethod) - 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.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.MethodInfo
-
- isValidReturnType(Class) - Method in class org.mockito.internal.stubbing.answers.MethodInfo
-
- 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(Invocation) - Method in class org.mockito.internal.InOrderImpl
-
- isVerified() - Method in class org.mockito.internal.invocation.InvocationImpl
-
- isVerified(Invocation) - Method in interface org.mockito.internal.verification.api.InOrderContext
-
- isVerified(Invocation) - Method in class org.mockito.internal.verification.InOrderContextImpl
-
- isVerified() - Method in interface org.mockito.invocation.Invocation
-
- isVoid() - Method in class org.mockito.internal.stubbing.answers.MethodInfo
-
- Iterables - Class in org.mockito.internal.util.collections
-
Utilities for Iterables
- Iterables() - Constructor for class org.mockito.internal.util.collections.Iterables
-
- iterator() - Method in class org.mockito.internal.util.collections.HashCodeAndEqualsSafeSet
-