Class TestLogFeature.LogFeatureMethodCheckerRule

java.lang.Object
org.nuxeo.runtime.test.logging.TestLogFeature.LogFeatureMethodCheckerRule
All Implemented Interfaces:
org.junit.rules.TestRule
Enclosing class:
TestLogFeature

public class TestLogFeature.LogFeatureMethodCheckerRule extends Object implements org.junit.rules.TestRule
Ensures that all log levels are preserved before launching each test method RunnerFeature.beforeMethodRun(FeaturesRunner, FrameworkMethod, Object) and correctly restored after that which means after the execution of RunnerFeature.afterMethodRun(FeaturesRunner, FrameworkMethod, Object)
  • Constructor Details

    • LogFeatureMethodCheckerRule

      public LogFeatureMethodCheckerRule()
  • Method Details

    • apply

      public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description)
      Specified by:
      apply in interface org.junit.rules.TestRule
    • getLoggersAnnotations

      protected Collection<LoggerLevel> getLoggersAnnotations(org.junit.runner.Description description)
    • check

      protected void check(LoggerLevel logger, boolean before)