- decamelizeMatcher(String) - Static method in class org.mockito.internal.util.Decamelizer
-
- Decamelizer - Class in org.mockito.internal.util
-
- Decamelizer() - Constructor for class org.mockito.internal.util.Decamelizer
-
- declaredFieldsOf(Object) - Static method in class org.mockito.internal.util.reflection.Fields
-
Instance fields declared in the class of the given instance.
- DefaultAnnotationEngine - Class in org.mockito.internal.configuration
-
Initializes fields annotated with @
Mock
or @
Captor
.
- DefaultAnnotationEngine() - Constructor for class org.mockito.internal.configuration.DefaultAnnotationEngine
-
- defaultAnswer(Answer) - Method in class org.mockito.internal.creation.MockSettingsImpl
-
- defaultAnswer - Variable in class org.mockito.internal.creation.settings.CreationSettings
-
- defaultAnswer(Answer) - Method in interface org.mockito.MockSettings
-
Specifies default answers to interactions.
- defaultAnswerDoesNotAcceptNullParameter() - Method in class org.mockito.exceptions.Reporter
-
- DefaultInjectionEngine - Class in org.mockito.internal.configuration
-
Inject mock/spies dependencies for fields annotated with @InjectMocks
See
MockitoAnnotations
- DefaultInjectionEngine() - Constructor for class org.mockito.internal.configuration.DefaultInjectionEngine
-
- DefaultMockingDetails - Class in org.mockito.internal.util
-
Class to inspect any object, and identify whether a particular object is either a mock or a spy.
- DefaultMockingDetails(Object, MockUtil) - Constructor for class org.mockito.internal.util.DefaultMockingDetails
-
- DefaultMockitoConfiguration - Class in org.mockito.configuration
-
DefaultConfiguration of Mockito framework
- DefaultMockitoConfiguration() - Constructor for class org.mockito.configuration.DefaultMockitoConfiguration
-
- DefaultRealMethod - Class in org.mockito.internal.invocation.realmethod
-
- DefaultRealMethod(MockitoMethodProxy) - Constructor for class org.mockito.internal.invocation.realmethod.DefaultRealMethod
-
- DefaultRegisteredInvocations - Class in org.mockito.internal.verification
-
- DefaultRegisteredInvocations() - Constructor for class org.mockito.internal.verification.DefaultRegisteredInvocations
-
- DefaultStackTraceCleaner - Class in org.mockito.internal.exceptions.stacktrace
-
by Szczepan Faber, created at: 7/29/12
- DefaultStackTraceCleaner() - Constructor for class org.mockito.internal.exceptions.stacktrace.DefaultStackTraceCleaner
-
- DefaultStackTraceCleanerProvider - Class in org.mockito.internal.exceptions.stacktrace
-
by Szczepan Faber, created at: 7/29/12
- DefaultStackTraceCleanerProvider() - Constructor for class org.mockito.internal.exceptions.stacktrace.DefaultStackTraceCleanerProvider
-
- defaultValueForPrimitiveOrWrapper(Class<T>) - Static method in class org.mockito.internal.util.Primitives
-
Returns the boxed default value for a primitive or a primitive wrapper.
- delegatedMethodDoesNotExistOnDelegate(Method, Object, Object) - Method in class org.mockito.exceptions.Reporter
-
- delegatedMethodHasWrongReturnType(Method, Method, Object, Object) - Method in class org.mockito.exceptions.Reporter
-
- delegatesTo(Object) - Static method in class org.mockito.AdditionalAnswers
-
An answer that directly forwards the calls to the delegate.
- DelegatingMethod - Class in org.mockito.internal.creation
-
- DelegatingMethod(Method) - Constructor for class org.mockito.internal.creation.DelegatingMethod
-
- DeprecatedOngoingStubbing<T> - Interface in org.mockito.stubbing
-
Stubs a method call with return value or an exception.
- describe(Object) - Method in class org.mockito.internal.matchers.Equals
-
- DescribedInvocation - Interface in org.mockito.invocation
-
Provides information about the invocation, specifically a human readable description and the location.
- describeTo(Description) - Method in class org.mockito.ArgumentMatcher
-
By default this method decamelizes matchers name to promote meaningful names for matchers.
- describeTo(Description) - Method in class org.mockito.internal.matchers.And
-
- describeTo(Description) - Method in class org.mockito.internal.matchers.Any
-
- describeTo(Description) - Method in class org.mockito.internal.matchers.apachecommons.ReflectionEquals
-
- describeTo(Description) - Method in class org.mockito.internal.matchers.ArrayEquals
-
- describeTo(Description) - Method in class org.mockito.internal.matchers.CapturingMatcher
-
- describeTo(Description) - Method in class org.mockito.internal.matchers.CompareTo
-
- describeTo(Description) - Method in class org.mockito.internal.matchers.Contains
-
- describeTo(Description) - Method in class org.mockito.internal.matchers.EndsWith
-
- describeTo(Description) - Method in class org.mockito.internal.matchers.Equals
-
- describeTo(Description) - Method in class org.mockito.internal.matchers.EqualsWithDelta
-
- describeTo(Description) - Method in class org.mockito.internal.matchers.Find
-
- describeTo(Description) - Method in class org.mockito.internal.matchers.InstanceOf
-
- describeTo(Description) - Method in class org.mockito.internal.matchers.LocalizedMatcher
-
- describeTo(Description) - Method in class org.mockito.internal.matchers.Matches
-
- describeTo(Description) - Method in class org.mockito.internal.matchers.Not
-
- describeTo(Description) - Method in class org.mockito.internal.matchers.NotNull
-
- describeTo(Description) - Method in class org.mockito.internal.matchers.Null
-
- describeTo(Description) - Method in class org.mockito.internal.matchers.Or
-
- describeTo(Description) - Method in class org.mockito.internal.matchers.Same
-
- describeTo(Description) - Method in class org.mockito.internal.matchers.StartsWith
-
- describeTo(Description) - Method in class org.mockito.internal.matchers.VarargCapturingMatcher
-
- description(String) - Method in class org.mockito.internal.verification.AtLeast
-
- description(String) - Method in class org.mockito.internal.verification.AtMost
-
- description(String) - Method in class org.mockito.internal.verification.Calls
-
- Description - Class in org.mockito.internal.verification
-
Description verification mode wraps an existing verification mode and prepends
a custom message to the assertion error if verification fails.
- Description(VerificationMode, String) - Constructor for class org.mockito.internal.verification.Description
-
Constructs a verification mode which wraps the given verification mode.
- description(String) - Method in class org.mockito.internal.verification.Description
-
- description(String) - Method in class org.mockito.internal.verification.InOrderWrapper
-
- description(String) - Method in class org.mockito.internal.verification.MockAwareVerificationMode
-
- description(String) - Method in class org.mockito.internal.verification.NoMoreInteractions
-
- description(String) - Method in class org.mockito.internal.verification.Only
-
- description(String) - Method in class org.mockito.internal.verification.Times
-
- description(VerificationMode, String) - Static method in class org.mockito.internal.verification.VerificationModeFactory
-
Verification mode will prepend the specified failure message if verification fails with the given implementation.
- description(String) - Method in class org.mockito.internal.verification.VerificationOverTimeImpl
-
- description(String) - Static method in class org.mockito.Mockito
-
Adds a description to be printed if verification fails.
- description(String) - Method in class org.mockito.verification.After
-
- description(String) - Method in class org.mockito.verification.Timeout
-
- description(String) - Method in interface org.mockito.verification.VerificationMode
-
Description will be prepended to the assertion error if verification fails.
- Discrepancy - Class in org.mockito.exceptions
-
Deprecated.
- Discrepancy(int, int) - Constructor for class org.mockito.exceptions.Discrepancy
-
Deprecated.
- Discrepancy - Class in org.mockito.internal.reporting
-
- Discrepancy(int, int) - Constructor for class org.mockito.internal.reporting.Discrepancy
-
- doAnswer(Answer) - Method in class org.mockito.internal.MockitoCore
-
- doAnswer(Answer) - Method in class org.mockito.internal.stubbing.StubberImpl
-
- doAnswer(Answer) - Static method in class org.mockito.Mockito
-
Use
doAnswer()
when you want to stub a void method with generic
Answer
.
- doAnswer(Answer) - Method in interface org.mockito.stubbing.Stubber
-
- doCallRealMethod() - Method in class org.mockito.internal.stubbing.StubberImpl
-
- doCallRealMethod() - Static method in class org.mockito.Mockito
-
Use doCallRealMethod()
when you want to call the real implementation of a method.
- doCallRealMethod() - Method in interface org.mockito.stubbing.Stubber
-
- DoesNothing - Class in org.mockito.internal.stubbing.answers
-
- DoesNothing() - Constructor for class org.mockito.internal.stubbing.answers.DoesNothing
-
- doIdentityEquals(Object, Object) - Static method in class org.mockito.internal.creation.bytebuddy.MockMethodInterceptor.ForEquals
-
- doIdentityHashCode(Object) - Static method in class org.mockito.internal.creation.bytebuddy.MockMethodInterceptor.ForHashCode
-
- doNothing() - Method in class org.mockito.internal.stubbing.StubberImpl
-
- doNothing() - Static method in class org.mockito.Mockito
-
Use doNothing()
for setting void methods to do nothing.
- doNothing() - Method in interface org.mockito.stubbing.Stubber
-
- doReturn(Object) - Method in class org.mockito.internal.stubbing.StubberImpl
-
- doReturn(Object) - Static method in class org.mockito.Mockito
-
- doReturn(Object) - Method in interface org.mockito.stubbing.Stubber
-
- doThrow(Throwable) - Method in class org.mockito.internal.stubbing.StubberImpl
-
- doThrow(Class<? extends Throwable>) - Method in class org.mockito.internal.stubbing.StubberImpl
-
- doThrow(Throwable) - Static method in class org.mockito.Mockito
-
Use doThrow()
when you want to stub the void method with an exception.
- doThrow(Class<? extends Throwable>) - Static method in class org.mockito.Mockito
-
Use doThrow()
when you want to stub the void method to throw exception of specified class.
- doThrow(Throwable) - Method in interface org.mockito.stubbing.Stubber
-
- doThrow(Class<? extends Throwable>) - Method in interface org.mockito.stubbing.Stubber
-
- doubleThat(Matcher<Double>) - Static method in class org.mockito.Matchers
-
Allows creating custom Double
argument matchers.
- doWriteReplace(MockMethodInterceptor.MockAccess) - Static method in class org.mockito.internal.creation.bytebuddy.MockMethodInterceptor.ForWriteReplace
-
- duration() - Method in class org.mockito.internal.util.Timer
-