org.jmock.core

Interface SelfDescribing

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

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.