A B C D E F G H I L M N O P R S T U V W
All Classes All Packages
All Classes All Packages
All Classes All Packages
G
- 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.
- geq(T) - Static method in class org.mockito.AdditionalMatchers
-
argument greater than or equal the given value.
- get(Field, Object) - Method in interface org.mockito.plugins.MemberAccessor
- getAllStubbings() - Method in interface org.mockito.listeners.StubbingLookupEvent
- getAllValues() - Method in class org.mockito.ArgumentCaptor
-
Returns all captured values.
- 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)
orAdditionalMatchers.aryEq(Object[])
Used internally for the purposes of human-readable invocation printing. - getClassName() - Method in interface org.mockito.exceptions.stacktrace.StackTraceCleaner.StackFrameMetadata
- 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.
- getCount() - Method in interface org.mockito.MockedConstruction.Context
- 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
- getExtraInterfaces() - Method in interface org.mockito.mock.MockCreationSettings
-
the extra interfaces the mock object should implement.
- getFileName() - Method in interface org.mockito.exceptions.stacktrace.StackTraceCleaner.StackFrameMetadata
- 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.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
-
InvocationListener
instances attached to this mock, seeMockSettings.invocationListeners(InvocationListener...)
. - getInvocations() - Method in interface org.mockito.MockingDetails
-
All method invocations on this mock.
- getLineNumber() - Method in interface org.mockito.exceptions.stacktrace.StackTraceCleaner.StackFrameMetadata
- 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.ArgumentsAreDifferent
- 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
- getMethodName() - Method in interface org.mockito.exceptions.stacktrace.StackTraceCleaner.StackFrameMetadata
- getMock() - Method in interface org.mockito.BDDMockito.BDDMyOngoingStubbing
-
See original
OngoingStubbing.getMock()
- 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. - getMockMaker() - Method in interface org.mockito.mock.MockCreationSettings
-
Returns the
MockMaker
which shall be used to create the mock. - getMockName() - Method in interface org.mockito.mock.MockCreationSettings
-
the name of this mock, as printed on verification errors; see
MockSettings.name(java.lang.String)
. - getMocks() - Method in interface org.mockito.plugins.MockMaker.ConstructionMockControl
- 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.InvocationOnMock
-
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.mock.MockCreationSettings
-
Sets strictness level for the mock, e.g.
- 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
-
Returns
StubbingLookupListener
instances attached to this mock viaMockSettings.stubbingLookupListeners(StubbingLookupListener...)
. - getStubbings() - Method in interface org.mockito.MockingDetails
-
Returns stubbings declared on this mock object.
- getThrowable() - Method in interface org.mockito.listeners.MethodInvocationReport
- getType() - Method in interface org.mockito.plugins.MockMaker.ConstructionMockControl
- getType() - Method in interface org.mockito.plugins.MockMaker.StaticMockControl
- 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
-
VerificationStartedListener
instances attached to this mock, seeMockSettings.verificationStartedListeners(VerificationStartedListener...)
- given(T) - Method in interface org.mockito.BDDMockito.BDDStubber
-
See original
Stubber.when(Object)
- given(T) - Static method in class org.mockito.BDDMockito
-
see original
Mockito.when(Object)
- 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.
- gt(T) - Static method in class org.mockito.AdditionalMatchers
-
comparable argument greater than the given value.
All Classes All Packages