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.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.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.