- 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
.
- 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.
- getArguments() - Method in interface org.mockito.invocation.InvocationOnMock
-
Returns arguments passed to the method.
- 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
-
- 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
.
- getInstantiator(MockCreationSettings<?>) - Method in interface org.mockito.plugins.InstantiatorProvider
-
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.stubbing.Stubbing
-
Returns the method invocation that is stubbed.
- 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
-
- 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.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.
- getMockName() - Method in interface org.mockito.mock.MockCreationSettings
-
- getMode() - Method in interface org.mockito.verification.VerificationEvent
-
- getOuterClassInstance() - Method in interface org.mockito.mock.MockCreationSettings
-
- getRawArguments() - Method in interface org.mockito.invocation.Invocation
-
- getRawReturnType() - Method in interface org.mockito.invocation.Invocation
-
- getReturnedValue() - Method in interface org.mockito.listeners.MethodInvocationReport
-
- getSequenceNumber() - Method in interface org.mockito.invocation.Invocation
-
- getSerializableMode() - Method in interface org.mockito.mock.MockCreationSettings
-
- 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.
- 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
-
- 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.
- 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.