Class TreePrintingListener

java.lang.Object
org.junit.platform.console.output.TreePrintingListener
All Implemented Interfaces:
DetailsPrintingListener, org.junit.platform.launcher.TestExecutionListener

@API(status=INTERNAL, since="1.14") public class TreePrintingListener extends Object implements DetailsPrintingListener
Since:
1.0
  • Field Details

    • nodesByUniqueId

      private final Map<org.junit.platform.engine.UniqueId, TreeNode> nodesByUniqueId
    • root

      private TreeNode root
    • treePrinter

      private final TreePrinter treePrinter
  • Constructor Details

  • Method Details

    • addNode

      private void addNode(org.junit.platform.launcher.TestIdentifier testIdentifier, TreeNode node)
    • getNode

      private TreeNode getNode(org.junit.platform.launcher.TestIdentifier testIdentifier)
    • 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
    • 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
    • executionSkipped

      public void executionSkipped(org.junit.platform.launcher.TestIdentifier testIdentifier, String reason)
      Specified by:
      executionSkipped 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
    • listTests

      public void listTests(org.junit.platform.launcher.TestPlan testPlan)
      Specified by:
      listTests in interface DetailsPrintingListener