Class TestSetRunListener
- java.lang.Object
-
- org.apache.maven.plugin.surefire.report.TestSetRunListener
-
- All Implemented Interfaces:
org.apache.maven.plugin.surefire.log.api.ConsoleLogger
,RunListener
,TestOutputReceiver<TestOutputReportEntry>
,TestReportListener<TestOutputReportEntry>
public class TestSetRunListener extends Object implements TestReportListener<TestOutputReportEntry>
Reports data for a single test set.- Author:
- Kristian Rosenvold
-
-
Constructor Summary
Constructors Constructor Description TestSetRunListener(StatelessTestsetInfoConsoleReportEventListener<WrappedReportEntry,TestSetStats> consoleReporter, StatelessTestsetInfoFileReportEventListener<WrappedReportEntry,TestSetStats> fileReporter, StatelessReportEventListener<WrappedReportEntry,TestSetStats> simpleXMLReporter, ConsoleOutputReportEventListener testOutputReceiver, StatisticsReporter statisticsReporter, boolean trimStackTrace, boolean isPlainFormat, boolean briefOrPlainFormat, Object lock)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
debug(String message)
void
error(String message)
void
error(String message, Throwable t)
void
error(Throwable t)
Queue<TestMethodStats>
getTestMethodStats()
void
info(String message)
boolean
isDebugEnabled()
boolean
isErrorEnabled()
boolean
isInfoEnabled()
boolean
isWarnEnabled()
void
testAssumptionFailure(ReportEntry report)
void
testError(ReportEntry reportEntry)
void
testExecutionSkippedByUser()
void
testFailed(ReportEntry reportEntry)
void
testSetCompleted(TestSetReportEntry report)
void
testSetStarting(TestSetReportEntry report)
void
testSkipped(ReportEntry reportEntry)
void
testStarting(ReportEntry report)
void
testSucceeded(ReportEntry reportEntry)
void
warning(String message)
void
writeTestOutput(TestOutputReportEntry reportEntry)
-
-
-
Constructor Detail
-
TestSetRunListener
public TestSetRunListener(StatelessTestsetInfoConsoleReportEventListener<WrappedReportEntry,TestSetStats> consoleReporter, StatelessTestsetInfoFileReportEventListener<WrappedReportEntry,TestSetStats> fileReporter, StatelessReportEventListener<WrappedReportEntry,TestSetStats> simpleXMLReporter, ConsoleOutputReportEventListener testOutputReceiver, StatisticsReporter statisticsReporter, boolean trimStackTrace, boolean isPlainFormat, boolean briefOrPlainFormat, Object lock)
-
-
Method Detail
-
isDebugEnabled
public boolean isDebugEnabled()
- Specified by:
isDebugEnabled
in interfaceorg.apache.maven.plugin.surefire.log.api.ConsoleLogger
-
debug
public void debug(String message)
- Specified by:
debug
in interfaceorg.apache.maven.plugin.surefire.log.api.ConsoleLogger
-
isInfoEnabled
public boolean isInfoEnabled()
- Specified by:
isInfoEnabled
in interfaceorg.apache.maven.plugin.surefire.log.api.ConsoleLogger
-
info
public void info(String message)
- Specified by:
info
in interfaceorg.apache.maven.plugin.surefire.log.api.ConsoleLogger
-
isWarnEnabled
public boolean isWarnEnabled()
- Specified by:
isWarnEnabled
in interfaceorg.apache.maven.plugin.surefire.log.api.ConsoleLogger
-
warning
public void warning(String message)
- Specified by:
warning
in interfaceorg.apache.maven.plugin.surefire.log.api.ConsoleLogger
-
isErrorEnabled
public boolean isErrorEnabled()
- Specified by:
isErrorEnabled
in interfaceorg.apache.maven.plugin.surefire.log.api.ConsoleLogger
-
error
public void error(String message)
- Specified by:
error
in interfaceorg.apache.maven.plugin.surefire.log.api.ConsoleLogger
-
error
public void error(String message, Throwable t)
- Specified by:
error
in interfaceorg.apache.maven.plugin.surefire.log.api.ConsoleLogger
-
error
public void error(Throwable t)
- Specified by:
error
in interfaceorg.apache.maven.plugin.surefire.log.api.ConsoleLogger
-
writeTestOutput
public void writeTestOutput(TestOutputReportEntry reportEntry)
- Specified by:
writeTestOutput
in interfaceTestOutputReceiver<TestOutputReportEntry>
-
testSetStarting
public void testSetStarting(TestSetReportEntry report)
- Specified by:
testSetStarting
in interfaceRunListener
-
testSetCompleted
public void testSetCompleted(TestSetReportEntry report)
- Specified by:
testSetCompleted
in interfaceRunListener
-
testStarting
public void testStarting(ReportEntry report)
- Specified by:
testStarting
in interfaceRunListener
-
testSucceeded
public void testSucceeded(ReportEntry reportEntry)
- Specified by:
testSucceeded
in interfaceRunListener
-
testError
public void testError(ReportEntry reportEntry)
- Specified by:
testError
in interfaceRunListener
-
testFailed
public void testFailed(ReportEntry reportEntry)
- Specified by:
testFailed
in interfaceRunListener
-
testSkipped
public void testSkipped(ReportEntry reportEntry)
- Specified by:
testSkipped
in interfaceRunListener
-
testExecutionSkippedByUser
public void testExecutionSkippedByUser()
- Specified by:
testExecutionSkippedByUser
in interfaceRunListener
-
testAssumptionFailure
public void testAssumptionFailure(ReportEntry report)
- Specified by:
testAssumptionFailure
in interfaceRunListener
-
close
public void close()
-
getTestMethodStats
public Queue<TestMethodStats> getTestMethodStats()
-
-