org.jmock.core
Interface SelfDescribing

All Known Subinterfaces:
Constraint, InvocationDispatcher, InvocationMatcher, Invokable, Stub
All Known Implementing Classes:
AbstractInvocationDispatcher, And, AnyArgumentsMatcher, ArgumentsMatcher, CustomStub, DefaultResultStub, FIFOInvocationDispatcher, HasProperty, HasPropertyWithValue, Invocation, InvocationMocker, InvokeAtLeastOnceMatcher, InvokeCountMatcher, InvokedAfterMatcher, InvokedRecorder, InvokeOnceMatcher, IsAnything, IsCloseTo, IsEqual, IsEventFrom, IsGreaterThan, IsInstanceOf, IsLessThan, IsNot, IsNothing, IsNull, IsSame, LIFOInvocationDispatcher, MethodNameMatcher, NoArgumentsMatcher, Or, ReturnIteratorStub, 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.

Since:
1.0

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

Method Detail

describeTo

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.