1 /* Formatter.java */
2
3 package org.quilt.reports;
4
5 import java.io.OutputStream;
6
7 import junit.framework.TestListener;
8 import org.apache.tools.ant.BuildException;
9
10 import org.quilt.framework.QuiltTest;
11 import org.quilt.runner.Runner;
12
13 /***
14 * Interface presented by all Ant/Quilt-compatible test result formatters.
15 * Extend BaseFormatter to build new formatters.
16 */
17
18 public interface Formatter extends TestListener {
19 /*** Enable filtering of Ant/Quilt/JUnit lines from stack traces. */
20 public void setFiltertrace(boolean b);
21 public void setOutput(OutputStream out);
22 /*** Select test runner to use. */
23 public void setRunner(Runner testrunner);
24 public void setSystemError(String err);
25 public void setSystemOutput(String out);
26
27 /*** Called at beginning of test suite run. */
28 public void startTestSuite (QuiltTest suite) throws BuildException;
29 /*** Called at end of test suite run. */
30 public void endTestSuite (QuiltTest suite) throws BuildException;
31 }
This page was automatically generated by Maven