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 method
RunnerFeature.beforeMethodRun(FeaturesRunner, FrameworkMethod, Object)
and
correctly restored after that which means after the execution of
RunnerFeature.afterMethodRun(FeaturesRunner, FrameworkMethod, Object)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.junit.runners.model.Statement
apply
(org.junit.runners.model.Statement base, org.junit.runner.Description description) protected void
check
(LoggerLevel logger, boolean before) protected Collection<LoggerLevel>
getLoggersAnnotations
(org.junit.runner.Description description)
-
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 interfaceorg.junit.rules.TestRule
-
getLoggersAnnotations
-
check
-