- 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...) - 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.
- Incubating - Annotation Type in org.mockito
-
The annotation conveys following information:
The API is fairly new and we would appreciate your feedback.
- initMocks(Object) - Static method in class org.mockito.MockitoAnnotations
-
- InjectMocks - Annotation Type in org.mockito
-
Mark a field on which injection should be performed.
- InOrder - Interface in org.mockito
-
Allows verification in order.
- inOrder(Object...) - Static method in class org.mockito.Mockito
-
Creates
InOrder
object that allows verifying mocks in order.
- InstantiatorProvider - Interface in org.mockito.plugins
-
Mockito will invoke this interface in order to fetch an instance instantiator provider.
- intThat(ArgumentMatcher<Integer>) - Static method in class org.mockito.ArgumentMatchers
-
Allows creating custom int
argument matchers.
- intThat(Matcher<Integer>) - Static method in class org.mockito.hamcrest.MockitoHamcrest
-
Enables integrating hamcrest matchers that match primitive int
arguments.
- 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.
- InvocationListener - Interface in org.mockito.listeners
-
This listener can be notified of method invocations on a mock.
- invocationListeners(InvocationListener...) - Method in interface org.mockito.MockSettings
-
Registers a listener for method invocations on this mock.
- InvocationOnMock - Interface in org.mockito.invocation
-
An invocation on a mock.
- isA(Class<T>) - Static method in class org.mockito.ArgumentMatchers
-
Object
argument that implements the given class.
- isDefault() - Method in interface org.mockito.mock.MockName
-
default name means generated by Mockito.
- 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).
- isIgnoredForVerification() - Method in interface org.mockito.invocation.Invocation
-
Informs if the invocation participates in verify-no-more-invocations or verification in order.
- isIn(StackTraceElement) - Method in interface org.mockito.exceptions.stacktrace.StackTraceCleaner
-
Decides if element is included.
- isMock() - Method in interface org.mockito.MockingDetails
-
Informs if the object is a mock.
- 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 3.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(Class<T>) - Static method in class org.mockito.ArgumentMatchers
-
Deprecated.
With Java 8 this method will be removed in Mockito 3.0. This method is only used for generic
friendliness to avoid casting, this is not anymore needed in Java 8.
- isSerializable() - Method in interface org.mockito.mock.MockCreationSettings
-
- isSpy() - Method in interface org.mockito.MockingDetails
-
Informs if the object is a spy.
- isStubOnly() - Method in interface org.mockito.mock.MockCreationSettings
-
Whether the mock is only for stubbing, i.e.
- isTypeMockable(Class<?>) - Method in interface org.mockito.plugins.MockMaker
-
Indicates if the given type can be mocked by this mockmaker.
- isUsingConstructor() - Method in interface org.mockito.mock.MockCreationSettings
-
Informs whether the mock instance should be created via constructor
- isVerified() - Method in interface org.mockito.invocation.Invocation
-