Class JUnitPlatformRunnerListener

java.lang.Object
org.junit.platform.runner.JUnitPlatformRunnerListener
All Implemented Interfaces:
org.junit.platform.launcher.TestExecutionListener

class JUnitPlatformRunnerListener extends Object implements org.junit.platform.launcher.TestExecutionListener
Since:
1.0
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final org.junit.runner.notification.RunNotifier
     
    private final JUnitPlatformTestTree
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    JUnitPlatformRunnerListener(JUnitPlatformTestTree testTree, org.junit.runner.notification.RunNotifier notifier)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    dynamicTestRegistered(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)
     
    void
    fileEntryPublished(org.junit.platform.launcher.TestIdentifier testIdentifier, org.junit.platform.engine.reporting.FileEntry file)
     
    private org.junit.runner.Description
    findJUnit4Description(org.junit.platform.launcher.TestIdentifier testIdentifier)
     
    private void
    fireTestIgnored(org.junit.platform.launcher.TestIdentifier testIdentifier)
     
    void
    reportingEntryPublished(org.junit.platform.launcher.TestIdentifier testIdentifier, org.junit.platform.engine.reporting.ReportEntry entry)
     
    private org.junit.runner.notification.Failure
    toFailure(org.junit.platform.engine.TestExecutionResult testExecutionResult, org.junit.runner.Description description)
     

    Methods inherited from class Object

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

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

    testPlanExecutionFinished, testPlanExecutionStarted
  • Field Details

    • testTree

      private final JUnitPlatformTestTree testTree
    • notifier

      private final org.junit.runner.notification.RunNotifier notifier
  • Constructor Details

    • JUnitPlatformRunnerListener

      JUnitPlatformRunnerListener(JUnitPlatformTestTree testTree, org.junit.runner.notification.RunNotifier notifier)
  • Method Details

    • dynamicTestRegistered

      public void dynamicTestRegistered(org.junit.platform.launcher.TestIdentifier testIdentifier)
      Specified by:
      dynamicTestRegistered 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
    • fireTestIgnored

      private void fireTestIgnored(org.junit.platform.launcher.TestIdentifier testIdentifier)
    • executionStarted

      public void executionStarted(org.junit.platform.launcher.TestIdentifier testIdentifier)
      Specified by:
      executionStarted 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
    • reportingEntryPublished

      public void reportingEntryPublished(org.junit.platform.launcher.TestIdentifier testIdentifier, org.junit.platform.engine.reporting.ReportEntry entry)
      Specified by:
      reportingEntryPublished in interface org.junit.platform.launcher.TestExecutionListener
    • fileEntryPublished

      public void fileEntryPublished(org.junit.platform.launcher.TestIdentifier testIdentifier, org.junit.platform.engine.reporting.FileEntry file)
      Specified by:
      fileEntryPublished in interface org.junit.platform.launcher.TestExecutionListener
    • toFailure

      private org.junit.runner.notification.Failure toFailure(org.junit.platform.engine.TestExecutionResult testExecutionResult, org.junit.runner.Description description)
    • findJUnit4Description

      private org.junit.runner.Description findJUnit4Description(org.junit.platform.launcher.TestIdentifier testIdentifier)