Class 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 Detail

      • LogLevelTestRule

        public LogLevelTestRule()
    • Method Detail

      • 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