org.mockito.internal.stubbing
Class MockitoStubber

java.lang.Object
  extended by org.mockito.internal.stubbing.MockitoStubber

public class MockitoStubber
extends java.lang.Object


Constructor Summary
MockitoStubber(MockingProgress mockingProgress)
           
 
Method Summary
 void addAnswer(Answer answer)
           
 void addAnswerForVoidMethod(Answer answer)
           
 void addConsecutiveAnswer(Answer answer)
           
 java.lang.Object getResultFor(Invocation invocation)
           
 boolean hasAnswersForStubbing()
           
 boolean hasResultFor(Invocation invocation)
           
 void setAnswersForStubbing(java.util.List<Answer> answers)
           
 void setInvocationForPotentialStubbing(InvocationMatcher invocation)
           
 void setMethodForStubbing(InvocationMatcher invocation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockitoStubber

public MockitoStubber(MockingProgress mockingProgress)
Method Detail

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)