- All Implemented Interfaces:
Log
public class TestingLog
extends Object
implements Log
Log that captures output for later review.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.rat.utils.Log
Log.Level
-
Constructor Summary
Constructors
-
Method Summary
void
Clears the captured buffer.
Gets the captured log entries.
boolean
Determines if the log is empty.
void
void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.rat.utils.Log
asWriter, asWriter, debug, debug, error, error, info, info, isEnabled, log, log, log, warn, warn
-
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.
-
-
-
log
- Specified by:
log in interface Log
-
isEmpty
public boolean isEmpty()
Determines if the log is empty.
- Returns:
true if the log is empty.