- defaultAnswer(Answer) - Method in interface org.mockito.MockSettings
-
Specifies default answers to interactions.
- DefaultMockitoConfiguration - Class in org.mockito.configuration
-
DefaultConfiguration of Mockito framework
- DefaultMockitoConfiguration() - Constructor for class org.mockito.configuration.DefaultMockitoConfiguration
-
- delegatesTo(Object) - Static method in class org.mockito.AdditionalAnswers
-
An answer that directly forwards the calls to the delegate.
- DescribedInvocation - Interface in org.mockito.invocation
-
Provides information about the invocation, specifically a human readable description and the location.
- 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.
- 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() - 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
-
- 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) - Static method in class org.mockito.Mockito
-
- doReturn(Object, Object...) - Static method in class org.mockito.Mockito
-
- doReturn(Object) - Method in interface org.mockito.stubbing.Stubber
-
- doReturn(Object, Object...) - Method in interface org.mockito.stubbing.Stubber
-
- 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 with an exception.
- doThrow(Class<? extends Throwable>, Class<? extends Throwable>...) - Static method in class org.mockito.Mockito
-
- doThrow(Throwable...) - Method in interface org.mockito.stubbing.Stubber
-
- doThrow(Class<? extends Throwable>) - Method in interface org.mockito.stubbing.Stubber
-
- doThrow(Class<? extends Throwable>, Class<? extends Throwable>...) - Method in interface org.mockito.stubbing.Stubber
-
- doubleThat(ArgumentMatcher<Double>) - Static method in class org.mockito.ArgumentMatchers
-
Allows creating custom double
argument matchers.
- doubleThat(Matcher<Double>) - Static method in class org.mockito.hamcrest.MockitoHamcrest
-
Enables integrating hamcrest matchers that match primitive double
arguments.