Index

A B C D E F G H I J K L M N O P R S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

D

12. doReturn()|doThrow()| doAnswer()|doNothing()|doCallRealMethod() family of methods - Search tag in class org.mockito.Mockito
Section
27. Delegate calls to real instance (Since 1.9.5) - Search tag in class org.mockito.Mockito
Section
44. Deprecated org.mockito.plugins.InstantiatorProvider as it was leaking internal API. it was replaced by org.mockito.plugins.InstantiatorProvider2 (Since 2.15.4) - Search tag in class org.mockito.Mockito
Section
decamelizeMatcherName(String) - Static method in class org.mockito.internal.util.StringUtil
 
defaultAnswer - Variable in class org.mockito.internal.creation.settings.CreationSettings
 
defaultAnswer(Answer) - Method in class org.mockito.internal.creation.MockSettingsImpl
 
defaultAnswer(Answer) - Method in interface org.mockito.MockSettings
Specifies default answers to interactions.
defaultAnswerDoesNotAcceptNullParameter() - Static method in class org.mockito.internal.exceptions.Reporter
 
DefaultAnswerValidator - Class in org.mockito.internal.stubbing.answers
 
DefaultAnswerValidator() - Constructor for class org.mockito.internal.stubbing.answers.DefaultAnswerValidator
 
DefaultDoNotMockEnforcer - Class in org.mockito.internal.configuration
 
DefaultDoNotMockEnforcer() - Constructor for class org.mockito.internal.configuration.DefaultDoNotMockEnforcer
 
DefaultInjectionEngine - Class in org.mockito.internal.configuration
Inject mock/spies dependencies for fields annotated with @InjectMocks
DefaultInjectionEngine() - Constructor for class org.mockito.internal.configuration.DefaultInjectionEngine
 
DefaultInstantiatorProvider - Class in org.mockito.internal.creation.instance
 
DefaultInstantiatorProvider() - Constructor for class org.mockito.internal.creation.instance.DefaultInstantiatorProvider
 
DefaultInternalRunner - Class in org.mockito.internal.runners
 
DefaultInternalRunner(Class<?>, Supplier<MockitoTestListener>) - Constructor for class org.mockito.internal.runners.DefaultInternalRunner
 
DefaultInvocationFactory - Class in org.mockito.internal.invocation
 
DefaultInvocationFactory() - Constructor for class org.mockito.internal.invocation.DefaultInvocationFactory
 
DefaultLenientStubber - Class in org.mockito.internal.stubbing
 
DefaultLenientStubber() - Constructor for class org.mockito.internal.stubbing.DefaultLenientStubber
 
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) - 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
 
DefaultMockitoFramework - Class in org.mockito.internal.framework
 
DefaultMockitoFramework() - Constructor for class org.mockito.internal.framework.DefaultMockitoFramework
 
DefaultMockitoPlugins - Class in org.mockito.internal.configuration.plugins
 
DefaultMockitoPlugins() - Constructor for class org.mockito.internal.configuration.plugins.DefaultMockitoPlugins
 
DefaultMockitoSession - Class in org.mockito.internal.framework
 
DefaultMockitoSession(List<Object>, String, Strictness, MockitoLogger) - Constructor for class org.mockito.internal.framework.DefaultMockitoSession
 
DefaultMockitoSessionBuilder - Class in org.mockito.internal.session
 
DefaultMockitoSessionBuilder() - Constructor for class org.mockito.internal.session.DefaultMockitoSessionBuilder
 
DefaultRegisteredInvocations - Class in org.mockito.internal.verification
 
DefaultRegisteredInvocations() - Constructor for class org.mockito.internal.verification.DefaultRegisteredInvocations
 
DefaultStackTraceCleaner - Class in org.mockito.internal.exceptions.stacktrace
This predicate is used to filter "good" StackTraceElement.
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
 
DefaultTestFinishedEvent - Class in org.mockito.internal.junit
 
DefaultTestFinishedEvent(Object, String, Throwable) - Constructor for class org.mockito.internal.junit.DefaultTestFinishedEvent
 
defaultValue(Class<T>) - Static method in class org.mockito.internal.util.Primitives
Returns the boxed default value for a primitive or a primitive wrapper.
defaultValue(K) - Method in class org.mockito.internal.util.concurrent.WeakConcurrentMap
Creates a default value.
define(Thread, T) - Method in class org.mockito.internal.util.concurrent.DetachedThreadLocal
 
delegatedMethodDoesNotExistOnDelegate(Method, Object, Object) - Static method in class org.mockito.internal.exceptions.Reporter
 
delegatedMethodHasWrongReturnType(Method, Method, Object, Object) - Static method in class org.mockito.internal.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
 
describe() - Static method in class org.mockito.internal.util.Platform
 
DescribedInvocation - Interface in org.mockito.invocation
Provides information about the invocation, specifically a human readable description and the location.
description(String) - Method in class org.mockito.internal.verification.Times
 
description(String) - Static method in class org.mockito.Mockito
Adds a description to be printed if verification fails.
description(String) - Method in interface org.mockito.verification.VerificationMode
Description will be prepended to the assertion error if verification fails.
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 - 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.
DetachedThreadLocal<T> - Class in org.mockito.internal.util.concurrent
A detached local that allows for explicit control of setting and removing values from a thread-local context.
DetachedThreadLocal(DetachedThreadLocal.Cleaner) - Constructor for class org.mockito.internal.util.concurrent.DetachedThreadLocal
 
