Package org.nuxeo.runtime.test.logging
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 methodRunnerFeature.beforeMethodRun(FeaturesRunner, FrameworkMethod, Object)and correctly restored after that which means after the execution ofRunnerFeature.afterMethodRun(FeaturesRunner, FrameworkMethod, Object)
-
-
Constructor Summary
Constructors Constructor Description LogFeatureMethodCheckerRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.junit.runners.model.Statementapply(org.junit.runners.model.Statement base, org.junit.runner.Description description)protected voidcheck(LoggerLevel logger, boolean before)protected Collection<LoggerLevel>getLoggersAnnotations(org.junit.runner.Description description)
-
-
-
Method Detail
-
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
-
getLoggersAnnotations
protected Collection<LoggerLevel> getLoggersAnnotations(org.junit.runner.Description description)
-
check
protected void check(LoggerLevel logger, boolean before)
-
-