Package net.officefloor.frame.test
Class LoggerAssertion
- java.lang.Object
-
- net.officefloor.frame.test.LoggerAssertion
-
public class LoggerAssertion extends java.lang.Object
AssertsLogger
messages.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.logging.LogRecord[]
disconnectFromLogger()
Disconnects from theLogger
.java.util.logging.Logger
getLogger()
Obtains theLogger
.java.util.logging.LogRecord[]
getLogRecords()
Obtains theLogRecord
instances from theLogger
.static LoggerAssertion
setupLoggerAssertion(java.lang.String loggerName)
Setups theLoggerAssertion
for theLogger
.
-
-
-
Method Detail
-
setupLoggerAssertion
public static LoggerAssertion setupLoggerAssertion(java.lang.String loggerName)
Setups theLoggerAssertion
for theLogger
.- Parameters:
loggerName
- Name of theLogger
.- Returns:
LoggerAssertion
.
-
getLogger
public java.util.logging.Logger getLogger()
Obtains theLogger
.- Returns:
Logger
.
-
getLogRecords
public java.util.logging.LogRecord[] getLogRecords()
Obtains theLogRecord
instances from theLogger
.- Returns:
LogRecord
instances from theLogger
.
-
disconnectFromLogger
public java.util.logging.LogRecord[] disconnectFromLogger()
Disconnects from theLogger
.- Returns:
LogRecord
instances provided to theLogger
.
-
-