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

G

geq(T) - Static method in class org.mockito.AdditionalMatchers
argument greater than or equal the given value.
geq(byte) - Static method in class org.mockito.AdditionalMatchers
byte argument greater than or equal to the given value.
geq(double) - Static method in class org.mockito.AdditionalMatchers
double argument greater than or equal to the given value.
geq(float) - Static method in class org.mockito.AdditionalMatchers
float argument greater than or equal to the given value.
geq(int) - Static method in class org.mockito.AdditionalMatchers
int argument greater than or equal to the given value.
geq(long) - Static method in class org.mockito.AdditionalMatchers
long argument greater than or equal to the given value.
geq(short) - Static method in class org.mockito.AdditionalMatchers
short argument greater than or equal to the given value.
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 .
getAllStubbings() - Method in interface org.mockito.listeners.StubbingLookupEvent
 
getAllValues() - Method in class org.mockito.ArgumentCaptor
Returns all captured values.
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 3.
getArgument(int) - Method in interface org.mockito.invocation.InvocationOnMock
Returns casted argument at the given index.
getArgument(int, Class<T>) - Method in interface org.mockito.invocation.InvocationOnMock
Returns casted argument at the given index.
getArguments() - Method in interface org.mockito.invocation.InvocationOnMock
Returns arguments passed to the method.
getArgumentsAsMatchers() - Method in interface org.mockito.invocation.Invocation
Wraps each argument using ArgumentMatchers.eq(Object) or aryEq(Object[]) Used internally for the purposes of human-readable invocation printing.
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.
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 interface org.mockito.mock.MockCreationSettings
the default answer for this mock, see MockSettings.defaultAnswer(org.mockito.stubbing.Answer).
getDefaultPlugin(Class<T>) - Method in interface org.mockito.plugins.MockitoPlugins
Returns the default plugin implementation used by Mockito.
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.
 
getExtraInterfaces() - Method in interface org.mockito.mock.MockCreationSettings
the extra interfaces the mock object should implement.
getHandler(Object) - Method in interface org.mockito.plugins.MockMaker
Returns the handler for the mock.
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 interface org.mockito.plugins.InstantiatorProvider
Deprecated.
getInstantiator(MockCreationSettings<?>) - Method in interface org.mockito.plugins.InstantiatorProvider2
Returns an instantiator, used to create new class instances.
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 interface org.mockito.invocation.MockHandler
Returns the object that holds all invocations on the mock object, including stubbings with declared answers.
getInvocationFactory() - Method in interface org.mockito.MockitoFramework
Returns a factory that can create instances of Invocation.
getInvocationListeners() - Method in interface org.mockito.mock.MockCreationSettings
getInvocations() - Method in interface org.mockito.MockingDetails
All method invocations on this mock.
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 interface org.mockito.listeners.MethodInvocationReport
 
getMatchers() - Method in interface org.mockito.invocation.MatchableInvocation
The argument matchers of this invocation.
getMessage() - Method in error org.mockito.exceptions.verification.junit.ArgumentsAreDifferent
 
getMessage() - Method in error org.mockito.exceptions.verification.opentest4j.ArgumentsAreDifferent
 
getMethod() - Method in interface org.mockito.invocation.InvocationOnMock
returns the method
getMock() - Method in interface org.mockito.BDDMockito.BDDMyOngoingStubbing
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 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 interface org.mockito.MockingDetails
Returns the MockHandler associated with this mock object.
getMockName() - Method in interface org.mockito.mock.MockCreationSettings
the name of this mock, as printed on verification errors; see MockSettings.name(java.lang.String).
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
 
getMode() - Method in interface org.mockito.verification.VerificationEvent
 
getOuterClassInstance() - Method in interface org.mockito.mock.MockCreationSettings
Used when mocking non-static inner classes in conjunction with MockCreationSettings.isUsingConstructor()
getPlugins() - Method in interface org.mockito.MockitoFramework
Returns an object that has access to Mockito plugins.
getRawArguments() - Method in interface org.mockito.invocation.Invocation
Returns unprocessed arguments whereas InvocationOnMock.getArguments() returns arguments already processed (e.g.
getRawReturnType() - Method in interface org.mockito.invocation.Invocation
Returns unprocessed arguments whereas InvocationOnMock.getArguments() returns arguments already processed (e.g.
getReturnedValue() - Method in interface org.mockito.listeners.MethodInvocationReport
 
getSequenceNumber() - Method in interface org.mockito.invocation.Invocation
 
getSerializableMode() - Method in interface org.mockito.mock.MockCreationSettings
 
getSourceFile() - Method in interface org.mockito.invocation.Location
Source file of this location
getSpiedInstance() - Method in interface org.mockito.mock.MockCreationSettings
the spied instance - needed for spies.
getStackTraceCleaner(StackTraceCleaner) - Method in interface org.mockito.plugins.StackTraceCleanerProvider
Allows configuring custom StackTraceCleaner.
getStrictness() - Method in interface org.mockito.stubbing.Stubbing
Informs about the Strictness level of this stubbing.
getStubbingFound() - Method in interface org.mockito.listeners.StubbingLookupEvent
 
getStubbingLookupListeners() - Method in interface org.mockito.mock.MockCreationSettings
getStubbings() - Method in interface org.mockito.MockingDetails
Returns stubbings declared on this mock object.
getThrowable() - Method in interface org.mockito.listeners.MethodInvocationReport
 
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
 
getValue() - Method in class org.mockito.ArgumentCaptor
Returns the captured value of the argument.
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 interface org.mockito.mock.MockCreationSettings
given(T) - Method in interface org.mockito.BDDMockito.BDDStubber
given(T) - Static method in class org.mockito.BDDMockito
gt(T) - Static method in class org.mockito.AdditionalMatchers
comparable argument greater than the given value.
gt(byte) - Static method in class org.mockito.AdditionalMatchers
byte argument greater than the given value.
gt(double) - Static method in class org.mockito.AdditionalMatchers
double argument greater than the given value.
gt(float) - Static method in class org.mockito.AdditionalMatchers
float argument greater than the given value.
gt(int) - Static method in class org.mockito.AdditionalMatchers
int argument greater than the given value.
gt(long) - Static method in class org.mockito.AdditionalMatchers
long argument greater than the given value.
gt(short) - Static method in class org.mockito.AdditionalMatchers
short argument greater than the given value.
A B C D E F G H I L M N O P R S T U V W 
Skip navigation links
Mockito 2.28.0 API