Skip navigation links
Mockito 4.1.0 API
A B C D E F G H I L M N O P R S T U V W 

O

OngoingStubbing<T> - Interface in org.mockito.stubbing
Simply put: "When the x method is called then return y".
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.
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 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(T, T) - Static method in class org.mockito.AdditionalMatchers
Object argument that matches any of the given argument matchers.
or(short, short) - Static method in class org.mockito.AdditionalMatchers
short argument that matches any of the given argument matchers.
or(long, long) - Static method in class org.mockito.AdditionalMatchers
long argument that matches any of the given argument matchers.
or(int, int) - Static method in class org.mockito.AdditionalMatchers
int argument that matches any of the given argument matchers.
or(float, float) - Static method in class org.mockito.AdditionalMatchers
float argument that matches any of the given argument matchers.
or(double, double) - Static method in class org.mockito.AdditionalMatchers
double argument that matches any of the given argument matchers.
or(char, char) - Static method in class org.mockito.AdditionalMatchers
char argument that matches any of the given argument matchers.
or(byte, byte) - Static method in class org.mockito.AdditionalMatchers
byte argument that matches any of the given argument matchers.
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.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.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.
outerInstance(Object) - Method in interface org.mockito.MockSettings
Makes it possible to mock non-static inner classes in conjunction with MockSettings.useConstructor(Object...).
A B C D E F G H I L M N O P R S T U V W 
Skip navigation links
Mockito 4.1.0 API