java.lang.Object
de.hybris.platform.sap.sapordermgmtbol.transaction.util.TestLogger

public class TestLogger extends Object
Improve Readability of console output by indenting
  • Field Details

    • ROOT_LEVEL

      public static final int ROOT_LEVEL
      No Indentation
      See Also:
    • METHOD_LEVEL

      public static final int METHOD_LEVEL
      1 Level Indentation for test methods
      See Also:
    • STEP_LEVEL

      public static final int STEP_LEVEL
      2 Level Indentation for test steps in methods
      See Also:
  • Constructor Details

    • TestLogger

      public TestLogger()
  • Method Details

    • add

      public boolean add(String entry)
      adds the String to the list considering the indentation
      Parameters:
      entry - element to be appended to this list
      Returns:
      true (as specified by Collection.add)
    • addChildLevel

      public void addChildLevel(String describe)
      Adds a describing line to the output and increases indentation afterwards
      Parameters:
      describe - describing line
    • addSiblingLevel

      public void addSiblingLevel(String describe)
      Unindents, adds a describing line to the output and increases indentation afterwards
      Parameters:
      describe - describing line
    • indent

      public void indent()
      increase indentation
    • unIndent

      public void unIndent()
      decrease indentation
    • setIndentLevel

      public void setIndentLevel(int lvl)
      set specific indentation level.
      Parameters:
      lvl - Level of indentation
    • sysout

      public void sysout()
      Prints all log entries to .
    • appendToLastEntry

      public void appendToLastEntry(String string)
      append text to the last entry.
      Parameters:
      string - text to append
    • addEmptyLine

      public void addEmptyLine()
      Add an empty line to the log.
    • reset

      public void reset()
      Delete all entries.