Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
M
- 0.1. Mockito Android support - Search tag in class org.mockito.Mockito
- Section
- 0. Migrating to Mockito 2 - Search tag in class org.mockito.Mockito
- Section
- 2.1.0 migration guide - Search tag in interface org.mockito.ArgumentMatcher
- Section
- 26. Mocking details (Improved in 2.2.x) - Search tag in class org.mockito.Mockito
- Section
- 28. MockMaker API (Since 1.9.5) - Search tag in class org.mockito.Mockito
- Section
- 31. Mockito mocks can be serialized / deserialized across classloaders (Since 1.10.0) - Search tag in class org.mockito.Mockito
- Section
- 33. Mockito JUnit rule (Since 1.10.17) - Search tag in class org.mockito.Mockito
- Section
- 38. Meta data and generic type retention (Since 2.1.0) - Search tag in class org.mockito.Mockito
- Section
- 39. Mocking final types, enums and final methods (Since 2.1.0) - Search tag in class org.mockito.Mockito
- Section
- 48. Mocking static methods (since 3.4.0) - Search tag in class org.mockito.Mockito
- Section
- 49. Mocking object construction (since 3.5.0) - Search tag in class org.mockito.Mockito
- Section
- 51. Mark classes as unmockable (since 4.1.0) - Search tag in class org.mockito.Mockito
- Section
- 54. Mocking/spying without specifying class (Since 4.10.0) - Search tag in class org.mockito.Mockito
- Section
- 7. Making sure interaction(s) never happened on mock - Search tag in class org.mockito.Mockito
- Section
- MANUAL - Enum constant in enum org.mockito.internal.util.concurrent.DetachedThreadLocal.Cleaner
- MANUAL - Enum constant in enum org.mockito.internal.util.concurrent.WeakConcurrentSet.Cleaner
- markStubbed(StubInfo) - Method in class org.mockito.internal.invocation.InterceptedInvocation
- markStubbed(StubInfo) - Method in interface org.mockito.invocation.Invocation
-
Marks this invocation as stubbed.
- markStubUsed(DescribedInvocation) - Method in class org.mockito.internal.stubbing.StubbedInvocationMatcher
- markVerified() - Method in class org.mockito.internal.invocation.InterceptedInvocation
- markVerified() - Method in interface org.mockito.invocation.Invocation
-
Marks this invocation as verified so that it will not cause verification error at
Mockito.verifyNoMoreInteractions(Object...)
- markVerified(List<Invocation>, MatchableInvocation) - Static method in class org.mockito.internal.invocation.InvocationMarker
- markVerified(Invocation) - Method in class org.mockito.internal.InOrderImpl
- markVerified(Invocation) - Method in interface org.mockito.internal.verification.api.InOrderContext
- markVerified(Invocation) - Method in class org.mockito.internal.verification.InOrderContextImpl
- markVerified(Invocation, MatchableInvocation) - Static method in class org.mockito.internal.invocation.InvocationMarker
- markVerifiedInOrder(List<Invocation>, MatchableInvocation, InOrderContext) - Static method in class org.mockito.internal.invocation.InvocationMarker
- MatchableInvocation - Interface in org.mockito.invocation
-
MatchableInvocation
wrapsInvocation
instance and holds argument matchers associated with that invocation. - MatcherApplicationStrategy - Class in org.mockito.internal.invocation
- MatcherGenericTypeExtractor - Class in org.mockito.internal.hamcrest
-
Extracts generic type of matcher
- MatchersBinder - Class in org.mockito.internal.invocation
- MatchersBinder() - Constructor for class org.mockito.internal.invocation.MatchersBinder
- MatchersPrinter - Class in org.mockito.internal.matchers.text
- MatchersPrinter() - Constructor for class org.mockito.internal.matchers.text.MatchersPrinter
- matches(Number) - Method in class org.mockito.internal.matchers.EqualsWithDelta
- matches(Object) - Method in class org.mockito.internal.hamcrest.HamcrestArgumentMatcher
- matches(Object) - Method in class org.mockito.internal.matchers.And
- matches(Object) - Method in class org.mockito.internal.matchers.Any
- matches(Object) - Method in class org.mockito.internal.matchers.apachecommons.ReflectionEquals
- matches(Object) - Method in class org.mockito.internal.matchers.ArrayEquals
- matches(Object) - Method in class org.mockito.internal.matchers.CapturingMatcher
- matches(Object) - Method in class org.mockito.internal.matchers.Equals
- matches(Object) - Method in class org.mockito.internal.matchers.InstanceOf
- matches(Object) - Method in class org.mockito.internal.matchers.Matches
- matches(Object) - Method in class org.mockito.internal.matchers.Not
- matches(Object) - Method in class org.mockito.internal.matchers.NotNull
- matches(Object) - Method in class org.mockito.internal.matchers.Null
- matches(Object) - Method in class org.mockito.internal.matchers.Or
- matches(Object) - Method in class org.mockito.internal.matchers.Same
- matches(String) - Static method in class org.mockito.ArgumentMatchers
-
String
argument that matches the given regular expression. - matches(String) - Method in class org.mockito.internal.matchers.Contains
- matches(String) - Method in class org.mockito.internal.matchers.EndsWith
- matches(String) - Method in class org.mockito.internal.matchers.Find
- matches(String) - Method in class org.mockito.internal.matchers.StartsWith
- matches(Pattern) - Static method in class org.mockito.ArgumentMatchers
-
Pattern
argument that matches the given regular expression. - matches(Invocation) - Method in class org.mockito.internal.invocation.InvocationMatcher
- matches(Invocation) - Method in interface org.mockito.invocation.MatchableInvocation
-
Same method, mock and all arguments match.
- matches(T) - Method in interface org.mockito.ArgumentMatcher
-
Informs if this matcher accepts the given argument.
- matches(T) - Method in class org.mockito.internal.matchers.CompareTo
- Matches - Class in org.mockito.internal.matchers
- Matches(String) - Constructor for class org.mockito.internal.matchers.Matches
- Matches(Pattern) - Constructor for class org.mockito.internal.matchers.Matches
- matchesTypeSafe() - Static method in class org.mockito.internal.invocation.TypeSafeMatching
- matchResult(int) - Method in class org.mockito.internal.matchers.CompareEqual
- matchResult(int) - Method in class org.mockito.internal.matchers.CompareTo
- matchResult(int) - Method in class org.mockito.internal.matchers.GreaterOrEqual
- matchResult(int) - Method in class org.mockito.internal.matchers.GreaterThan
- matchResult(int) - Method in class org.mockito.internal.matchers.LessOrEqual
- matchResult(int) - Method in class org.mockito.internal.matchers.LessThan
- MAX_LINE_LENGTH - Static variable in class org.mockito.internal.reporting.PrintSettings
- maybeRedefineMockName(Object, String) - Static method in class org.mockito.internal.util.MockUtil
- maybeVerifyLazily(VerificationMode) - Method in interface org.mockito.internal.progress.MockingProgress
- maybeVerifyLazily(VerificationMode) - Method in class org.mockito.internal.progress.MockingProgressImpl
- maybeVerifyLazily(VerificationMode) - Method in interface org.mockito.verification.VerificationStrategy
-
Possibly wrap the given VerificationMode and return a wrapping VerificationMode instead.
- MEMBER_ACCESSOR_ALIASES - Static variable in class org.mockito.internal.configuration.plugins.DefaultMockitoPlugins
- MemberAccessor - Interface in org.mockito.plugins
-
A member accessor is responsible for invoking methods, constructors and for setting and reading field values.
- MemberAccessor.ConstructionDispatcher - Interface in org.mockito.plugins
- MemberAccessor.OnConstruction - Interface in org.mockito.plugins
- methodDoesNotAcceptParameter(String, String) - Static method in class org.mockito.internal.exceptions.Reporter
- MethodInvocationReport - Interface in org.mockito.listeners
-
Represent a method call on a mock.
- MismatchReportingTestListener - Class in org.mockito.internal.junit
-
Reports stubbing argument mismatches to the supplied logger
- MismatchReportingTestListener(MockitoLogger) - Constructor for class org.mockito.internal.junit.MismatchReportingTestListener
- misplacedArgumentMatcher(List<LocalizedMatcher>) - Static method in class org.mockito.internal.exceptions.Reporter
- missingByteBuddyDependency(Throwable) - Static method in class org.mockito.internal.exceptions.Reporter
- MissingInvocationChecker - Class in org.mockito.internal.verification.checkers
- missingMethodInvocation() - Static method in class org.mockito.internal.exceptions.Reporter
- MissingMethodInvocationException - Exception Class in org.mockito.exceptions.misusing
- MissingMethodInvocationException(String) - Constructor for exception class org.mockito.exceptions.misusing.MissingMethodInvocationException
- mock(Class<T>) - Static method in class org.mockito.Mockito
-
Creates mock object of given class or interface.
- mock(Class<T>, String) - Static method in class org.mockito.Mockito
-
Specifies mock name.
- mock(Class<T>, MockSettings) - Method in class org.mockito.internal.MockitoCore
- mock(Class<T>, MockSettings) - Static method in class org.mockito.Mockito
-
Creates a mock with some non-standard settings.
- mock(Class<T>, Answer) - Static method in class org.mockito.Mockito
-
Creates mock with a specified strategy for its answers to interactions.
- mock(String, T...) - Static method in class org.mockito.Mockito
-
Creates a mock object of the requested class or interface with the given name.
- mock(MockSettings, T...) - Static method in class org.mockito.Mockito
-
Creates a mock object of the requested class or interface with the given settings.
- mock(Answer, T...) - Static method in class org.mockito.Mockito
-
Creates a mock object of the requested class or interface with the given default answer.
- mock(T...) - Static method in class org.mockito.Mockito
-
Creates a mock object of the requested class or interface.
- Mock - Annotation Type in org.mockito
-
Mark a field as a mock.
- MOCK_MAKER_ALIASES - Static variable in class org.mockito.internal.configuration.plugins.DefaultMockitoPlugins
- Mock.Strictness - Enum in org.mockito
- mockable() - Method in interface org.mockito.plugins.MockMaker.TypeMockability
-
informs if type is mockable
- MockAccess - Interface in org.mockito.internal.creation.bytebuddy
- MockAnnotationProcessor - Class in org.mockito.internal.configuration
-
Instantiates a mock on a field annotated by
Mock
- MockAnnotationProcessor() - Constructor for class org.mockito.internal.configuration.MockAnnotationProcessor
- MockAwareVerificationMode - Class in org.mockito.internal.verification
- MockAwareVerificationMode(Object, VerificationMode, Set<VerificationListener>) - Constructor for class org.mockito.internal.verification.MockAwareVerificationMode
- MockCandidateFilter - Interface in org.mockito.internal.configuration.injection.filter
- mockClass(MockFeatures<T>) - Method in interface org.mockito.internal.creation.bytebuddy.BytecodeGenerator
- mockClass(MockFeatures<T>) - Method in class org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator
- mockClassConstruction(Class<?>) - Method in interface org.mockito.internal.creation.bytebuddy.BytecodeGenerator
- mockClassConstruction(Class<?>) - Method in class org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator
- mockClassStatic(Class<?>) - Method in interface org.mockito.internal.creation.bytebuddy.BytecodeGenerator
- mockClassStatic(Class<?>) - Method in class org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator
- mockConstruction(Class<T>) - Static method in class org.mockito.Mockito
-
Creates a thread-local mock controller for all constructions of the given class.
- mockConstruction(Class<T>, Function<MockedConstruction.Context, ? extends MockSettings>, MockedConstruction.MockInitializer<T>) - Method in class org.mockito.internal.MockitoCore
- mockConstruction(Class<T>, Function<MockedConstruction.Context, MockSettings>) - Static method in class org.mockito.Mockito
-
Creates a thread-local mock controller for all constructions of the given class.
- mockConstruction(Class<T>, Function<MockedConstruction.Context, MockSettings>, MockedConstruction.MockInitializer<T>) - Static method in class org.mockito.Mockito
-
Creates a thread-local mock controller for all constructions of the given class.
- mockConstruction(Class<T>, MockedConstruction.MockInitializer<T>) - Static method in class org.mockito.Mockito
-
Creates a thread-local mock controller for all constructions of the given class.
- mockConstruction(Class<T>, MockSettings) - Static method in class org.mockito.Mockito
-
Creates a thread-local mock controller for all constructions of the given class.
- mockConstruction(Class<T>, MockSettings, MockedConstruction.MockInitializer<T>) - Static method in class org.mockito.Mockito
-
Creates a thread-local mock controller for all constructions of the given class.
- mockConstructionWithAnswer(Class<T>, Answer, Answer...) - Static method in class org.mockito.Mockito
-
Creates a thread-local mock controller for all constructions of the given class.
- MockCreationListener - Interface in org.mockito.listeners
-
Notified when mock object is created.
- MockCreationSettings<T> - Interface in org.mockito.mock
-
Informs about the mock settings.
- MockCreationValidator - Class in org.mockito.internal.util
- MockCreationValidator() - Constructor for class org.mockito.internal.util.MockCreationValidator
- MockedConstruction<T> - Interface in org.mockito
-
Represents a mock of any object construction of the represented type.
- MockedConstruction.Context - Interface in org.mockito
-
The context for a construction mock.
- MockedConstruction.MockInitializer<T> - Interface in org.mockito
-
Functional interface that consumes a newly created mock and the mock context.
- MockedConstructionImpl<T> - Class in org.mockito.internal
- MockedConstructionImpl(MockMaker.ConstructionMockControl<T>) - Constructor for class org.mockito.internal.MockedConstructionImpl
- MockedStatic<T> - Interface in org.mockito
-
Represents an active mock of a type's static methods.
- MockedStatic.Verification - Interface in org.mockito
-
Functional interface for a verification operation on a static mock.
- MockedStaticImpl<T> - Class in org.mockito.internal
- MockedStaticImpl(MockMaker.StaticMockControl<T>) - Constructor for class org.mockito.internal.MockedStaticImpl
- mockedTypeIsInconsistentWithDelegatedInstanceType(Class<?>, Object) - Static method in class org.mockito.internal.exceptions.Reporter
- mockedTypeIsInconsistentWithSpiedInstanceType(Class<?>, Object) - Static method in class org.mockito.internal.exceptions.Reporter
- MockHandler<T> - Interface in org.mockito.invocation
-
Mockito handler of an invocation on a mock.
- MockHandlerFactory - Class in org.mockito.internal.handler
-
by Szczepan Faber, created at: 5/21/12
- MockHandlerImpl<T> - Class in org.mockito.internal.handler
-
Invocation handler set on mock objects.
- MockHandlerImpl(MockCreationSettings<T>) - Constructor for class org.mockito.internal.handler.MockHandlerImpl
- mockingDetails(Object) - Method in class org.mockito.internal.MockitoCore
- mockingDetails(Object) - Static method in class org.mockito.Mockito
-
Returns a MockingDetails instance that enables inspecting a particular object for Mockito related information.
- MockingDetails - Interface in org.mockito
-
Provides mocking information.
- mockingProgress() - Static method in class org.mockito.internal.progress.ThreadSafeMockingProgress
-
Returns the
MockingProgress
for the current Thread. - MockingProgress - Interface in org.mockito.internal.progress
- MockingProgressImpl - Class in org.mockito.internal.progress
- MockingProgressImpl() - Constructor for class org.mockito.internal.progress.MockingProgressImpl
- mockingStarted(Class<?>, MockCreationSettings) - Method in interface org.mockito.internal.progress.MockingProgress
- mockingStarted(Class<?>, MockCreationSettings) - Method in class org.mockito.internal.progress.MockingProgressImpl
- mockingStarted(Object, MockCreationSettings) - Method in interface org.mockito.internal.progress.MockingProgress
- mockingStarted(Object, MockCreationSettings) - Method in class org.mockito.internal.progress.MockingProgressImpl
- MockInjection - Class in org.mockito.internal.configuration.injection
-
Internal injection configuration utility.
- MockInjection.OngoingMockInjection - Class in org.mockito.internal.configuration.injection
-
Ongoing configuration of the mock injector.
- MockInjectionStrategy - Class in org.mockito.internal.configuration.injection
-
Injector strategy contract
- MockInjectionStrategy() - Constructor for class org.mockito.internal.configuration.injection.MockInjectionStrategy
- Mockito - Class in org.mockito
-
- Mockito() - Constructor for class org.mockito.Mockito
- MOCKITO_CONFIGURATION_CLASS_NAME - Static variable in class org.mockito.internal.configuration.ClassPathLoader
- MockitoAnnotations - Class in org.mockito
-
MockitoAnnotations.openMocks(this); initializes fields annotated with Mockito annotations.
- MockitoAssertionError - Exception Class in org.mockito.exceptions.base
-
Base class for verification errors emitted by Mockito.
- MockitoAssertionError(AssertionError, String) - Constructor for exception class org.mockito.exceptions.base.MockitoAssertionError
-
Creates a copy of the given assertion error with the custom failure message prepended.
- MockitoAssertionError(String) - Constructor for exception class org.mockito.exceptions.base.MockitoAssertionError
- MockitoAssertionError(MockitoAssertionError, String) - Constructor for exception class org.mockito.exceptions.base.MockitoAssertionError
-
Creates a copy of the given assertion error with the custom failure message prepended.
- MockitoConfigurationException - Exception Class in org.mockito.exceptions.misusing
- MockitoConfigurationException(String) - Constructor for exception class org.mockito.exceptions.misusing.MockitoConfigurationException
- MockitoConfigurationException(String, Exception) - Constructor for exception class org.mockito.exceptions.misusing.MockitoConfigurationException
- MockitoCore - Class in org.mockito.internal
- MockitoCore() - Constructor for class org.mockito.internal.MockitoCore
- MockitoException - Exception Class in org.mockito.exceptions.base
-
Raised by mockito to emit an error either due to Mockito, or due to the User.
- MockitoException(String) - Constructor for exception class org.mockito.exceptions.base.MockitoException
- MockitoException(String, Throwable) - Constructor for exception class org.mockito.exceptions.base.MockitoException
- MockitoFramework - Interface in org.mockito
-
Mockito framework settings and lifecycle listeners, for advanced users or for integrating with other frameworks.
- MockitoHamcrest - Class in org.mockito.hamcrest
-
Allows matching arguments with hamcrest matchers.
- MockitoHint - Interface in org.mockito.quality
-
Stubbing hints were introduced in Mockito 2 in order to improve debuggability while keeping backwards compatibility.
- MockitoInitializationException - Exception Class in org.mockito.exceptions.base
- MockitoInitializationException(String) - Constructor for exception class org.mockito.exceptions.base.MockitoInitializationException
- MockitoInitializationException(String, Throwable) - Constructor for exception class org.mockito.exceptions.base.MockitoInitializationException
- MockitoJUnit - Class in org.mockito.junit
-
Mockito supports JUnit via: JUnit Rules - see
MockitoRule
JUnit runners - seeMockitoJUnitRunner
JUnit Jupiter extension - MockitoJUnitRunner - Class in org.mockito.junit
-
Mockito JUnit Runner keeps tests clean and improves debugging experience.
- MockitoJUnitRunner(Class<?>) - Constructor for class org.mockito.junit.MockitoJUnitRunner
- MockitoJUnitRunner.Silent - Class in org.mockito.junit
-
This Mockito JUnit Runner implementation *ignores* stubbing argument mismatches (
MockitoJUnitRunner.StrictStubs
) and *does not detect* unused stubbings. - MockitoJUnitRunner.Strict - Class in org.mockito.junit
-
Detects unused stubs and reports them as failures.
- MockitoJUnitRunner.StrictStubs - Class in org.mockito.junit
-
Improves debugging tests, helps keeping the tests clean.
- MockitoListener - Interface in org.mockito.listeners
-
Marker interface for all types of Mockito listeners.
- MockitoLogger - Interface in org.mockito.plugins
-
Mockito logger.
- MockitoMethod - Interface in org.mockito.internal.invocation
- MockitoMethodProxy - Interface in org.mockito.internal.creation.util
- MockitoPlugins - Interface in org.mockito.plugins
-
Instance of this interface is available via
MockitoFramework.getPlugins()
. - MockitoRule - Interface in org.mockito.junit
-
Mockito JUnit Rule helps keeping tests clean.
- MockitoSerializationIssue - Exception Class in org.mockito.exceptions.base
-
Raised by mockito to emit an error either due to Mockito, or due to the User.
- MockitoSerializationIssue(String, Exception) - Constructor for exception class org.mockito.exceptions.base.MockitoSerializationIssue
- mockitoSession() - Static method in class org.mockito.Mockito
-
MockitoSession
is an optional, highly recommended feature that drives writing cleaner tests by eliminating boilerplate code and adding extra validation. - MockitoSession - Interface in org.mockito
-
MockitoSession
is an optional, highly recommended feature that drives writing cleaner tests by eliminating boilerplate code and adding extra validation. - MockitoSessionBuilder - Interface in org.mockito.session
-
Fluent builder interface for
MockitoSession
objects. - MockitoSessionLogger - Interface in org.mockito.session
-
Logger for hints emitted when finishing mocking for a
MockitoSession
. - MockitoSessionLoggerAdapter - Class in org.mockito.internal.session
- MockitoSessionLoggerAdapter(MockitoLogger) - Constructor for class org.mockito.internal.session.MockitoSessionLoggerAdapter
- MockitoTestListener - Interface in org.mockito.internal.junit
-
Internal test listener that helps decoupling JUnit internals from Mockito "business" logic.
- MockitoTestRule - Interface in org.mockito.junit
-
Equivalent to
MockitoRule
, but inherits a different JUnit4 base interfaceTestRule
. - mockMaker - Variable in class org.mockito.internal.creation.settings.CreationSettings
- mockMaker() - Element in annotation type org.mockito.Mock
-
Mock will be created by the given
MockMaker
, seeMockSettings.mockMaker(String)
. - mockMaker(String) - Method in class org.mockito.internal.creation.MockSettingsImpl
- mockMaker(String) - Method in interface org.mockito.MockSettings
-
Specifies the
MockMaker
for the mock. - MockMaker - Interface in org.mockito.plugins
-
The facility to create mocks.
- MockMaker.ConstructionMockControl<T> - Interface in org.mockito.plugins
- MockMaker.StaticMockControl<T> - Interface in org.mockito.plugins
- MockMaker.TypeMockability - Interface in org.mockito.plugins
-
Carries the mockability information
- MockMakers - Class in org.mockito
-
Constants for built-in implementations of
MockMaker
. - MockMethodAdvice - Class in org.mockito.internal.creation.bytebuddy
- MockMethodAdvice(WeakConcurrentMap<Object, MockMethodInterceptor>, DetachedThreadLocal<Map<Class<?>, MockMethodInterceptor>>, String, Predicate<Class<?>>, ConstructionCallback) - Constructor for class org.mockito.internal.creation.bytebuddy.MockMethodAdvice
- MockMethodAdvice.ForReadObject - Class in org.mockito.internal.creation.bytebuddy
- MockMethodDispatcher - Class in org.mockito.internal.creation.bytebuddy.inject
- MockMethodDispatcher() - Constructor for class org.mockito.internal.creation.bytebuddy.inject.MockMethodDispatcher
- MockMethodInterceptor - Class in org.mockito.internal.creation.bytebuddy
- MockMethodInterceptor(MockHandler, MockCreationSettings) - Constructor for class org.mockito.internal.creation.bytebuddy.MockMethodInterceptor
- MockMethodInterceptor.DispatcherDefaultingToRealMethod - Class in org.mockito.internal.creation.bytebuddy
- MockMethodInterceptor.ForEquals - Class in org.mockito.internal.creation.bytebuddy
- MockMethodInterceptor.ForHashCode - Class in org.mockito.internal.creation.bytebuddy
- MockMethodInterceptor.ForWriteReplace - Class in org.mockito.internal.creation.bytebuddy
- mockName - Variable in class org.mockito.internal.creation.settings.CreationSettings
- MockName - Interface in org.mockito.mock
-
Represents the name of the mock as shown in the verification failure reports, etc.
- MockNameImpl - Class in org.mockito.internal.util
- MockNameImpl(String) - Constructor for class org.mockito.internal.util.MockNameImpl
- MockNameImpl(String, Class<?>, MockType) - Constructor for class org.mockito.internal.util.MockNameImpl
- MockReference<T> - Interface in org.mockito.internal.invocation.mockref
-
To avoid memory leaks for certain implementations of MockMaker, we need to use weak mock references internally.
- MockResolver - Interface in org.mockito.plugins
-
A mock resolver offers an opportunity to resolve a mock from any instance that is provided to the
Mockito
-DSL. - MockScanner - Class in org.mockito.internal.configuration.injection.scanner
-
Scan mocks, and prepare them if needed.
- MockScanner(Object, Class<?>) - Constructor for class org.mockito.internal.configuration.injection.scanner.MockScanner
-
Creates a MockScanner.
- MockSettings - Interface in org.mockito
-
Allows mock creation with additional mock settings.
- MockSettingsImpl<T> - Class in org.mockito.internal.creation
- MockSettingsImpl() - Constructor for class org.mockito.internal.creation.MockSettingsImpl
- mocksHaveToBePassedToVerifyNoMoreInteractions() - Static method in class org.mockito.internal.exceptions.Reporter
- mocksHaveToBePassedWhenCreatingInOrder() - Static method in class org.mockito.internal.exceptions.Reporter
- mockStatic(Class<T>) - Static method in class org.mockito.Mockito
-
Creates a thread-local mock controller for all static methods of the given class or interface.
- mockStatic(Class<T>, String) - Static method in class org.mockito.Mockito
-
Creates a thread-local mock controller for all static methods of the given class or interface.
- mockStatic(Class<T>, MockSettings) - Method in class org.mockito.internal.MockitoCore
- mockStatic(Class<T>, MockSettings) - Static method in class org.mockito.Mockito
-
Creates a thread-local mock controller for all static methods of the given class or interface.
- mockStatic(Class<T>, Answer) - Static method in class org.mockito.Mockito
-
Creates a thread-local mock controller for all static methods of the given class or interface.
- MockStrongReference<T> - Class in org.mockito.internal.invocation.mockref
- MockStrongReference(T, boolean) - Constructor for class org.mockito.internal.invocation.mockref.MockStrongReference
- mockType - Variable in class org.mockito.internal.creation.settings.CreationSettings
- MockType - Enum in org.mockito.mock
-
The type of mock being created
- MockUtil - Class in org.mockito.internal.util
- MockWeakReference<T> - Class in org.mockito.internal.invocation.mockref
-
A weak reference that is converted into a strong reference when serialized.
- MockWeakReference(T) - Constructor for class org.mockito.internal.invocation.mockref.MockWeakReference
- ModuleMemberAccessor - Class in org.mockito.internal.util.reflection
- ModuleMemberAccessor() - Constructor for class org.mockito.internal.util.reflection.ModuleMemberAccessor
- MoreThanAllowedActualInvocations - Exception Class in org.mockito.exceptions.verification
-
Thrown when atMost(x) verification fails.
- MoreThanAllowedActualInvocations(String) - Constructor for exception class org.mockito.exceptions.verification.MoreThanAllowedActualInvocations
- moreThanOneAnnotationNotAllowed(String) - Static method in class org.mockito.internal.exceptions.Reporter
- moreThanOneMockCandidate(Field, Collection<?>) - Static method in class org.mockito.internal.exceptions.Reporter
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form