Class TreePrinter


  • class TreePrinter
    extends java.lang.Object
    Since:
    1.0
    • Constructor Summary

      Constructors 
      Constructor Description
      TreePrinter​(java.io.PrintWriter out, Theme theme, ColorPalette colorPalette)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private java.lang.String color​(Style style, java.lang.String text)  
      private java.lang.String colorCaption​(TreeNode node)  
      (package private) void print​(TreeNode node)  
      private void print​(TreeNode node, java.lang.String indent, boolean continuous)  
      private void printFileEntry​(java.lang.String indent, org.junit.platform.engine.reporting.FileEntry fileEntry)  
      private void printMessage​(Style style, java.lang.String indent, java.lang.String message)  
      private void printReportEntry​(java.lang.String indent, java.util.Map.Entry<java.lang.String,​java.lang.String> mapEntry)  
      private void printReportEntry​(java.lang.String indent, org.junit.platform.engine.reporting.ReportEntry reportEntry)  
      private void printThrowable​(java.lang.String indent, org.junit.platform.engine.TestExecutionResult result)  
      private void printVisible​(TreeNode node, java.lang.String indent, boolean continuous)  
      private java.lang.String tab​(TreeNode node, boolean continuous)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • out

        private final java.io.PrintWriter out
      • theme

        private final Theme theme
    • Constructor Detail

      • TreePrinter

        TreePrinter​(java.io.PrintWriter out,
                    Theme theme,
                    ColorPalette colorPalette)
    • Method Detail

      • print

        private void print​(TreeNode node,
                           java.lang.String indent,
                           boolean continuous)
      • printVisible

        private void printVisible​(TreeNode node,
                                  java.lang.String indent,
                                  boolean continuous)
      • tab

        private java.lang.String tab​(TreeNode node,
                                     boolean continuous)
      • colorCaption

        private java.lang.String colorCaption​(TreeNode node)
      • printThrowable

        private void printThrowable​(java.lang.String indent,
                                    org.junit.platform.engine.TestExecutionResult result)
      • printReportEntry

        private void printReportEntry​(java.lang.String indent,
                                      org.junit.platform.engine.reporting.ReportEntry reportEntry)
      • printReportEntry

        private void printReportEntry​(java.lang.String indent,
                                      java.util.Map.Entry<java.lang.String,​java.lang.String> mapEntry)
      • printFileEntry

        private void printFileEntry​(java.lang.String indent,
                                    org.junit.platform.engine.reporting.FileEntry fileEntry)
      • printMessage

        private void printMessage​(Style style,
                                  java.lang.String indent,
                                  java.lang.String message)
      • color

        private java.lang.String color​(Style style,
                                       java.lang.String text)