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> DeprecatedOngoingStubbing<T> |
Mockito.stub(T methodCall)
Stubs a method call with return value or an exception.
|
Modifier and Type | Method and Description |
---|---|
<T> DeprecatedOngoingStubbing<T> |
MockitoCore.stub(T methodCall) |
Modifier and Type | Class and Description |
---|---|
class |
BaseStubbing<T> |
class |
ConsecutiveStubbing<T> |
class |
OngoingStubbingImpl<T> |
Modifier and Type | Method and Description |
---|---|
DeprecatedOngoingStubbing<T> |
OngoingStubbingImpl.toAnswer(Answer<?> answer) |
DeprecatedOngoingStubbing<T> |
ConsecutiveStubbing.toAnswer(Answer<?> answer) |
DeprecatedOngoingStubbing<T> |
BaseStubbing.toReturn(T value) |
DeprecatedOngoingStubbing<T> |
BaseStubbing.toThrow(Throwable throwable) |
Modifier and Type | Method and Description |
---|---|
DeprecatedOngoingStubbing<T> |
DeprecatedOngoingStubbing.toAnswer(Answer<?> answer)
Set a generic Answer for the stubbed method.
|
DeprecatedOngoingStubbing<T> |
DeprecatedOngoingStubbing.toReturn(T value)
Set a return value for the stubbed method.
|
DeprecatedOngoingStubbing<T> |
DeprecatedOngoingStubbing.toThrow(Throwable throwable)
Set a Throwable to be thrown when the stubbed method is called.
|
Copyright © 2018. All rights reserved.