Package net.officefloor.test.logger
Class LoggerRule
java.lang.Object
java.util.logging.Handler
net.officefloor.test.logger.AbstractLoggerJUnit
net.officefloor.test.logger.LoggerRule
- All Implemented Interfaces:
org.junit.rules.TestRule
TestRule to capture and assert Logger.- Author:
- Daniel Sagenschneider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.junit.runners.model.Statementapply(org.junit.runners.model.Statement base, org.junit.runner.Description description) Methods inherited from class net.officefloor.test.logger.AbstractLoggerJUnit
assertLog, assertLog, assertLog, clear, close, flush, publish, setupLogCapture, teardownLogCaptureMethods inherited from class java.util.logging.Handler
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportError, setEncoding, setErrorManager, setFilter, setFormatter, setLevel
-
Constructor Details
-
LoggerRule
public LoggerRule()
-
-
Method Details
-
apply
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description) - Specified by:
applyin interfaceorg.junit.rules.TestRule
-