- markStubbed(StubInfo) - Method in interface org.mockito.invocation.Invocation
-
Marks this invocation as stubbed.
- markVerified() - Method in interface org.mockito.invocation.Invocation
-
- MatchableInvocation - Interface in org.mockito.invocation
-
MatchableInvocation
wraps
Invocation
instance
and holds argument matchers associated with that invocation.
- Matchers - Class in org.mockito
-
Deprecated.
Use ArgumentMatchers
. This class is now deprecated in order to avoid a name clash with Hamcrest
org.hamcrest.Matchers
class. This class will likely be removed in version 3.0.
- Matchers() - Constructor for class org.mockito.Matchers
-
Deprecated.
- matches(T) - Method in interface org.mockito.ArgumentMatcher
-
Informs if this matcher accepts the given argument.
- matches(String) - Static method in class org.mockito.ArgumentMatchers
-
String
argument that matches the given regular expression.
- matches(Invocation) - Method in interface org.mockito.invocation.MatchableInvocation
-
Same method, mock and all arguments match.
- maybeVerifyLazily(VerificationMode) - Method in interface org.mockito.verification.VerificationStrategy
-
Possibly wrap the given VerificationMode and return a wrapping
VerificationMode instead.
- MethodInvocationReport - Interface in org.mockito.listeners
-
Represent a method call on a mock.
- MissingMethodInvocationException - Exception in org.mockito.exceptions.misusing
-
- MissingMethodInvocationException(String) - Constructor for exception org.mockito.exceptions.misusing.MissingMethodInvocationException
-
- Mock - Annotation Type in org.mockito
-
Mark a field as a mock.
- 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>, Answer) - Static method in class org.mockito.Mockito
-
Creates mock with a specified strategy for its answers to interactions.
- mock(Class<T>, MockSettings) - Static method in class org.mockito.Mockito
-
Creates a mock with some non-standard settings.
- mockable() - Method in interface org.mockito.plugins.MockMaker.TypeMockability
-
informs if type is mockable
- MockCreationListener - Interface in org.mockito.listeners
-
Notified when mock object is created.
- MockCreationSettings<T> - Interface in org.mockito.mock
-
Informs about the mock settings.
- MockHandler - Interface in org.mockito.invocation
-
Mockito handler of an invocation on a mock.
- MockingDetails - Interface in org.mockito
-
Provides mocking information.
- mockingDetails(Object) - Static method in class org.mockito.Mockito
-
Returns a MockingDetails instance that enables inspecting a particular object for Mockito related information.
- Mockito - Class in org.mockito
-
- Mockito() - Constructor for class org.mockito.Mockito
-
- MockitoAnnotations - Class in org.mockito
-
MockitoAnnotations.initMocks(this); initializes fields annotated with Mockito annotations.
- MockitoAnnotations() - Constructor for class org.mockito.MockitoAnnotations
-
- MockitoAssertionError - Error in org.mockito.exceptions.base
-
- MockitoAssertionError(String) - Constructor for error org.mockito.exceptions.base.MockitoAssertionError
-
- MockitoAssertionError(MockitoAssertionError, String) - Constructor for error org.mockito.exceptions.base.MockitoAssertionError
-
Creates a copy of the given assertion error with the custom failure message prepended.
- MockitoConfigurationException - Exception in org.mockito.exceptions.misusing
-
- MockitoConfigurationException(String) - Constructor for exception org.mockito.exceptions.misusing.MockitoConfigurationException
-
- MockitoConfigurationException(String, Exception) - Constructor for exception org.mockito.exceptions.misusing.MockitoConfigurationException
-
- MockitoDebugger - Interface in org.mockito
-
- MockitoException - Exception in org.mockito.exceptions.base
-
Raised by mockito to emit an error either due to Mockito, or due to the User.
- MockitoException(String, Throwable) - Constructor for exception org.mockito.exceptions.base.MockitoException
-
- MockitoException(String) - Constructor for exception 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.
- MockitoHamcrest() - Constructor for class org.mockito.hamcrest.MockitoHamcrest
-
- MockitoHint - Interface in org.mockito.quality
-
Starting with 2.1.0 of Mockito stubbing hints / warnings are printed to standard output.
- MockitoInitializationException - Exception in org.mockito.exceptions.base
-
- MockitoInitializationException(String) - Constructor for exception org.mockito.exceptions.base.MockitoInitializationException
-
- MockitoInitializationException(String, Throwable) - Constructor for exception org.mockito.exceptions.base.MockitoInitializationException
-
- MockitoJUnit - Class in org.mockito.junit
-
- MockitoJUnit() - Constructor for class org.mockito.junit.MockitoJUnit
-
- MockitoJUnitRunner - Class in org.mockito.junit
-
Compatible with JUnit 4.4 and higher, this runner adds following behavior:
(new since Mockito 2.1.0) Detects unused stubs in the test code.
- MockitoJUnitRunner(Class<?>) - Constructor for class org.mockito.junit.MockitoJUnitRunner
-
- MockitoJUnitRunner - Class in org.mockito.runners
-
- MockitoJUnitRunner(Class<?>) - Constructor for class org.mockito.runners.MockitoJUnitRunner
-
Deprecated.
- MockitoJUnitRunner.Silent - Class in org.mockito.junit
-
This Mockito JUnit Runner implementation ignores unused stubs
(e.g.
- MockitoJUnitRunner.Silent(Class<?>) - Constructor for class org.mockito.junit.MockitoJUnitRunner.Silent
-
- MockitoJUnitRunner.Silent - Class in org.mockito.runners
-
- MockitoJUnitRunner.Silent(Class<?>) - Constructor for class org.mockito.runners.MockitoJUnitRunner.Silent
-
Deprecated.
- MockitoJUnitRunner.Strict - Class in org.mockito.junit
-
Detects unused stubs and reports them as failures.
- MockitoJUnitRunner.Strict(Class<?>) - Constructor for class org.mockito.junit.MockitoJUnitRunner.Strict
-
- MockitoJUnitRunner.Strict - Class in org.mockito.runners
-
- MockitoJUnitRunner.Strict(Class<?>) - Constructor for class org.mockito.runners.MockitoJUnitRunner.Strict
-
Deprecated.
- MockitoListener - Interface in org.mockito.listeners
-
Marker interface for all types of Mockito listeners.
- MockitoRule - Interface in org.mockito.junit
-
Since 2.1.0, JUnit rule emits stubbing warnings and hints to System output
(see also
MockitoHint
).
- MockitoSerializationIssue - Exception 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 org.mockito.exceptions.base.MockitoSerializationIssue
-
- MockMaker - Interface in org.mockito.plugins
-
The facility to create mocks.
- MockMaker.TypeMockability - Interface in org.mockito.plugins
-
Carries the mockability information
- MockName - Interface in org.mockito.mock
-
Represents the name of the mock as shown in the verification failure reports, etc.
- MockSettings - Interface in org.mockito
-
Allows mock creation with additional mock settings.