|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface JUnitTaskMirror.JUnitTestRunnerMirror
Interface that test runners implement.
Field Summary | |
---|---|
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. |
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(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. |
Field Detail |
---|
static final java.lang.String IGNORED_FILE_NAME
static final int SUCCESS
static final int FAILURES
static final int ERRORS
Method Detail |
---|
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |