Class FlatPrintingListener

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

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

  • Constructor Details

  • 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
    • 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
    • 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
    • printlnTestDescriptor

      private void printlnTestDescriptor(Style style, String message, org.junit.platform.launcher.TestIdentifier testIdentifier)
    • printlnException

      private void printlnException(Style style, Throwable throwable)
    • printlnMessage

      private void printlnMessage(Style style, String message, String detail)
    • println

      private void println(Style style, String format, Object... args)
    • indented

      private static String indented(String message)
      Indent the given message if it is a multi-line string.

      INDENTATION is used to prefix the start of each new line except the first one.

      Parameters:
      message - the message to indent
      Returns:
      indented message
    • listTests

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