1 package randomunit;
2
3 import java.lang.reflect.Method;
4
5 /**
6 * This interface reads <code>MethodInvocationLog</code>s and reports its contents to help diagnose
7 * a problem.
8 *
9 * @see RandomizedTestCase
10 * @author Andreou Dimitris, andreou < at > csd dot uoc dot gr
11 */
12 public interface LogStrategy {
13 /**
14 * Appends an execution log. The test method that was executed is provided,
15 * its arguments, and the returned value.
16 */
17 void appendLog(MethodInvocationLog log);
18
19 /**
20 * Returns a textual representation of the log entries (possibly truncated) in this LogStrategy.
21 * This is used for the messages of exceptions thrown by a randomized test.
22 */
23 String dump();
24 }