Uses of Interface
org.mockito.stubbing.OngoingStubbing
Packages that use OngoingStubbing
Package
Description
Mockito is a mock library for java - see
Mockito
class for usage.Internal classes, not to be used by clients.
Mocking progress stateful classes.
Stubbing logic.
Stubbing related classes.
-
Uses of OngoingStubbing in org.mockito
Fields in org.mockito declared as OngoingStubbingModifier and TypeFieldDescriptionprivate final OngoingStubbing
<T> BDDMockito.BDDOngoingStubbingImpl.mockitoOngoingStubbing
Methods in org.mockito that return OngoingStubbingModifier and TypeMethodDescription<S> OngoingStubbing
<S> MockedStatic.when
(MockedStatic.Verification verification) SeeMockito.when(Object)
.static <T> OngoingStubbing
<T> Mockito.when
(T methodCall) Enables stubbing methods.Constructors in org.mockito with parameters of type OngoingStubbing -
Uses of OngoingStubbing in org.mockito.internal
Methods in org.mockito.internal that return OngoingStubbingModifier and TypeMethodDescription<S> OngoingStubbing
<S> MockedStaticImpl.when
(MockedStatic.Verification verification) <T> OngoingStubbing
<T> MockitoCore.when
(T methodCall) -
Uses of OngoingStubbing in org.mockito.internal.progress
Fields in org.mockito.internal.progress declared as OngoingStubbingMethods in org.mockito.internal.progress that return OngoingStubbingModifier and TypeMethodDescriptionMockingProgress.pullOngoingStubbing()
MockingProgressImpl.pullOngoingStubbing()
Methods in org.mockito.internal.progress with parameters of type OngoingStubbingModifier and TypeMethodDescriptionvoid
MockingProgress.reportOngoingStubbing
(OngoingStubbing<?> ongoingStubbing) void
MockingProgressImpl.reportOngoingStubbing
(OngoingStubbing ongoingStubbing) -
Uses of OngoingStubbing in org.mockito.internal.stubbing
Classes in org.mockito.internal.stubbing that implement OngoingStubbingMethods in org.mockito.internal.stubbing that return OngoingStubbingModifier and TypeMethodDescriptionConsecutiveStubbing.thenAnswer
(Answer<?> answer) OngoingStubbingImpl.thenAnswer
(Answer<?> answer) BaseStubbing.thenCallRealMethod()
BaseStubbing.thenReturn
(T value) BaseStubbing.thenReturn
(T value, T... values) BaseStubbing.thenThrow
(Class<? extends Throwable> toBeThrown, Class<? extends Throwable>... nextToBeThrown) private OngoingStubbing
<T> <T> OngoingStubbing
<T> DefaultLenientStubber.when
(T methodCall) -
Uses of OngoingStubbing in org.mockito.stubbing
Methods in org.mockito.stubbing that return OngoingStubbingModifier and TypeMethodDescriptionSets a generic Answer for the method.OngoingStubbing.thenAnswer
(Answer<?> answer) Sets a generic Answer for the method.OngoingStubbing.thenCallRealMethod()
Sets the real implementation to be called when the method is called on a mock object.OngoingStubbing.thenReturn
(T value) Sets a return value to be returned when the method is called.OngoingStubbing.thenReturn
(T value, T... values) Sets consecutive return values to be returned when the method is called.Sets a Throwable type to be thrown when the method is called.OngoingStubbing.thenThrow
(Class<? extends Throwable> toBeThrown, Class<? extends Throwable>... nextToBeThrown) Sets Throwable classes to be thrown when the method is called.Sets Throwable objects to be thrown when the method is called.<T> OngoingStubbing
<T> LenientStubber.when
(T methodCall) Allows declaring the method to stub.