Package | Description |
---|---|
org.mockito |
Mockito is a mock library for java - see Mockito class for for usage.
|
org.mockito.internal |
Internal classes, not to be used by clients.
|
org.mockito.internal.stubbing |
Stubbing logic.
|
org.mockito.stubbing |
External stubbing related classes
|
Modifier and Type | Method and Description |
---|---|
static <T> VoidMethodStubbable<T> |
Mockito.stubVoid(T mock)
Deprecated.
Use
Mockito.doThrow(Throwable...) method for stubbing voids |
Modifier and Type | Method and Description |
---|---|
<T> VoidMethodStubbable<T> |
MockitoCore.stubVoid(T mock) |
VoidMethodStubbable<T> |
InternalMockHandler.voidMethodStubbable(T mock) |
Modifier and Type | Class and Description |
---|---|
class |
VoidMethodStubbableImpl<T> |
Modifier and Type | Method and Description |
---|---|
VoidMethodStubbable<T> |
VoidMethodStubbableImpl.toAnswer(Answer<?> answer) |
VoidMethodStubbable<T> |
VoidMethodStubbableImpl.toReturn() |
VoidMethodStubbable<T> |
VoidMethodStubbableImpl.toThrow(Throwable throwable) |
Modifier and Type | Method and Description |
---|---|
VoidMethodStubbable<T> |
VoidMethodStubbable.toAnswer(Answer<?> answer)
Stubs a void method with generic
Answer |
VoidMethodStubbable<T> |
VoidMethodStubbable.toReturn()
Stubs void method to 'just return' (e.g.
|
VoidMethodStubbable<T> |
VoidMethodStubbable.toThrow(Throwable throwable)
Stubs void method with an exception.
|