|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JUnitAppender
The JUnitAppender will record the messages sent to a standard Log4J LoggingEvent, so that these can be recorded and asserted at a later stage.
Method Summary | |
---|---|
java.lang.String |
getLogMessages()
Returns the log messages collected so far. |
boolean |
logLevelReached()
Checks if the threshold has been reached. |
void |
setLogLevelThreshold(org.apache.log4j.Level level)
Sets the threshold level to check against to see if an error has occured. |
void |
startRecording()
Start the log recording process. |
void |
stopRecording()
Stop the recording process to be able to start asserting the log without the log being cluttered with more logging information. |
Methods inherited from interface org.apache.log4j.Appender |
---|
addFilter, clearFilters, close, doAppend, getErrorHandler, getFilter, getLayout, getName, requiresLayout, setErrorHandler, setLayout, setName |
Method Detail |
---|
void startRecording()
void stopRecording()
java.lang.String getLogMessages()
void setLogLevelThreshold(org.apache.log4j.Level level)
level
- The level thresholdboolean logLevelReached()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |