Class RunListenerAdapter

java.lang.Object
org.apache.maven.surefire.junitplatform.RunListenerAdapter
All Implemented Interfaces:
org.junit.platform.launcher.TestExecutionListener

final class RunListenerAdapter extends Object implements org.junit.platform.launcher.TestExecutionListener
Since:
2.22.0
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final org.apache.maven.surefire.report.RunListener
     
    private org.junit.platform.launcher.TestPlan
     
    private Set<org.junit.platform.launcher.TestIdentifier>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    RunListenerAdapter(org.apache.maven.surefire.report.RunListener runListener)
     
  • Method Summary

    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, String reason)
     
    void
    executionStarted(org.junit.platform.launcher.TestIdentifier testIdentifier)
     
    private String
    getClassName(org.junit.platform.launcher.TestIdentifier testIdentifier)
     
    private String
    getLegacyReportingClassName(org.junit.platform.launcher.TestIdentifier testIdentifier)
     
    private String
    getLegacyReportingName(org.junit.platform.launcher.TestIdentifier testIdentifier)
     
    private Optional<String>
    getMethodName(org.junit.platform.launcher.TestIdentifier testIdentifier)
     
    private org.apache.maven.surefire.report.StackTraceWriter
    getStackTraceWriter(org.junit.platform.launcher.TestIdentifier testIdentifier, 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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.junit.platform.launcher.TestExecutionListener

    dynamicTestRegistered, reportingEntryPublished
  • Field Details

    • runListener

      private final org.apache.maven.surefire.report.RunListener runListener
    • testPlan

      private org.junit.platform.launcher.TestPlan testPlan
    • testSetNodes

      private Set<org.junit.platform.launcher.TestIdentifier> testSetNodes
  • Constructor Details

    • RunListenerAdapter

      RunListenerAdapter(org.apache.maven.surefire.report.RunListener runListener)
  • Method Details

    • testPlanExecutionStarted

      public void testPlanExecutionStarted(org.junit.platform.launcher.TestPlan testPlan)
      Specified by:
      testPlanExecutionStarted in interface org.junit.platform.launcher.TestExecutionListener
    • testPlanExecutionFinished

      public void testPlanExecutionFinished(org.junit.platform.launcher.TestPlan testPlan)
      Specified by:
      testPlanExecutionFinished in interface org.junit.platform.launcher.TestExecutionListener
    • executionStarted

      public void executionStarted(org.junit.platform.launcher.TestIdentifier testIdentifier)
      Specified by:
      executionStarted in interface org.junit.platform.launcher.TestExecutionListener
    • executionSkipped

      public void executionSkipped(org.junit.platform.launcher.TestIdentifier testIdentifier, String reason)
      Specified by:
      executionSkipped in interface org.junit.platform.launcher.TestExecutionListener
    • executionFinished

      public void executionFinished(org.junit.platform.launcher.TestIdentifier testIdentifier, org.junit.platform.engine.TestExecutionResult testExecutionResult)
      Specified by:
      executionFinished in interface org.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 String getLegacyReportingName(org.junit.platform.launcher.TestIdentifier testIdentifier)
    • getLegacyReportingClassName

      private 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, Throwable throwable)
    • getClassName

      private String getClassName(org.junit.platform.launcher.TestIdentifier testIdentifier)
    • getMethodName

      private Optional<String> getMethodName(org.junit.platform.launcher.TestIdentifier testIdentifier)