test.jmock.core.testsupport
Class MockInvokable

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

public class MockInvokable
extends MockVerifiable
implements Invokable


Field Summary
 ExpectationValue invokeInvocation
           
 Object invokeResult
           
 Throwable invokeThrow
           
 ExpectationValue matchesInvocation
           
 boolean matchesResult
           
 
Fields inherited from class test.jmock.core.testsupport.MockVerifiable
verifyCalls, verifyFailure
 
Constructor Summary
MockInvokable()
           
 
Method Summary
 StringBuffer describeTo(StringBuffer buffer)
          Appends the description of this object to the buffer.
 boolean hasDescription()
           
 Object invoke(Invocation invocation)
           
 boolean matches(Invocation invocation)
           
 
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, toString, wait, wait, wait
 
Methods inherited from interface org.jmock.core.Verifiable
verify
 

Field Detail

matchesResult

public boolean matchesResult

matchesInvocation

public ExpectationValue matchesInvocation

invokeResult

public Object invokeResult

invokeInvocation

public ExpectationValue invokeInvocation

invokeThrow

public Throwable invokeThrow
Constructor Detail

MockInvokable

public MockInvokable()
Method Detail

matches

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

invoke

public Object invoke(Invocation invocation)
              throws Throwable
Specified by:
invoke in interface Invokable
Throws:
Throwable

hasDescription

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

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.