org.apache.tools.ant.taskdefs.optional.junit
public static interface JUnitTaskMirror.JUnitTestRunnerMirror
| Field Summary | |
|---|---|
| int | ERRORS
An error occurred. |
| int | FAILURES
Some tests failed. |
| String | IGNORED_FILE_NAME
Used in formatter arguments as a placeholder for the basename
of the output file (which gets replaced by a test specific
output file name later).
|
| int | SUCCESS
No problems with this test. |
| Method Summary | |
|---|---|
| void | addFormatter(JUnitTaskMirror.JUnitResultFormatterMirror formatter)
Add a formatter to the test. |
| int | getRetCode()
Returns what System.exit() would return in the standalone version.
|
| void | handleErrorFlush(String output)
Handle output sent to System.err.
|
| void | handleErrorOutput(String output)
Handle output sent to System.err.
|
| void | handleFlush(String output)
Handle output sent to System.out.
|
| int | handleInput(byte[] buffer, int offset, int length)
Handle an input request.
|
| void | handleOutput(String output)
Handle output sent to System.out.
|
| void | run() Run the test. |
| void | setPermissions(Permissions perm)
Permissions for the test run. |
Since: Ant 1.6.3
Parameters: formatter the formatter to use.
Returns: 2 if errors occurred, 1 if tests failed else 0.
Parameters: output coming from System.err
Parameters: output output for System.err
Parameters: output output for System.out.
Parameters: buffer the buffer into which data is to be read. offset the offset into the buffer at which data is stored. length the amount of data to read.
Returns: the number of bytes read.
Throws: IOException if the data cannot be read.
Parameters: output output for System.out.
Parameters: perm the permissions to use.