Package org.apache.solr.util
Class LogLevelTestRule
java.lang.Object
org.apache.solr.util.LogLevelTestRule
- All Implemented Interfaces:
org.junit.rules.TestRule
A JUnit
TestRule that sets (and resets) the Log4j2 log level based on the
LogLevel annotation.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.junit.runners.model.Statementapply(org.junit.runners.model.Statement base, Description description)
-
Constructor Details
-
LogLevelTestRule
public LogLevelTestRule()
-
-
Method Details
-
apply
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, Description description) - Specified by:
applyin interfaceorg.junit.rules.TestRule
-