Package org.apache.maven.surefire.booter
Class ForkingReporterFactory
- java.lang.Object
-
- org.apache.maven.surefire.booter.ForkingReporterFactory
-
- All Implemented Interfaces:
ReporterFactory
public class ForkingReporterFactory extends java.lang.Object implements ReporterFactory
Creates ForkingReporters, which are typically one instance per TestSet or thread. This factory is only used inside forks.
-
-
Field Summary
Fields Modifier and Type Field Description private ForkedChannelEncodereventChannelprivate booleantrimstackTrace
-
Constructor Summary
Constructors Constructor Description ForkingReporterFactory(boolean trimstackTrace, ForkedChannelEncoder eventChannel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RunResultclose()Closes the factory, freeing resources allocated in the factory.RunListenercreateReporter()Creates a reporter.
-
-
-
Field Detail
-
trimstackTrace
private final boolean trimstackTrace
-
eventChannel
private final ForkedChannelEncoder eventChannel
-
-
Constructor Detail
-
ForkingReporterFactory
public ForkingReporterFactory(boolean trimstackTrace, ForkedChannelEncoder eventChannel)
-
-
Method Detail
-
createReporter
public RunListener createReporter()
Description copied from interface:ReporterFactoryCreates a reporter.- Specified by:
createReporterin interfaceReporterFactory- Returns:
- A reporter instance
-
close
public RunResult close()
Description copied from interface:ReporterFactoryCloses the factory, freeing resources allocated in the factory.- Specified by:
closein interfaceReporterFactory- Returns:
- The run result
-
-