- 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.TypeVarBoundedType(TypeVariable) - Constructor for class org.mockito.internal.util.reflection.GenericMetadataSupport.TypeVarBoundedType
-
- GenericMetadataSupport.WildCardBoundedType - Class in org.mockito.internal.util.reflection
-
Type representing bounds of a wildcard, allows to keep all bounds information.
- GenericMetadataSupport.WildCardBoundedType(WildcardType) - Constructor for class org.mockito.internal.util.reflection.GenericMetadataSupport.WildCardBoundedType
-
- geq(Comparable<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.
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
.
- get() - Method in enum org.mockito.internal.stubbing.defaultanswers.Answers
-
Deprecated.
- get() - Method in class org.mockito.internal.util.collections.HashCodeAndEqualsMockWrapper
-
- getActual() - Method in class org.mockito.internal.reporting.SmartPrinter
-
- getActualCount() - Method in class org.mockito.internal.reporting.Discrepancy
-
- getActualMatcher() - Method in class org.mockito.internal.matchers.LocalizedMatcher
-
- getActualMatcher() - Method in interface org.mockito.internal.matchers.MatcherDecorator
-
- 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
-
- 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
-
- getAllValues() - Method in class org.mockito.ArgumentCaptor
-
Returns all captured values.
- getAllValues() - Method in class org.mockito.internal.matchers.CapturingMatcher
-
- getAllVarargs() - Method in class org.mockito.internal.matchers.VarargCapturingMatcher
-
- getAnnotationEngine() - Method in class org.mockito.configuration.DefaultMockitoConfiguration
-
- getAnnotationEngine() - Method in interface org.mockito.configuration.IMockitoConfiguration
-
Configures annotations for mocks
- getAnnotationEngine() - Method in class org.mockito.internal.configuration.GlobalConfiguration
-
- getArgumentAt(int, Class<T>) - Method in class org.mockito.internal.invocation.InvocationImpl
-
- getArgumentAt(int, Class<T>) - Method in interface org.mockito.invocation.InvocationOnMock
-
Returns casted argument using position
- getArgumentMatcherStorage() - Method in interface org.mockito.internal.progress.MockingProgress
-
- getArgumentMatcherStorage() - Method in class org.mockito.internal.progress.MockingProgressImpl
-
- getArgumentMatcherStorage() - Method in class org.mockito.internal.progress.ThreadSafeMockingProgress
-
- getArguments() - Method in class org.mockito.internal.invocation.InvocationImpl
-
- getArguments() - Method in interface org.mockito.invocation.InvocationOnMock
-
returns arguments passed to the method
- getArgumentsBlock(List<Matcher>, PrintSettings) - Method in class org.mockito.internal.matchers.MatchersPrinter
-
- getArgumentsLine(List<Matcher>, PrintSettings) - Method in class org.mockito.internal.matchers.MatchersPrinter
-
- 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 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
-
- getDescription() - Method in class org.mockito.internal.runners.JUnit44RunnerImpl
-
- getDescription() - Method in class org.mockito.internal.runners.JUnit45AndHigherRunnerImpl
-
- getDescription() - Method in interface org.mockito.internal.runners.RunnerImpl
-
- getDescription() - Method in class org.mockito.runners.ConsoleSpammingMockitoJUnitRunner
-
- getDescription() - Method in class org.mockito.runners.MockitoJUnitRunner
-
- getDescription() - Method in class org.mockito.runners.VerboseMockitoJUnitRunner
-
- 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 class org.mockito.internal.util.DefaultMockingDetails
-
- getExtraInterfaces() - Method in interface org.mockito.mock.MockCreationSettings
-
the extra interfaces the mock object should implement.
- getExtraInterfaces() - Method in interface org.mockito.MockingDetails
-
Returns the extra-interfaces of the mock.
- getGenericType(Field) - Method in class org.mockito.internal.util.reflection.GenericMaster
-
Finds the generic type (parametrized type) of the field.
- getHandler(Object) - Method in class org.mockito.internal.creation.bytebuddy.ByteBuddyMockMaker
-
- getHandler(Object) - Method in interface org.mockito.plugins.MockMaker
-
Returns the handler for the mock
.
- getInstantiator(MockCreationSettings) - Method in class org.mockito.internal.creation.instance.InstantiatorProvider
-
- getInternalState(Object, String) - Static method in class org.mockito.internal.util.reflection.Whitebox
-
- getInvocation() - Method in class org.mockito.internal.invocation.InvocationMatcher
-
- getInvocation() - Method in class org.mockito.internal.listeners.NotifiedMethodInvocationReport
-
- getInvocation() - Method in interface org.mockito.listeners.MethodInvocationReport
-
The return type is deprecated, please assign the return value from this method
to the
DescribedInvocation
type.
- getInvocationContainer() - Method in interface org.mockito.internal.InternalMockHandler
-
- getInvocationForStubbing() - Method in class org.mockito.internal.stubbing.InvocationContainerImpl
-
- getInvocationListeners() - Method in class org.mockito.internal.creation.MockSettingsImpl
-
- getInvocationListeners() - Method in class org.mockito.internal.creation.settings.CreationSettings
-
- getInvocationListeners() - Method in interface org.mockito.mock.MockCreationSettings
-
- getInvocations() - Method in interface org.mockito.internal.stubbing.InvocationContainer
-
- 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
-
Provides a collection of methods indicating the invocations of the object
- 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>) - Method in class org.mockito.internal.invocation.InvocationsFinder
-
- getLastValue() - Method in class org.mockito.internal.matchers.CapturingMatcher
-
- getLastVarargs() - Method in class org.mockito.internal.matchers.VarargCapturingMatcher
-
- getLocation() - Method in interface org.mockito.exceptions.PrintableInvocation
-
Deprecated.
- getLocation() - Method in class org.mockito.internal.debugging.Localized
-
- getLocation() - Method in class org.mockito.internal.invocation.InvocationImpl
-
- 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.listeners.NotifiedMethodInvocationReport
-
- getLocationOfStubbing() - Method in interface org.mockito.listeners.MethodInvocationReport
-
- getLoggedInfo() - Method in class org.mockito.internal.util.SimpleMockitoLogger
-
- getLogger() - Method in class org.mockito.internal.debugging.LoggingListener
-
- getMatchers() - Method in class org.mockito.internal.invocation.InvocationMatcher
-
- getMessage() - Method in error org.mockito.exceptions.verification.junit.ArgumentsAreDifferent
-
- getMethod() - Method in class org.mockito.internal.invocation.InvocationImpl
-
- getMethod() - Method in class org.mockito.internal.invocation.InvocationMatcher
-
- getMethod() - Method in class org.mockito.internal.stubbing.answers.MethodInfo
-
- getMethod() - Method in interface org.mockito.invocation.InvocationOnMock
-
returns the method
- getMethodName() - Method in class org.mockito.internal.stubbing.answers.MethodInfo
-
- getMock() - Method in interface org.mockito.BDDMockito.BDDMyOngoingStubbing
-
- getMock() - Method in class org.mockito.BDDMockito.BDDOngoingStubbingImpl
-
Deprecated.
- getMock() - Method in class org.mockito.internal.invocation.InvocationImpl
-
- getMock() - Method in class org.mockito.internal.stubbing.ConsecutiveStubbing
-
- getMock() - Method in class org.mockito.internal.stubbing.OngoingStubbingImpl
-
- getMock() - Method in class org.mockito.internal.verification.MockAwareVerificationMode
-
- 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.
- getMockedType() - Method in class org.mockito.internal.util.DefaultMockingDetails
-
- getMockedType() - Method in interface org.mockito.MockingDetails
-
Returns the type that is mocked.
- getMockHandler() - Method in class org.mockito.internal.creation.bytebuddy.MockMethodInterceptor
-
- getMockHandler(T) - Method in class org.mockito.internal.util.MockUtil
-
- getMockitoInterceptor() - Method in interface org.mockito.internal.creation.bytebuddy.MockMethodInterceptor.MockAccess
-
- getMockMaker() - Static method in class org.mockito.internal.configuration.plugins.Plugins
-
Returns the implementation of the mock maker available for the current runtime.
- getMockName() - Method in class org.mockito.internal.creation.MockSettingsImpl
-
- getMockName() - Method in class org.mockito.internal.creation.settings.CreationSettings
-
- getMockName(Object) - Method in class org.mockito.internal.util.MockUtil
-
- getMockName() - Method in interface org.mockito.mock.MockCreationSettings
-
- getMockSettings() - Method in interface org.mockito.internal.InternalMockHandler
-
- getMockSettings(Object) - Method in class org.mockito.internal.util.MockUtil
-
- getMocksToBeVerifiedInOrder() - Method in class org.mockito.internal.InOrderImpl
-
- 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
-
- 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
-
- 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
-
- 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
-
- getRawArguments() - Method in class org.mockito.internal.invocation.InvocationImpl
-
- getRawArguments() - Method in interface org.mockito.invocation.Invocation
-
- getRawReturnType() - Method in class org.mockito.internal.invocation.InvocationImpl
-
- getRawReturnType() - Method in interface org.mockito.invocation.Invocation
-
- getRegisteredInvocations() - Method in class org.mockito.internal.stubbing.OngoingStubbingImpl
-
- getReturnedValue() - Method in class org.mockito.internal.listeners.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
-
- getReturnType() - Method in class org.mockito.internal.stubbing.answers.Returns
-
- getReturnValues() - Method in class org.mockito.configuration.DefaultMockitoConfiguration
-
Deprecated.
- getReturnValues() - Method in interface org.mockito.configuration.IMockitoConfiguration
-
Deprecated.
Please use IMockitoConfiguration.getDefaultAnswer()
Steps:
1. Leave the implementation of getReturnValues() method empty - it's not going to be used anyway.
2. Implement getDefaultAnswer() instead.
In rare cases your code might not compile with recent deprecation & changes.
Very sorry for inconvenience but it had to be done in order to keep framework consistent.
See javadoc ReturnValues
for info why this method was deprecated
Allows configuring the default return values of unstubbed invocations
See javadoc for IMockitoConfiguration
- getReturnValues() - Method in class org.mockito.internal.configuration.GlobalConfiguration
-
- getSequenceNumber() - Method in class org.mockito.internal.invocation.InvocationImpl
-
- 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
-
- 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.
- getStackTrace() - Method in exception org.mockito.exceptions.base.MockitoSerializationIssue
-
- 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
- getStubbedInvocations() - Method in interface org.mockito.internal.stubbing.InvocationContainer
-
- getStubbedInvocations() - Method in class org.mockito.internal.stubbing.InvocationContainerImpl
-
- getSuspiciouslyNotMatchingArgsIndexes(List<Matcher>, Object[]) - 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.
- getThrowable() - Method in class org.mockito.internal.listeners.NotifiedMethodInvocationReport
-
- getThrowable() - Method in class org.mockito.internal.stubbing.answers.ThrowsException
-
- getThrowable() - Method in interface org.mockito.listeners.MethodInvocationReport
-
- getThrowableClass() - Method in class org.mockito.internal.stubbing.answers.ThrowsExceptionClass
-
- getTypedDescription() - Method in interface org.mockito.internal.matchers.ContainsTypedDescription
-
- getTypedDescription() - Method in class org.mockito.internal.matchers.Equals
-
- getTypedDescription() - Method in class org.mockito.internal.matchers.LocalizedMatcher
-
- 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 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.
- getValue() - Method in interface org.mockito.internal.creation.bytebuddy.MockMethodInterceptor.DispatcherDefaultingToRealMethod.FieldGetter
-
- 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.VerificationData
-
- getWanted() - Method in interface org.mockito.internal.verification.api.VerificationDataInOrder
-
- getWanted() - Method in class org.mockito.internal.verification.api.VerificationDataInOrderImpl
-
- getWanted() - Method in class org.mockito.internal.verification.VerificationDataImpl
-
- getWantedCount() - Method in class org.mockito.internal.reporting.Discrepancy
-
- getWarnings() - Method in class org.mockito.internal.debugging.WarningsCollector
-
- given(T) - Method in interface org.mockito.BDDMockito.BDDStubber
-
- given(T) - Method in class org.mockito.BDDMockito.BDDStubberImpl
-
Deprecated.
- given(T) - Static method in class org.mockito.BDDMockito
-
- 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 extends Comparable<T>> - Class in org.mockito.internal.matchers
-
- GreaterOrEqual(Comparable<T>) - Constructor for class org.mockito.internal.matchers.GreaterOrEqual
-
- GreaterThan<T extends Comparable<T>> - Class in org.mockito.internal.matchers
-
- GreaterThan(Comparable<T>) - Constructor for class org.mockito.internal.matchers.GreaterThan
-
- gt(Comparable<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.