Class RunListenerAdapter
- java.lang.Object
-
- org.apache.maven.surefire.junitplatform.RunListenerAdapter
-
- All Implemented Interfaces:
org.junit.platform.launcher.TestExecutionListener
final class RunListenerAdapter extends java.lang.Object implements org.junit.platform.launcher.TestExecutionListener
- Since:
- 2.22.0
-
-
Field Summary
Fields Modifier and Type Field Description private org.apache.maven.surefire.report.RunListener
runListener
private org.junit.platform.launcher.TestPlan
testPlan
private java.util.Set<org.junit.platform.launcher.TestIdentifier>
testSetNodes
-
Constructor Summary
Constructors Constructor Description RunListenerAdapter(org.apache.maven.surefire.report.RunListener runListener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
completeTestSet(org.junit.platform.launcher.TestIdentifier testIdentifier)
private void
completeTestSetIfNecessary(org.junit.platform.launcher.TestIdentifier testIdentifier)
private org.apache.maven.surefire.report.SimpleReportEntry
createReportEntry(org.junit.platform.launcher.TestIdentifier testIdentifier)
private org.apache.maven.surefire.report.SimpleReportEntry
createReportEntry(org.junit.platform.launcher.TestIdentifier testIdentifier, org.apache.maven.surefire.report.StackTraceWriter stackTraceWriter)
private org.apache.maven.surefire.report.SimpleReportEntry
createReportEntry(org.junit.platform.launcher.TestIdentifier testIdentifier, org.junit.platform.engine.TestExecutionResult testExecutionResult)
private org.apache.maven.surefire.report.SimpleReportEntry
createTestSetReportEntry(org.junit.platform.launcher.TestIdentifier testIdentifier)
private void
ensureTestSetStarted(org.junit.platform.launcher.TestIdentifier testIdentifier)
void
executionFinished(org.junit.platform.launcher.TestIdentifier testIdentifier, org.junit.platform.engine.TestExecutionResult testExecutionResult)
void
executionSkipped(org.junit.platform.launcher.TestIdentifier testIdentifier, java.lang.String reason)
void
executionStarted(org.junit.platform.launcher.TestIdentifier testIdentifier)
private java.lang.String
getClassName(org.junit.platform.launcher.TestIdentifier testIdentifier)
private java.lang.String
getLegacyReportingClassName(org.junit.platform.launcher.TestIdentifier testIdentifier)
private java.lang.String
getLegacyReportingName(org.junit.platform.launcher.TestIdentifier testIdentifier)
private java.util.Optional<java.lang.String>
getMethodName(org.junit.platform.launcher.TestIdentifier testIdentifier)
private org.apache.maven.surefire.report.StackTraceWriter
getStackTraceWriter(org.junit.platform.launcher.TestIdentifier testIdentifier, java.lang.Throwable throwable)
private org.apache.maven.surefire.report.StackTraceWriter
getStackTraceWriter(org.junit.platform.launcher.TestIdentifier testIdentifier, org.junit.platform.engine.TestExecutionResult testExecutionResult)
private boolean
isTestSetStarted(org.junit.platform.launcher.TestIdentifier testIdentifier)
private void
reportFailedTest(org.junit.platform.launcher.TestIdentifier testIdentifier, org.junit.platform.engine.TestExecutionResult testExecutionResult)
private void
startTestSet(org.junit.platform.launcher.TestIdentifier testIdentifier)
private void
startTestSetIfPossible(org.junit.platform.launcher.TestIdentifier testIdentifier)
void
testPlanExecutionFinished(org.junit.platform.launcher.TestPlan testPlan)
void
testPlanExecutionStarted(org.junit.platform.launcher.TestPlan testPlan)
private void
updateTestPlan(org.junit.platform.launcher.TestPlan testPlan)
-
-
-
Method Detail
-
testPlanExecutionStarted
public void testPlanExecutionStarted(org.junit.platform.launcher.TestPlan testPlan)
- Specified by:
testPlanExecutionStarted
in interfaceorg.junit.platform.launcher.TestExecutionListener
-
testPlanExecutionFinished
public void testPlanExecutionFinished(org.junit.platform.launcher.TestPlan testPlan)
- Specified by:
testPlanExecutionFinished
in interfaceorg.junit.platform.launcher.TestExecutionListener
-
executionStarted
public void executionStarted(org.junit.platform.launcher.TestIdentifier testIdentifier)
- Specified by:
executionStarted
in interfaceorg.junit.platform.launcher.TestExecutionListener
-
executionSkipped
public void executionSkipped(org.junit.platform.launcher.TestIdentifier testIdentifier, java.lang.String reason)
- Specified by:
executionSkipped
in interfaceorg.junit.platform.launcher.TestExecutionListener
-
executionFinished
public void executionFinished(org.junit.platform.launcher.TestIdentifier testIdentifier, org.junit.platform.engine.TestExecutionResult testExecutionResult)
- Specified by:
executionFinished
in interfaceorg.junit.platform.launcher.TestExecutionListener
-
updateTestPlan
private void updateTestPlan(org.junit.platform.launcher.TestPlan testPlan)
-
ensureTestSetStarted
private void ensureTestSetStarted(org.junit.platform.launcher.TestIdentifier testIdentifier)
-
isTestSetStarted
private boolean isTestSetStarted(org.junit.platform.launcher.TestIdentifier testIdentifier)
-
startTestSetIfPossible
private void startTestSetIfPossible(org.junit.platform.launcher.TestIdentifier testIdentifier)
-
completeTestSetIfNecessary
private void completeTestSetIfNecessary(org.junit.platform.launcher.TestIdentifier testIdentifier)
-
startTestSet
private void startTestSet(org.junit.platform.launcher.TestIdentifier testIdentifier)
-
completeTestSet
private void completeTestSet(org.junit.platform.launcher.TestIdentifier testIdentifier)
-
reportFailedTest
private void reportFailedTest(org.junit.platform.launcher.TestIdentifier testIdentifier, org.junit.platform.engine.TestExecutionResult testExecutionResult)
-
createTestSetReportEntry
private org.apache.maven.surefire.report.SimpleReportEntry createTestSetReportEntry(org.junit.platform.launcher.TestIdentifier testIdentifier)
-
createReportEntry
private org.apache.maven.surefire.report.SimpleReportEntry createReportEntry(org.junit.platform.launcher.TestIdentifier testIdentifier)
-
createReportEntry
private org.apache.maven.surefire.report.SimpleReportEntry createReportEntry(org.junit.platform.launcher.TestIdentifier testIdentifier, org.junit.platform.engine.TestExecutionResult testExecutionResult)
-
createReportEntry
private org.apache.maven.surefire.report.SimpleReportEntry createReportEntry(org.junit.platform.launcher.TestIdentifier testIdentifier, org.apache.maven.surefire.report.StackTraceWriter stackTraceWriter)
-
getLegacyReportingName
private java.lang.String getLegacyReportingName(org.junit.platform.launcher.TestIdentifier testIdentifier)
-
getLegacyReportingClassName
private java.lang.String getLegacyReportingClassName(org.junit.platform.launcher.TestIdentifier testIdentifier)
-
getStackTraceWriter
private org.apache.maven.surefire.report.StackTraceWriter getStackTraceWriter(org.junit.platform.launcher.TestIdentifier testIdentifier, org.junit.platform.engine.TestExecutionResult testExecutionResult)
-
getStackTraceWriter
private org.apache.maven.surefire.report.StackTraceWriter getStackTraceWriter(org.junit.platform.launcher.TestIdentifier testIdentifier, java.lang.Throwable throwable)
-
getClassName
private java.lang.String getClassName(org.junit.platform.launcher.TestIdentifier testIdentifier)
-
getMethodName
private java.util.Optional<java.lang.String> getMethodName(org.junit.platform.launcher.TestIdentifier testIdentifier)
-
-