Class LogLevelTestRule

java.lang.Object
org.apache.solr.util.LogLevelTestRule
All Implemented Interfaces:
org.junit.rules.TestRule

public class LogLevelTestRule extends Object implements org.junit.rules.TestRule
A JUnit TestRule that sets (and resets) the Log4j2 log level based on the LogLevel annotation.
  • 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:
      apply in interface org.junit.rules.TestRule