org.mockito.internal.stubbing
Class Stubber
java.lang.Object
org.mockito.internal.stubbing.Stubber
public class Stubber
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Stubber
public Stubber(MockingProgress mockingProgress)
setInvocationForPotentialStubbing
public void setInvocationForPotentialStubbing(InvocationMatcher invocation)
addReturnValue
public void addReturnValue(java.lang.Object value)
addThrowable
public void addThrowable(java.lang.Throwable throwable)
addConsecutiveReturnValue
public void addConsecutiveReturnValue(java.lang.Object value)
addConsecutiveThrowable
public void addConsecutiveThrowable(java.lang.Throwable throwable)
resultFor
public java.lang.Object resultFor(Invocation invocation)
throws java.lang.Throwable
- Throws:
java.lang.Throwable
addThrowableForVoidMethod
public void addThrowableForVoidMethod(java.lang.Throwable throwable)
hasThrowableForVoidMethod
public boolean hasThrowableForVoidMethod()
addVoidMethodForThrowable
public void addVoidMethodForThrowable(InvocationMatcher voidMethodInvocationMatcher)