org.mockito.internal.stubbing
Class StubbedInvocationMatcher

java.lang.Object
  extended by org.mockito.internal.invocation.InvocationMatcher
      extended by org.mockito.internal.stubbing.StubbedInvocationMatcher
All Implemented Interfaces:
PrintableInvocation, CanPrintInMultilines

public class StubbedInvocationMatcher
extends InvocationMatcher


Constructor Summary
StubbedInvocationMatcher(InvocationMatcher invocation, Answer answer)
           
 
Method Summary
 void addAnswer(Answer answer)
           
 java.lang.Object answer(Invocation invocation)
           
 java.lang.String toString()
           
 
Methods inherited from class org.mockito.internal.invocation.InvocationMatcher
getInvocation, getMatchers, getMethod, hasSameMethod, hasSimilarMethod, matches, printsInMultilines, toMultilineString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StubbedInvocationMatcher

public StubbedInvocationMatcher(InvocationMatcher invocation,
                                Answer answer)
Method Detail

answer

public java.lang.Object answer(Invocation invocation)
                        throws java.lang.Throwable
Throws:
java.lang.Throwable

addAnswer

public void addAnswer(Answer answer)

toString

public java.lang.String toString()
Specified by:
toString in interface PrintableInvocation
Specified by:
toString in interface CanPrintInMultilines
Overrides:
toString in class InvocationMatcher