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 ForkedChannelEncoder
eventChannel
private boolean
trimstackTrace
-
Constructor Summary
Constructors Constructor Description ForkingReporterFactory(boolean trimstackTrace, ForkedChannelEncoder eventChannel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RunResult
close()
Closes the factory, freeing resources allocated in the factory.RunListener
createReporter()
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:ReporterFactory
Creates a reporter.- Specified by:
createReporter
in interfaceReporterFactory
- Returns:
- A reporter instance
-
close
public RunResult close()
Description copied from interface:ReporterFactory
Closes the factory, freeing resources allocated in the factory.- Specified by:
close
in interfaceReporterFactory
- Returns:
- The run result
-
-