Class TestFeedPrintingListener

  • All Implemented Interfaces:
    DetailsPrintingListener, org.junit.platform.launcher.TestExecutionListener

    @API(status=INTERNAL,
         since="1.14")
    public class TestFeedPrintingListener
    extends java.lang.Object
    implements DetailsPrintingListener
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private java.util.List<java.lang.String> collectDisplayNames​(org.junit.platform.engine.UniqueId uniqueId)  
      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 formatTestIdentifier​(org.junit.platform.launcher.TestIdentifier testIdentifier)  
      private static java.lang.String indented​(java.lang.String message)  
      void listTests​(org.junit.platform.launcher.TestPlan testPlan)  
      private void println​(Style style, java.lang.String message)  
      private static boolean shouldPrint​(org.junit.platform.launcher.TestIdentifier testIdentifier)  
      void testPlanExecutionFinished​(org.junit.platform.launcher.TestPlan testPlan)  
      void testPlanExecutionStarted​(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, fileEntryPublished, reportingEntryPublished
    • Field Detail

      • STATUS_SEPARATOR

        private static final java.lang.String STATUS_SEPARATOR
        See Also:
        Constant Field Values
      • out

        private final java.io.PrintWriter out
      • testPlan

        private org.junit.platform.launcher.TestPlan testPlan
    • Constructor Detail

      • TestFeedPrintingListener

        public TestFeedPrintingListener​(java.io.PrintWriter out,
                                        ColorPalette colorPalette)
    • Method Detail

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

        public void executionSkipped​(org.junit.platform.launcher.TestIdentifier testIdentifier,
                                     java.lang.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
      • formatTestIdentifier

        private java.lang.String formatTestIdentifier​(org.junit.platform.launcher.TestIdentifier testIdentifier)
      • println

        private void println​(Style style,
                             java.lang.String message)
      • collectDisplayNames

        private java.util.List<java.lang.String> collectDisplayNames​(org.junit.platform.engine.UniqueId uniqueId)
      • indented

        private static java.lang.String indented​(java.lang.String message)
      • shouldPrint

        private static boolean shouldPrint​(org.junit.platform.launcher.TestIdentifier testIdentifier)