Package org.mockito.stubbing
package org.mockito.stubbing
External stubbing related classes
-
InterfacesClassDescriptionAnswer<T>Generic interface to be used for configuring mock's answer.Stubs a method call with return value or an exception.Simply put: "When the x method is called then return y".Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() styleStubs void method with an exception.