test.jmock.core.testsupport
Class MockInvocationMatcher

java.lang.Object
  extended bytest.jmock.core.testsupport.MockVerifiable
      extended bytest.jmock.core.testsupport.MockInvocationMatcher
All Implemented Interfaces:
InvocationMatcher, SelfDescribing, Verifiable

public class MockInvocationMatcher
extends MockVerifiable
implements InvocationMatcher


Field Summary
 ExpectationValue describeToBuffer
           
 String describeToOutput
           
 ExpectationValue invokedInvocation
           
 ExpectationValue matchesInvocation
           
 boolean matchesResult
           
 
Fields inherited from class test.jmock.core.testsupport.MockVerifiable
verifyCalls, verifyFailure
 
Constructor Summary
MockInvocationMatcher()
           
MockInvocationMatcher(String name)
           
 
Method Summary
 StringBuffer describeTo(StringBuffer buffer)
          Appends the description of this object to the buffer.
 boolean hasDescription()
           
 void invoked(Invocation invocation)
           
 boolean matches(Invocation invocation)
           
 String toString()
           
 
Methods inherited from class test.jmock.core.testsupport.MockVerifiable
setExpectedVerifyCalls, verify, verifyExpectations
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jmock.core.Verifiable
verify
 

Field Detail

matchesInvocation

public ExpectationValue matchesInvocation

matchesResult

public boolean matchesResult

invokedInvocation

public ExpectationValue invokedInvocation

describeToBuffer

public ExpectationValue describeToBuffer

describeToOutput

public String describeToOutput
Constructor Detail

MockInvocationMatcher

public MockInvocationMatcher(String name)

MockInvocationMatcher

public MockInvocationMatcher()
Method Detail

toString

public String toString()

matches

public boolean matches(Invocation invocation)
Specified by:
matches in interface InvocationMatcher

invoked

public void invoked(Invocation invocation)
Specified by:
invoked in interface InvocationMatcher

hasDescription

public boolean hasDescription()
Specified by:
hasDescription in interface InvocationMatcher

describeTo

public StringBuffer describeTo(StringBuffer buffer)
Description copied from interface: SelfDescribing
Appends the description of this object to the buffer.

Specified by:
describeTo in interface SelfDescribing
Parameters:
buffer - The buffer that the description is appended to.
Returns:
The buffer passed to the invokedMethod.