1 /* Copyright (c) 2000-2004 jMock.org 2 */ 3 package org.jmock.core; 4 5 6 /** 7 * An object that can describe itself. 8 * Used when reporting a missed expectation in a test case. 9 */ 10 public interface SelfDescribing 11 { 12 /** 13 * Appends the description of this object to the buffer. 14 * 15 * @param buffer The buffer that the description is appended to. 16 * @return The buffer passed to the invokedMethod. 17 */ 18 StringBuffer describeTo( StringBuffer buffer ); 19 } 20