aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/junit/framework/TestListener.java
blob: 32d1a7f23180204e5bd237e3cdf9d76081455541 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package junit.framework;

/**
 * A Listener for test progress
 */
public interface TestListener {
    /**
     * An error occurred.
     */
    public void addError(Test test, Throwable e);

    /**
     * A failure occurred.
     */
    public void addFailure(Test test, AssertionFailedError e);

    /**
     * A test ended.
     */
    public void endTest(Test test);

    /**
     * A test started.
     */
    public void startTest(Test test);
}