A B C D E F G H I L M N O P R S T U V W
All Classes All Packages
All Classes All Packages
All Classes All Packages
D
- 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 interface org.mockito.verification.VerificationMode
-
Description will be prepended to the assertion error if verification fails.
- disable() - Method in interface org.mockito.plugins.MockMaker.ConstructionMockControl
- disable() - Method in interface org.mockito.plugins.MockMaker.StaticMockControl
- doAnswer(Answer) - Static method in class org.mockito.Mockito
-
Use
doAnswer()
when you want to stub a void method with genericAnswer
. - doAnswer(Answer) - Method in interface org.mockito.stubbing.BaseStubber
-
Use it for stubbing consecutive calls in
Mockito.doAnswer(Answer)
style: - 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. - 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.
- DoNotMockException - Exception in org.mockito.exceptions.misusing
-
Thrown when attempting to mock a class that is annotated with
DoNotMock
. - DoNotMockException(String) - Constructor for exception org.mockito.exceptions.misusing.DoNotMockException
- doReturn(Object) - Static method in class org.mockito.Mockito
-
Use
doReturn()
in those rare occasions when you cannot useMockito.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...) - 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>) - 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>...) - 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...) - 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.
All Classes All Packages