org.mockito.internal.stubbing
Class MockitoStubber
java.lang.Object
org.mockito.internal.stubbing.MockitoStubber
public class MockitoStubber
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MockitoStubber
public MockitoStubber(MockingProgress mockingProgress)
setInvocationForPotentialStubbing
public void setInvocationForPotentialStubbing(InvocationMatcher invocation)
addAnswer
public void addAnswer(Answer answer)
addConsecutiveAnswer
public void addConsecutiveAnswer(Answer answer)
hasResultFor
public boolean hasResultFor(Invocation invocation)
getResultFor
public java.lang.Object getResultFor(Invocation invocation)
throws java.lang.Throwable
- Throws:
java.lang.Throwable
addAnswerForVoidMethod
public void addAnswerForVoidMethod(Answer answer)
setAnswersForStubbing
public void setAnswersForStubbing(java.util.List<Answer> answers)
hasAnswersForStubbing
public boolean hasAnswersForStubbing()
setMethodForStubbing
public void setMethodForStubbing(InvocationMatcher invocation)