Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
G
- GenericMaster - Class in org.mockito.internal.util.reflection
- GenericMaster() - Constructor for class org.mockito.internal.util.reflection.GenericMaster
- GenericMetadataSupport - Class in org.mockito.internal.util.reflection
-
This class can retrieve generic meta-data that the compiler stores on classes and accessible members.
- GenericMetadataSupport() - Constructor for class org.mockito.internal.util.reflection.GenericMetadataSupport
- GenericMetadataSupport.BoundedType - Interface in org.mockito.internal.util.reflection
-
Type representing bounds of a type
- GenericMetadataSupport.TypeVarBoundedType - Class in org.mockito.internal.util.reflection
-
Type representing bounds of a type variable, allows to keep all bounds information.
- GenericMetadataSupport.WildCardBoundedType - Class in org.mockito.internal.util.reflection
-
Type representing bounds of a wildcard, allows to keep all bounds information.
- GenericTypeExtractor - Class in org.mockito.internal.util.reflection
-
Attempts to extract generic type of given target base class or target interface
- genericTypeOf(Class<?>, Class<?>, Class<?>) - Static method in class org.mockito.internal.util.reflection.GenericTypeExtractor
-
Extract generic type of root class either from the target base class or from target base interface.
- genericTypeOfMatcher(Class<?>) - Static method in class org.mockito.internal.hamcrest.MatcherGenericTypeExtractor
-
Gets the generic type of given matcher.
- genericTypeToMock - Variable in class org.mockito.internal.creation.settings.CreationSettings
- genericTypeToMock(Type) - Method in class org.mockito.internal.creation.MockSettingsImpl
- genericTypeToMock(Type) - Method in interface org.mockito.MockSettings
-
Specifies the generic type of the mock, preserving the information lost to Java type erasure.
- 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() - Method in interface org.mockito.internal.invocation.mockref.MockReference
- get() - Method in class org.mockito.internal.invocation.mockref.MockStrongReference
- get() - Method in class org.mockito.internal.invocation.mockref.MockWeakReference
- get() - Method in class org.mockito.internal.util.collections.HashCodeAndEqualsMockWrapper
- get() - Method in class org.mockito.internal.util.concurrent.DetachedThreadLocal
- get() - Method in interface org.mockito.internal.util.Supplier
-
Provides an instance.
- get(Field, Object) - Method in class org.mockito.internal.util.reflection.ModuleMemberAccessor
- get(Field, Object) - Method in class org.mockito.internal.util.reflection.ReflectionMemberAccessor
- get(Field, Object) - Method in interface org.mockito.plugins.MemberAccessor
- get(String, Object) - Static method in class org.mockito.internal.creation.bytebuddy.inject.MockMethodDispatcher
- get(Thread) - Method in class org.mockito.internal.util.concurrent.DetachedThreadLocal
- get(K) - Method in class org.mockito.internal.util.concurrent.WeakConcurrentMap
- get(K) - Method in class org.mockito.internal.util.concurrent.WeakConcurrentMap.WithInlinedExpunction
- getActualCount() - Method in class org.mockito.internal.reporting.Discrepancy
- getActuals() - Method in class org.mockito.internal.reporting.SmartPrinter
- getActualTypeArgumentFor(TypeVariable<?>) - Method in class org.mockito.internal.util.reflection.GenericMetadataSupport
- getAll() - Method in class org.mockito.internal.verification.DefaultRegisteredInvocations
- getAll() - Method in interface org.mockito.internal.verification.RegisteredInvocations
- getAll() - Method in class org.mockito.internal.verification.SingleRegisteredInvocation
- getAllInvocations() - Method in interface org.mockito.internal.verification.api.VerificationData
-
All invocations recorded on the mock object that is being verified.
- getAllInvocations() - Method in interface org.mockito.internal.verification.api.VerificationDataInOrder
- getAllInvocations() - Method in class org.mockito.internal.verification.api.VerificationDataInOrderImpl
- getAllInvocations() - Method in class org.mockito.internal.verification.VerificationDataImpl
- getAllLocations(List<Invocation>) - Static method in class org.mockito.internal.invocation.InvocationsFinder
- getAllStubbings() - Method in interface org.mockito.listeners.StubbingLookupEvent
- getAllValues() - Method in class org.mockito.ArgumentCaptor
-
Returns all captured values.
- getAllValues() - Method in class org.mockito.internal.matchers.CapturingMatcher
- getAnnotationEngine() - Static method in class org.mockito.internal.configuration.plugins.Plugins
-
Returns the annotation engine available for the current runtime.
- getArgument(int) - Method in class org.mockito.internal.invocation.InterceptedInvocation
- getArgument(int) - Method in interface org.mockito.invocation.InvocationOnMock
-
Returns casted argument at the given index.
- getArgument(int, Class<T>) - Method in class org.mockito.internal.invocation.InterceptedInvocation
- getArgument(int, Class<T>) - Method in interface org.mockito.invocation.InvocationOnMock
-
Returns casted argument at the given index.
- getArgumentMatcherStorage() - Method in interface org.mockito.internal.progress.MockingProgress
- getArgumentMatcherStorage() - Method in class org.mockito.internal.progress.MockingProgressImpl
- getArguments() - Method in class org.mockito.internal.invocation.InterceptedInvocation
- getArguments() - Method in interface org.mockito.invocation.InvocationOnMock
-
Returns arguments passed to the method.
- getArgumentsAsMatchers() - Method in class org.mockito.internal.invocation.InterceptedInvocation
- 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. - getArgumentsBlock(List<ArgumentMatcher>, PrintSettings) - Method in class org.mockito.internal.matchers.text.MatchersPrinter
- getArgumentsLine(List<ArgumentMatcher>, PrintSettings) - Method in class org.mockito.internal.matchers.text.MatchersPrinter
- getBackingMap() - Method in class org.mockito.internal.util.concurrent.DetachedThreadLocal
- getClassName() - Method in interface org.mockito.exceptions.stacktrace.StackTraceCleaner.StackFrameMetadata
- getCleanerThread() - Method in class org.mockito.internal.util.concurrent.WeakConcurrentMap
- getCleanerThread() - Method in class org.mockito.internal.util.concurrent.WeakConcurrentSet
- getConstructorArgs() - Method in class org.mockito.internal.creation.MockSettingsImpl
- getConstructorArgs() - Method in class org.mockito.internal.creation.settings.CreationSettings
- 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 class org.mockito.internal.verification.VerificationEventImpl
- 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 un-stubbed invocations
- getDefaultAnswer() - Method in class org.mockito.internal.configuration.GlobalConfiguration
- getDefaultAnswer() - Method in class org.mockito.internal.creation.MockSettingsImpl
- getDefaultAnswer() - Method in class org.mockito.internal.creation.settings.CreationSettings
- 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 class org.mockito.internal.configuration.plugins.DefaultMockitoPlugins
- getDefaultPlugin(Class<T>) - Method in interface org.mockito.plugins.MockitoPlugins
-
Returns the default plugin implementation used by Mockito.
- getDefaultPluginClass(String) - Static method in class org.mockito.internal.configuration.plugins.DefaultMockitoPlugins
- getDefaultVerificationStrategy() - Static method in class org.mockito.internal.progress.MockingProgressImpl
- getDelegate() - Method in class org.mockito.internal.verification.VerificationOverTimeImpl
- getDescription() - Method in class org.mockito.internal.runners.DefaultInternalRunner
- getDescription() - Method in interface org.mockito.internal.runners.InternalRunner
- getDescription() - Method in class org.mockito.internal.runners.StrictRunner
- getDescription() - Method in class org.mockito.junit.MockitoJUnitRunner
- getDoNotMockEnforcer() - Static method in class org.mockito.internal.configuration.plugins.Plugins
-
Returns the
DoNotMock
enforcer available for the current runtime. - getExceptionTypes() - Method in class org.mockito.internal.creation.DelegatingMethod
- getExceptionTypes() - Method in interface org.mockito.internal.invocation.MockitoMethod
- getExceptionTypes() - Method in class org.mockito.internal.invocation.SerializableMethod
- getExtraInterfaces() - Method in class org.mockito.internal.creation.MockSettingsImpl
- getExtraInterfaces() - Method in class org.mockito.internal.creation.settings.CreationSettings
- getExtraInterfaces() - Method in interface org.mockito.mock.MockCreationSettings
-
the extra interfaces the mock object should implement.
- getFailure() - Method in class org.mockito.internal.junit.DefaultTestFinishedEvent
- getFailure() - Method in interface org.mockito.internal.junit.TestFinishedEvent
- getFileName() - Method in interface org.mockito.exceptions.stacktrace.StackTraceCleaner.StackFrameMetadata
- getGenericType(Field) - Method in class org.mockito.internal.util.reflection.GenericMaster
-
Finds the generic type (parametrized type) of the field.
- getGenericType(Parameter) - Method in class org.mockito.internal.util.reflection.GenericMaster
-
Resolves the type (parametrized type) of the parameter.
- getGenericTypeToMock() - Method in class org.mockito.internal.creation.settings.CreationSettings
- getGenericTypeToMock() - Method in interface org.mockito.mock.MockCreationSettings
-
The generic type of the mock, if any.
- getHandler(Object) - Method in class org.mockito.internal.creation.bytebuddy.ByteBuddyMockMaker
- getHandler(Object) - Method in class org.mockito.internal.creation.bytebuddy.InlineByteBuddyMockMaker
- getHandler(Object) - Method in class org.mockito.internal.creation.bytebuddy.SubclassByteBuddyMockMaker
- getHandler(Object) - Method in class org.mockito.internal.creation.proxy.ProxyMockMaker
- getHandler(Object) - Method in interface org.mockito.plugins.MockMaker
-
Returns the handler for the
mock
. - getInlineMockMaker() - Method in class org.mockito.internal.configuration.plugins.DefaultMockitoPlugins
- getInlineMockMaker() - Method in interface org.mockito.plugins.MockitoPlugins
-
Deprecated, for removal: This API element is subject to removal in a future version.
- getInstantiator(MockCreationSettings<?>) - Method in class org.mockito.internal.creation.instance.DefaultInstantiatorProvider
- getInstantiator(MockCreationSettings<?>) - Method in interface org.mockito.plugins.InstantiatorProvider2
-
Returns an instantiator, used to create new class instances.
- getInstantiatorProvider() - Static method in class org.mockito.internal.configuration.plugins.Plugins
-
Returns the instantiator provider available for the current runtime.
- getInvocation() - Method in class org.mockito.internal.handler.NotifiedMethodInvocationReport
- getInvocation() - Method in class org.mockito.internal.invocation.InvocationMatcher
- 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 class org.mockito.internal.handler.MockHandlerImpl
- getInvocationContainer() - Method in interface org.mockito.invocation.MockHandler
-
Returns the object that holds all invocations on the mock object, including stubbings with declared answers.
- getInvocationContainer(Object) - Static method in class org.mockito.internal.util.MockUtil
- getInvocationFactory() - Method in class org.mockito.internal.framework.DefaultMockitoFramework
- getInvocationFactory() - Method in interface org.mockito.MockitoFramework
-
Returns a factory that can create instances of
Invocation
. - getInvocationListeners() - Method in class org.mockito.internal.creation.settings.CreationSettings
- getInvocationListeners() - Method in interface org.mockito.mock.MockCreationSettings
-
InvocationListener
instances attached to this mock, seeMockSettings.invocationListeners(InvocationListener...)
. - getInvocations() - Method in class org.mockito.internal.stubbing.InvocationContainerImpl
- getInvocations() - Method in class org.mockito.internal.util.DefaultMockingDetails
- getInvocations() - Method in interface org.mockito.MockingDetails
-
All method invocations on this mock.
- getJavaMethod() - Method in class org.mockito.internal.creation.DelegatingMethod
- getJavaMethod() - Method in interface org.mockito.internal.invocation.MockitoMethod
- getJavaMethod() - Method in class org.mockito.internal.invocation.SerializableMethod
- getLastInvocation() - Method in class org.mockito.internal.MockitoCore
-
For testing purposes only.
- getLastLocation(List<Invocation>) - Static method in class org.mockito.internal.invocation.InvocationsFinder
- getLastValue() - Method in class org.mockito.internal.matchers.CapturingMatcher
- getLineNumber() - Method in interface org.mockito.exceptions.stacktrace.StackTraceCleaner.StackFrameMetadata
- getLocation() - Method in class org.mockito.internal.debugging.Localized
- getLocation() - Method in class org.mockito.internal.invocation.InterceptedInvocation
- getLocation() - Method in class org.mockito.internal.invocation.InvocationMatcher
- getLocation() - Method in class org.mockito.internal.matchers.LocalizedMatcher
- 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 class org.mockito.internal.handler.NotifiedMethodInvocationReport
- getLocationOfStubbing() - Method in interface org.mockito.listeners.MethodInvocationReport
- getMatcher() - Method in class org.mockito.internal.matchers.LocalizedMatcher
- getMatcherApplicationStrategyFor(Invocation, List<? extends ArgumentMatcher<?>>) - Static method in class org.mockito.internal.invocation.MatcherApplicationStrategy
-
Returns the
MatcherApplicationStrategy
that must be used to capture the arguments of the given invocation using the given matchers. - getMatchers() - Method in class org.mockito.internal.invocation.InvocationMatcher
- getMatchers() - Method in interface org.mockito.invocation.MatchableInvocation
-
The argument matchers of this invocation.
- getMemberAccessor() - Static method in class org.mockito.internal.configuration.plugins.Plugins
-
Returns the implementation of the member accessor available for the current runtime.
- getMessage() - Method in exception class org.mockito.exceptions.verification.ArgumentsAreDifferent
- getMessage() - Method in exception class org.mockito.exceptions.verification.junit.ArgumentsAreDifferent
- getMessage() - Method in exception class org.mockito.exceptions.verification.opentest4j.ArgumentsAreDifferent
- getMethod() - Method in class org.mockito.internal.invocation.InterceptedInvocation
- getMethod() - Method in class org.mockito.internal.invocation.InvocationMatcher
- getMethod() - Method in class org.mockito.internal.stubbing.answers.InvocationInfo
- getMethod() - Method in interface org.mockito.invocation.InvocationOnMock
-
returns the method
- getMethodName() - Method in interface org.mockito.exceptions.stacktrace.StackTraceCleaner.StackFrameMetadata
- getMethodName() - Method in class org.mockito.internal.stubbing.answers.InvocationInfo
- getMock() - Method in interface org.mockito.BDDMockito.BDDMyOngoingStubbing
-
See original
OngoingStubbing.getMock()
- getMock() - Method in class org.mockito.internal.invocation.InterceptedInvocation
- getMock() - Method in class org.mockito.internal.stubbing.BaseStubbing
- getMock() - Method in class org.mockito.internal.util.DefaultMockingDetails
- getMock() - Method in class org.mockito.internal.verification.MockAwareVerificationMode
- getMock() - Method in class org.mockito.internal.verification.VerificationEventImpl
- 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 class org.mockito.internal.util.DefaultMockingDetails
- 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 class org.mockito.internal.creation.bytebuddy.MockMethodInterceptor
- getMockHandler() - Method in class org.mockito.internal.util.DefaultMockingDetails
- getMockHandler() - Method in interface org.mockito.MockingDetails
-
Returns the
MockHandler
associated with this mock object. - getMockHandler(Object) - Static method in class org.mockito.internal.util.MockUtil
- getMockitoInterceptor() - Method in interface org.mockito.internal.creation.bytebuddy.MockAccess
- getMockitoLogger() - Static method in class org.mockito.internal.configuration.plugins.Plugins
-
Returns the logger available for the current runtime.
- getMockitoMethod() - Method in class org.mockito.internal.invocation.InterceptedInvocation
-
Deprecated.Not used by Mockito but by mockito-scala
- getMockMaker() - Static method in class org.mockito.internal.configuration.plugins.Plugins
-
Returns the implementation of the mock maker available for the current runtime.
- getMockMaker() - Method in class org.mockito.internal.creation.settings.CreationSettings
- getMockMaker() - Method in interface org.mockito.mock.MockCreationSettings
-
Returns the
MockMaker
which shall be used to create the mock. - getMockMaker(String) - Method in class org.mockito.internal.configuration.plugins.DefaultMockitoPlugins
- getMockMaker(String) - Static method in class org.mockito.internal.util.MockUtil
- getMockMaker(String) - Method in interface org.mockito.plugins.MockitoPlugins
-
Returns
MockMaker
instance used by Mockito with the passed namemockMaker
. - getMockName() - Method in class org.mockito.internal.creation.MockSettingsImpl
- getMockName() - Method in class org.mockito.internal.creation.settings.CreationSettings
- getMockName() - Method in interface org.mockito.mock.MockCreationSettings
-
the name of this mock, as printed on verification errors; see
MockSettings.name(java.lang.String)
. - getMockName(Object) - Static method in class org.mockito.internal.util.MockUtil
- getMockRef() - Method in class org.mockito.internal.invocation.InterceptedInvocation
-
Deprecated.Not used by Mockito but by mockito-scala
- getMockResolvers() - Static method in class org.mockito.internal.configuration.plugins.Plugins
-
Returns a list of available mock resolvers if any.
- getMocks() - Method in interface org.mockito.plugins.MockMaker.ConstructionMockControl
- getMockSettings() - Method in class org.mockito.internal.handler.MockHandlerImpl
- 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
- getMockSettings(Object) - Static method in class org.mockito.internal.util.MockUtil
- getMocksToBeVerifiedInOrder() - Method in class org.mockito.internal.InOrderImpl
- getMockType() - Method in class org.mockito.internal.creation.settings.CreationSettings
- getMockType() - Method in interface org.mockito.mock.MockCreationSettings
-
Returns the
MockType
for the mock being created. - getMode() - Method in class org.mockito.internal.verification.VerificationEventImpl
- getMode() - Method in interface org.mockito.verification.VerificationEvent
- getName() - Method in class org.mockito.internal.creation.DelegatingMethod
- getName() - Method in class org.mockito.internal.creation.settings.CreationSettings
- getName() - Method in interface org.mockito.internal.invocation.MockitoMethod
- getName() - Method in class org.mockito.internal.invocation.SerializableMethod
- getName() - Method in class org.mockito.internal.matchers.CompareEqual
- getName() - Method in class org.mockito.internal.matchers.CompareTo
- getName() - Method in class org.mockito.internal.matchers.GreaterOrEqual
- getName() - Method in class org.mockito.internal.matchers.GreaterThan
- getName() - Method in class org.mockito.internal.matchers.LessOrEqual
- getName() - Method in class org.mockito.internal.matchers.LessThan
- getNotMatchingArgsIndexes(List<ArgumentMatcher>, Object[]) - Static method in class org.mockito.internal.verification.argumentmatching.ArgumentMatchingTool
-
Returns indexes of arguments not matching the provided matchers.
- getNotMatchingArgsWithSameName(List<ArgumentMatcher>, Object[]) - Static method in class org.mockito.internal.verification.argumentmatching.ArgumentMatchingTool
-
Suspiciously not matching arguments are those that don't match, and the classes have same simple name.
- getObject() - Method in class org.mockito.internal.debugging.Localized
- getOrderingContext() - Method in interface org.mockito.internal.verification.api.VerificationDataInOrder
- getOrderingContext() - Method in class org.mockito.internal.verification.api.VerificationDataInOrderImpl
- getOuterClassInstance() - Method in class org.mockito.internal.creation.MockSettingsImpl
- getOuterClassInstance() - Method in class org.mockito.internal.creation.settings.CreationSettings
- getOuterClassInstance() - Method in interface org.mockito.mock.MockCreationSettings
-
Used when mocking non-static inner classes in conjunction with
MockCreationSettings.isUsingConstructor()
- getParameterTypes() - Method in class org.mockito.internal.creation.DelegatingMethod
- getParameterTypes() - Method in interface org.mockito.internal.invocation.MockitoMethod
- getParameterTypes() - Method in class org.mockito.internal.invocation.SerializableMethod
- getPlugins() - Static method in class org.mockito.internal.configuration.plugins.Plugins
- getPlugins() - Method in class org.mockito.internal.framework.DefaultMockitoFramework
- getPlugins() - Method in interface org.mockito.MockitoFramework
-
Returns an object that has access to Mockito plugins.
- getPluralizedActualCount() - Method in class org.mockito.internal.reporting.Discrepancy
- getPluralizedWantedCount() - Method in class org.mockito.internal.reporting.Discrepancy
- getPluralizedWantedCount() - Method in class org.mockito.internal.verification.checkers.AtLeastDiscrepancy
- getPollingPeriodMillis() - Method in class org.mockito.internal.verification.VerificationOverTimeImpl
- getRawArguments() - Method in class org.mockito.internal.invocation.InterceptedInvocation
- getRawArguments() - Method in interface org.mockito.invocation.InvocationOnMock
-
Returns unprocessed arguments whereas
InvocationOnMock.getArguments()
returns arguments already processed (e.g. - getRawReturnType() - Method in class org.mockito.internal.invocation.InterceptedInvocation
- getRawReturnType() - Method in interface org.mockito.invocation.Invocation
-
Returns unprocessed arguments whereas
InvocationOnMock.getArguments()
returns arguments already processed (e.g. - getRealMethod() - Method in class org.mockito.internal.invocation.InterceptedInvocation
-
Deprecated.Not used by Mockito but by mockito-scala
- getRegisteredInvocations() - Method in class org.mockito.internal.stubbing.OngoingStubbingImpl
- getReturnedValue() - Method in class org.mockito.internal.handler.NotifiedMethodInvocationReport
- getReturnedValue() - Method in interface org.mockito.listeners.MethodInvocationReport
- getReturnType() - Method in class org.mockito.internal.creation.DelegatingMethod
- getReturnType() - Method in interface org.mockito.internal.invocation.MockitoMethod
- getReturnType() - Method in class org.mockito.internal.invocation.SerializableMethod
- getSequenceNumber() - Method in class org.mockito.internal.invocation.InterceptedInvocation
- getSequenceNumber() - Method in interface org.mockito.invocation.Invocation
- getSerializableMode() - Method in class org.mockito.internal.creation.settings.CreationSettings
- getSerializableMode() - Method in interface org.mockito.mock.MockCreationSettings
- getSerializationSupport() - Method in class org.mockito.internal.creation.bytebuddy.MockMethodInterceptor
- getSourceFile() - Method in interface org.mockito.invocation.Location
-
Source file of this location
- getSpiedInstance() - Method in class org.mockito.internal.creation.MockSettingsImpl
- getSpiedInstance() - Method in class org.mockito.internal.creation.settings.CreationSettings
- getSpiedInstance() - Method in interface org.mockito.mock.MockCreationSettings
-
the spied instance - needed for spies.
- getStackTraceCleaner(StackTraceCleaner) - Method in class org.mockito.internal.exceptions.stacktrace.DefaultStackTraceCleanerProvider
- getStackTraceCleaner(StackTraceCleaner) - Method in interface org.mockito.plugins.StackTraceCleanerProvider
-
Allows configuring custom StackTraceCleaner.
- getStackTraceCleanerProvider() - Static method in class org.mockito.internal.configuration.plugins.Plugins
-
The implementation of the stack trace cleaner
- getStatic(String, Class<?>) - Static method in class org.mockito.internal.creation.bytebuddy.inject.MockMethodDispatcher
- getStrictness() - Method in class org.mockito.internal.creation.settings.CreationSettings
- getStrictness() - Method in class org.mockito.internal.stubbing.StubbedInvocationMatcher
- 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
- getStubbingInfo() - Method in class org.mockito.internal.debugging.LoggingListener
- getStubbingLookupListeners() - Method in class org.mockito.internal.creation.settings.CreationSettings
- getStubbingLookupListeners() - Method in interface org.mockito.mock.MockCreationSettings
-
Returns
StubbingLookupListener
instances attached to this mock viaMockSettings.stubbingLookupListeners(StubbingLookupListener...)
. - getStubbings() - Method in class org.mockito.internal.util.DefaultMockingDetails
- getStubbings() - Method in interface org.mockito.MockingDetails
-
Returns stubbings declared on this mock object.
- getStubbingsAscending() - Method in class org.mockito.internal.stubbing.InvocationContainerImpl
-
Stubbings in ascending order, most recent last
- getSuspiciouslyNotMatchingArgsIndexes(List<ArgumentMatcher>, Object[]) - Static method in class org.mockito.internal.verification.argumentmatching.ArgumentMatchingTool
-
Suspiciously not matching arguments are those that don't match, the toString() representation is the same but types are different.
- getTarget() - Method in interface org.mockito.internal.verification.api.VerificationData
-
The target or wanted invocation.
- getTarget() - Method in class org.mockito.internal.verification.VerificationDataImpl
- getTestName() - Method in class org.mockito.internal.junit.DefaultTestFinishedEvent
- getTestName() - Method in interface org.mockito.internal.junit.TestFinishedEvent
- getThrowable() - Method in class org.mockito.internal.handler.NotifiedMethodInvocationReport
- getThrowable() - Method in class org.mockito.internal.stubbing.answers.AbstractThrowsException
- getThrowable() - Method in class org.mockito.internal.stubbing.answers.ThrowsException
- getThrowable() - Method in class org.mockito.internal.stubbing.answers.ThrowsExceptionForClassType
- getThrowable() - Method in interface org.mockito.listeners.MethodInvocationReport
- getTimer() - Method in class org.mockito.internal.verification.VerificationOverTimeImpl
- getType() - Method in interface org.mockito.plugins.MockMaker.ConstructionMockControl
- getType() - Method in interface org.mockito.plugins.MockMaker.StaticMockControl
- getTypeToMock() - Method in class org.mockito.internal.creation.MockSettingsImpl
- getTypeToMock() - Method in class org.mockito.internal.creation.settings.CreationSettings
- getTypeToMock() - Method in interface org.mockito.mock.MockCreationSettings
-
Mocked type.
- getUnfilteredStackTrace() - Method in exception class org.mockito.exceptions.base.MockitoAssertionError
- getUnfilteredStackTrace() - Method in exception class org.mockito.exceptions.base.MockitoException
- getUnfilteredStackTrace() - Method in exception class org.mockito.exceptions.base.MockitoSerializationIssue
- getUnfilteredStackTrace() - Method in exception class org.mockito.exceptions.verification.junit.ArgumentsAreDifferent
- getUnfilteredStackTrace() - Method in exception class org.mockito.exceptions.verification.opentest4j.ArgumentsAreDifferent
- getUnusedStubbings(Iterable<Object>) - Method in class org.mockito.internal.junit.UnusedStubbingsFinder
-
Gets all unused stubbings for given set of mock objects, in order.
- getUnusedStubbingsByLocation(Iterable<Object>) - Method in class org.mockito.internal.junit.UnusedStubbingsFinder
-
Gets unused stubbings per location.
- getValue() - Method in class org.mockito.ArgumentCaptor
-
Returns the captured value of the argument.
- getVerificationError() - Method in class org.mockito.internal.verification.VerificationEventImpl
- 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 class org.mockito.internal.creation.settings.CreationSettings
- getVerificationStartedListeners() - Method in interface org.mockito.mock.MockCreationSettings
-
VerificationStartedListener
instances attached to this mock, seeMockSettings.verificationStartedListeners(VerificationStartedListener...)
- getWanted() - Method in interface org.mockito.internal.matchers.ContainsExtraTypeInfo
- getWanted() - Method in class org.mockito.internal.matchers.Equals
- getWanted() - Method in class org.mockito.internal.reporting.SmartPrinter
- getWanted() - Method in interface org.mockito.internal.verification.api.VerificationDataInOrder
- getWanted() - Method in class org.mockito.internal.verification.api.VerificationDataInOrderImpl
- getWantedCount() - Method in class org.mockito.internal.reporting.Discrepancy
- 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)
- GlobalConfiguration - Class in org.mockito.internal.configuration
-
Thread-safe wrapper on user-defined org.mockito.configuration.MockitoConfiguration implementation
- GlobalConfiguration() - Constructor for class org.mockito.internal.configuration.GlobalConfiguration
- GloballyConfiguredAnswer - Class in org.mockito.internal.stubbing.defaultanswers
-
Globally configured Answer.
- GloballyConfiguredAnswer() - Constructor for class org.mockito.internal.stubbing.defaultanswers.GloballyConfiguredAnswer
- GreaterOrEqual<T> - Class in org.mockito.internal.matchers
- GreaterOrEqual(T) - Constructor for class org.mockito.internal.matchers.GreaterOrEqual
- GreaterThan<T> - Class in org.mockito.internal.matchers
- GreaterThan(T) - Constructor for class org.mockito.internal.matchers.GreaterThan
- 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 and Interfaces|All Packages|Constant Field Values|Serialized Form
MockitoPlugins.getMockMaker(String)
withMockMakers.INLINE
instead.