DetachedThreadLocal.Cleaner - Enum in org.mockito.internal.util.concurrent
Determines the cleaning format.
determineStrictness(Stubbing, MockCreationSettings, Strictness) - Static method in class org.mockito.internal.stubbing.StrictnessSelector
Determines the actual strictness in the following importance order: 1st - strictness configured when declaring stubbing; 2nd - strictness configured at mock level; 3rd - strictness configured at test level (rule, mockito session)
disable() - Method in interface org.mockito.plugins.MockMaker.ConstructionMockControl
 
disable() - Method in interface org.mockito.plugins.MockMaker.StaticMockControl
 
Discrepancy - Class in org.mockito.internal.reporting
 
Discrepancy(int, int) - Constructor for class org.mockito.internal.reporting.Discrepancy
 
DispatcherDefaultingToRealMethod() - Constructor for class org.mockito.internal.creation.bytebuddy.MockMethodInterceptor.DispatcherDefaultingToRealMethod
 
doAnswer(Answer) - Method in class org.mockito.internal.stubbing.DefaultLenientStubber
 
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.BaseStubber
Use it for stubbing consecutive calls in Mockito.doAnswer(Answer) style:
doCallRealMethod() - Method in class org.mockito.internal.stubbing.DefaultLenientStubber
 
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.BaseStubber
Use it for stubbing consecutive calls in Mockito.doCallRealMethod() style.
doesNothing() - Static method in class org.mockito.internal.stubbing.answers.DoesNothing
 
DoesNothing - Class in org.mockito.internal.stubbing.answers
 
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.DefaultLenientStubber
 
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.BaseStubber
Use it for stubbing consecutive calls in Mockito.doNothing() style:
DoNotMock - Annotation Type in org.mockito
Annotation representing a type that should not be mocked.
DoNotMockEnforcer - Interface in org.mockito.plugins
Enforcer that is applied to every type in the type hierarchy of the class-to-be-mocked.
DoNotMockEnforcer.Cache - Class in org.mockito.plugins
Static cache for types that are known to be mockable and thus may be skipped while traversing the class hierarchy.
DoNotMockEnforcerWithType - Interface in org.mockito.plugins
Enforcer that checks if a mock can be created given its type and other settings used in its creation.
DoNotMockException - Exception Class in org.mockito.exceptions.misusing
Thrown when attempting to mock a class that is annotated with DoNotMock.
DoNotMockException(String) - Constructor for exception class org.mockito.exceptions.misusing.DoNotMockException
 
doReadObject(String, MockAccess, ObjectInputStream) - Static method in class org.mockito.internal.creation.bytebuddy.MockMethodAdvice.ForReadObject
 
doReturn(Object) - Method in class org.mockito.internal.stubbing.DefaultLenientStubber
 
doReturn(Object) - Method in class org.mockito.internal.stubbing.StubberImpl
 
doReturn(Object) - Static method in class org.mockito.Mockito
Use doReturn() in those rare occasions when you cannot use Mockito.when(Object).
doReturn(Object) - Method in interface org.mockito.stubbing.BaseStubber
Use it for stubbing consecutive calls in Mockito.doReturn(Object) style.
doReturn(Object, Object...) - Method in class org.mockito.internal.stubbing.DefaultLenientStubber
 
doReturn(Object, Object...) - Method in class org.mockito.internal.stubbing.StubberImpl
 
doReturn(Object, Object...) - Static method in class org.mockito.Mockito
Same as Mockito.doReturn(Object) but sets consecutive values to be returned.
doReturn(Object, Object...) - Method in interface org.mockito.stubbing.BaseStubber
Use it for stubbing consecutive calls in Mockito.doReturn(Object) style.
doThrow(Class<? extends Throwable>) - Method in class org.mockito.internal.stubbing.DefaultLenientStubber
 
doThrow(Class<? extends Throwable>) - Method in class org.mockito.internal.stubbing.StubberImpl
 
doThrow(Class<? extends 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>) - Method in interface org.mockito.stubbing.BaseStubber
Use it for stubbing consecutive calls in Mockito.doThrow(Class) style:
doThrow(Class<? extends Throwable>, Class<? extends Throwable>...) - Method in class org.mockito.internal.stubbing.DefaultLenientStubber
 
doThrow(Class<? extends Throwable>, Class<? extends Throwable>...) - Method in class org.mockito.internal.stubbing.StubberImpl
 
doThrow(Class<? extends Throwable>, Class<? extends Throwable>...) - Static method in class org.mockito.Mockito
Same as Mockito.doThrow(Class) but sets consecutive exception classes to be thrown.
doThrow(Class<? extends Throwable>, Class<? extends Throwable>...) - Method in interface org.mockito.stubbing.BaseStubber
Use it for stubbing consecutive calls in Mockito.doThrow(Class) style:
doThrow(Throwable...) - Method in class org.mockito.internal.stubbing.DefaultLenientStubber
 
doThrow(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(Throwable...) - Method in interface org.mockito.stubbing.BaseStubber
Use it for stubbing consecutive calls in Mockito.doThrow(Throwable[]) style:
doubleThat(Matcher<Double>) - Static method in class org.mockito.hamcrest.MockitoHamcrest
Enables integrating hamcrest matchers that match primitive double arguments.
doubleThat(ArgumentMatcher<Double>) - Static method in class org.mockito.ArgumentMatchers
Allows creating custom double argument matchers.
doWriteReplace(MockAccess) - Static method in class org.mockito.internal.creation.bytebuddy.MockMethodInterceptor.ForWriteReplace
 
duration() - Method in class org.mockito.internal.util.Timer
 
A B C D E F G H I J K L M N O P R S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form