Package org.apache.rat.testhelpers
Class TestingLog
java.lang.Object
org.apache.rat.testhelpers.TestingLog
- All Implemented Interfaces:
Log
Log that captures output for later review.
-
Nested Class Summary
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
TestingLog
public TestingLog()
-
-
Method Details
-
clear
public void clear()Clears the captured buffer. -
getCaptured
Gets the captured log entries.- Returns:
- the log entries.
-
getLevel
Description copied from interface:LogGets the log level that is enabled. If encapsulated logger does not report level implementations should return DEBUG. -
setLevel
Description copied from interface:LogSets the log level. Implementations may elect not to set the level dynamically. However, if the option is supported this method should be overridden. -
log
Description copied from interface:LogWrites a message at a specific log level. -
isEmpty
public boolean isEmpty()Determines if the log is empty.- Returns:
trueif the log is empty.
-