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
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. -
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
Methods 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 TypeMethodDescriptionvoidMockingProgress.reportOngoingStubbing(OngoingStubbing<?> ongoingStubbing) voidMockingProgressImpl.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) <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.