KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jmock > core > SelfDescribing


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 JavaDoc describeTo( StringBuffer JavaDoc buffer );
19 }
20
Popular Tags