Class TestingLog

java.lang.Object
org.apache.rat.testhelpers.TestingLog
All Implemented Interfaces:
Log

public class TestingLog extends Object implements Log
Log that captures output for later review.
  • Constructor Details

    • TestingLog

      public TestingLog()
  • Method Details

    • clear

      public void clear()
      Clears the captured buffer.
    • getCaptured

      public String getCaptured()
      Gets the captured log entries.
      Returns:
      the log entries.
    • getLevel

      public Log.Level getLevel()
      Specified by:
      getLevel in interface Log
    • setLevel

      public void setLevel(Log.Level level)
      Specified by:
      setLevel in interface Log
    • log

      public void log(Log.Level level, String msg)
      Specified by:
      log in interface Log
    • isEmpty

      public boolean isEmpty()
      Determines if the log is empty.
      Returns:
      true if the log is empty.