Package org.apache.maven.surefire.junit
Class JUnit3Reporter
java.lang.Object
org.apache.maven.surefire.junit.JUnit3Reporter
- All Implemented Interfaces:
RunListener,TestOutputReceiver<OutputReportEntry>,RunModeSetter
final class JUnit3Reporter
extends Object
implements RunListener, TestOutputReceiver<OutputReportEntry>, RunModeSetter
This implementation of
RunListener handles OutputReportEntry in the
output receiver, downcasting to TestOutputReportEntry, and
delegates the report entry to the TestReportListener.
This object necessarily requires setting the RunMode in order to behave properly.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ClassMethodIndexerprivate final TestReportListener<TestOutputReportEntry>private RunMode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) ClassMethodIndexervoidsetRunMode(RunMode runMode) voidtestAssumptionFailure(ReportEntry report) Event fired when a test assumption failure was encountered.voidtestError(ReportEntry report) Event fired when a test ended with an error (non anticipated problem)voidEvent fired skipping an execution of remaining test-set in other fork(s); or does nothing if no forks.voidtestFailed(ReportEntry report) Event fired when a test ended with a failure (anticipated problem)voidtestSetCompleted(TestSetReportEntry report) Indicates end of a given test-setvoidtestSetStarting(TestSetReportEntry report) Indicates the start of a given test-setvoidtestSkipped(ReportEntry report) Event fired when a test is skippedvoidtestStarting(ReportEntry report) Event fired when a test is about to startvoidtestSucceeded(ReportEntry report) Event fired when a test ended successfullyvoidwriteTestOutput(OutputReportEntry reportEntry) Forwards process output from the running test-case into the reporting system
-
Field Details
-
classMethodIndexer
-
reporter
-
runMode
-
-
Constructor Details
-
JUnit3Reporter
JUnit3Reporter(TestReportListener<TestOutputReportEntry> reporter)
-
-
Method Details
-
getClassMethodIndexer
ClassMethodIndexer getClassMethodIndexer() -
setRunMode
- Specified by:
setRunModein interfaceRunModeSetter
-
testSetStarting
Description copied from interface:RunListenerIndicates the start of a given test-set- Specified by:
testSetStartingin interfaceRunListener- Parameters:
report- the report entry describing the testset
-
testSetCompleted
Description copied from interface:RunListenerIndicates end of a given test-set- Specified by:
testSetCompletedin interfaceRunListener- Parameters:
report- the report entry describing the testset
-
testStarting
Description copied from interface:RunListenerEvent fired when a test is about to start- Specified by:
testStartingin interfaceRunListener- Parameters:
report- The report entry to log for
-
testSucceeded
Description copied from interface:RunListenerEvent fired when a test ended successfully- Specified by:
testSucceededin interfaceRunListener- Parameters:
report- The report entry to log for
-
testAssumptionFailure
Description copied from interface:RunListenerEvent fired when a test assumption failure was encountered. An assumption failure indicates that the test is not relevant- Specified by:
testAssumptionFailurein interfaceRunListener- Parameters:
report- The report entry to log for
-
testError
Description copied from interface:RunListenerEvent fired when a test ended with an error (non anticipated problem)- Specified by:
testErrorin interfaceRunListener- Parameters:
report- The report entry to log for
-
testFailed
Description copied from interface:RunListenerEvent fired when a test ended with a failure (anticipated problem)- Specified by:
testFailedin interfaceRunListener- Parameters:
report- The report entry to log for
-
testSkipped
Description copied from interface:RunListenerEvent fired when a test is skipped- Specified by:
testSkippedin interfaceRunListener- Parameters:
report- The report entry to log for
-
testExecutionSkippedByUser
public void testExecutionSkippedByUser()Description copied from interface:RunListenerEvent fired skipping an execution of remaining test-set in other fork(s); or does nothing if no forks. The method is called bySurefireProvider.(The event is fired after the Nth test failed to signal skipping the rest of test-set.)
- Specified by:
testExecutionSkippedByUserin interfaceRunListener
-
writeTestOutput
Description copied from interface:TestOutputReceiverForwards process output from the running test-case into the reporting system- Specified by:
writeTestOutputin interfaceTestOutputReceiver<OutputReportEntry>- Parameters:
reportEntry- wraps test output with descriptive information of the output
-