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> OngoingStubbing<T> |
Mockito.when(T methodCall)
Enables stubbing methods.
|
Constructor and Description |
---|
BDDOngoingStubbingImpl(OngoingStubbing<T> ongoingStubbing) |
Modifier and Type | Method and Description |
---|---|
<T> OngoingStubbing<T> |
MockitoCore.when(T methodCall) |
Modifier and Type | Class and Description |
---|---|
class |
BaseStubbing<T> |
class |
ConsecutiveStubbing<T> |
class |
OngoingStubbingImpl<T> |
Modifier and Type | Method and Description |
---|---|
OngoingStubbing<T> |
OngoingStubbingImpl.thenAnswer(Answer<?> answer) |
OngoingStubbing<T> |
ConsecutiveStubbing.thenAnswer(Answer<?> answer) |
OngoingStubbing<T> |
BaseStubbing.thenCallRealMethod() |
OngoingStubbing<T> |
BaseStubbing.thenReturn(T value) |
OngoingStubbing<T> |
BaseStubbing.thenReturn(T value,
T... values) |
OngoingStubbing<T> |
BaseStubbing.thenThrow(Throwable... throwables) |
Modifier and Type | Method and Description |
---|---|
OngoingStubbing<T> |
OngoingStubbing.thenAnswer(Answer<?> answer)
Sets a generic Answer for the method.
|
OngoingStubbing<T> |
OngoingStubbing.thenCallRealMethod()
Sets the real implementation to be called when the method is called on a mock object.
|
OngoingStubbing<T> |
OngoingStubbing.thenReturn(T value)
Sets a return value to be returned when the method is called.
|
OngoingStubbing<T> |
OngoingStubbing.thenReturn(T value,
T... values)
Sets consecutive return values to be returned when the method is called.
|
OngoingStubbing<T> |
OngoingStubbing.thenThrow(Throwable... throwables)
Sets Throwable objects to be thrown when the method is called.
|
Copyright © 2018. All rights reserved.