JUnitTestRunner
public static interface JUnitTaskMirror.JUnitTestRunnerMirror
Modifier and Type | Field | Description |
---|---|---|
static int |
ERRORS |
An error occurred.
|
static int |
FAILURES |
Some tests failed.
|
static java.lang.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).
|
static int |
SUCCESS |
No problems with this test.
|
Modifier and Type | Method | Description |
---|---|---|
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(java.lang.String output) |
Handle output sent to System.err.
|
void |
handleErrorOutput(java.lang.String output) |
Handle output sent to System.err.
|
void |
handleFlush(java.lang.String output) |
Handle output sent to System.out.
|
int |
handleInput(byte[] buffer,
int offset,
int length) |
Handle an input request.
|
void |
handleOutput(java.lang.String output) |
Handle output sent to System.out.
|
void |
run() |
Run the test.
|
void |
setPermissions(Permissions perm) |
Permissions for the test run.
|
static final java.lang.String IGNORED_FILE_NAME
static final int SUCCESS
static final int FAILURES
static final int ERRORS
void setPermissions(Permissions perm)
perm
- the permissions to use.void run()
void addFormatter(JUnitTaskMirror.JUnitResultFormatterMirror formatter)
formatter
- the formatter to use.int getRetCode()
void handleErrorFlush(java.lang.String output)
output
- coming from System.errvoid handleErrorOutput(java.lang.String output)
output
- output for System.errvoid handleOutput(java.lang.String output)
output
- output for System.out.int handleInput(byte[] buffer, int offset, int length) throws java.io.IOException
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.java.io.IOException
- if the data cannot be read.void handleFlush(java.lang.String output)
output
- output for System.out.