org.jmock.core
Interface SelfDescribing

All Known Subinterfaces:
Constraint, InvocationDispatcher, InvocationMatcher, Invokable, Stub
All Known Implementing Classes:
AlwaysFalse, AlwaysTrue, And, CustomStub, DefaultResultStub, FIFOInvocationDispatcher, Invocation, InvocationMocker, InvokedRecorder, IsAnything, IsCloseTo, IsEqual, IsEventFrom, IsGreaterThan, IsInstanceOf, IsLessThan, IsNot, IsNull, IsSame, LIFOInvocationDispatcher, MockConstraint, MockInvocationDispatcher, MockInvocationMatcher, MockInvokable, MockStub, Or, ReturnStub, StatelessInvocationMatcher, StringContains, StubSequence, TestFailureMatcher, TestFailureStub, ThrowStub, VoidStub

public interface SelfDescribing

An object that can describe itself. Used when reporting a missed expectation in a test case.


Method Summary
 StringBuffer describeTo(StringBuffer buffer)
          Appends the description of this object to the buffer.
 

Method Detail

describeTo

public StringBuffer describeTo(StringBuffer buffer)
Appends the description of this object to the buffer.

Parameters:
buffer - The buffer that the description is appended to.
Returns:
The buffer passed to the invokedMethod.