Interface JUnitTaskMirror.JUnitTestRunnerMirror
- All Known Implementing Classes:
- JUnitTestRunner
- Enclosing interface:
- JUnitTaskMirror
public static interface JUnitTaskMirror.JUnitTestRunnerMirror
Interface that test runners implement.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intAn error occurred.static final intSome tests failed.static final StringUsed 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 final intNo problems with this test.
- 
Method SummaryModifier and TypeMethodDescriptionvoidAdd a formatter to the test.intReturns what System.exit() would return in the standalone version.voidhandleErrorFlush(String output) Handle output sent to System.err.voidhandleErrorOutput(String output) Handle output sent to System.err.voidhandleFlush(String output) Handle output sent to System.out.inthandleInput(byte[] buffer, int offset, int length) Handle an input request.voidhandleOutput(String output) Handle output sent to System.out.voidrun()Run the test.voidsetPermissions(Permissions perm) Permissions for the test run.
- 
Field Details- 
IGNORED_FILE_NAMEUsed in formatter arguments as a placeholder for the basename of the output file (which gets replaced by a test specific output file name later).- Since:
- Ant 1.6.3
- See Also:
 
- 
SUCCESSstatic final int SUCCESSNo problems with this test.- See Also:
 
- 
FAILURESstatic final int FAILURESSome tests failed.- See Also:
 
- 
ERRORSstatic final int ERRORSAn error occurred.- See Also:
 
 
- 
- 
Method Details- 
setPermissionsPermissions for the test run.- Parameters:
- perm- the permissions to use.
 
- 
runvoid run()Run the test.
- 
addFormatterAdd a formatter to the test.- Parameters:
- formatter- the formatter to use.
 
- 
getRetCodeint getRetCode()Returns what System.exit() would return in the standalone version.- Returns:
- 2 if errors occurred, 1 if tests failed else 0.
 
- 
handleErrorFlushHandle output sent to System.err.- Parameters:
- output- coming from System.err
 
- 
handleErrorOutputHandle output sent to System.err.- Parameters:
- output- output for System.err
 
- 
handleOutputHandle output sent to System.out.- Parameters:
- output- output for System.out.
 
- 
handleInputHandle an input request.- 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.
 
- 
handleFlushHandle output sent to System.out.- Parameters:
- output- output for System.out.
 
 
-