Package org.nuxeo.runtime.test.logging
Class TestLogFeature
- java.lang.Object
-
- org.nuxeo.runtime.test.logging.TestLogFeature
-
public class TestLogFeature extends Object
Test forLogFeature.- Since:
- 11.1
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTestLogFeature.LogFeatureClassCheckerRuleEnsures that all log levels are preserved before launching the whole class testRunnerFeature.beforeRun(FeaturesRunner)and correctly restored after that which means after the execution ofRunnerFeature.afterRun(FeaturesRunner)classTestLogFeature.LogFeatureMethodCheckerRuleEnsures 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)
-
Field Summary
Fields Modifier and Type Field Description protected static StringFAKE_LOGGER_NAME_1protected static StringFAKE_LOGGER_NAME_2protected static StringFAKE_LOGGER_NAME_3protected static org.apache.logging.log4j.Loggerlogstatic TestLogFeature.LogFeatureClassCheckerRuleLOG_FEATURE_CLASS_CHECKER_RULETestLogFeature.LogFeatureMethodCheckerRulelogFeatureMethodCheckerRule
-
Constructor Summary
Constructors Constructor Description TestLogFeature()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidshouldAddNewLogger()voidshouldInheritLogger()voidshouldOverrideTestLoggerDefinition()voidshouldSetConsoleLogThreshold()voidshouldUpdateLogger()
-
-
-
Field Detail
-
log
protected static final org.apache.logging.log4j.Logger log
-
FAKE_LOGGER_NAME_1
protected static final String FAKE_LOGGER_NAME_1
- See Also:
- Constant Field Values
-
FAKE_LOGGER_NAME_2
protected static final String FAKE_LOGGER_NAME_2
- See Also:
- Constant Field Values
-
FAKE_LOGGER_NAME_3
protected static final String FAKE_LOGGER_NAME_3
- See Also:
- Constant Field Values
-
LOG_FEATURE_CLASS_CHECKER_RULE
public static final TestLogFeature.LogFeatureClassCheckerRule LOG_FEATURE_CLASS_CHECKER_RULE
-
logFeatureMethodCheckerRule
public final TestLogFeature.LogFeatureMethodCheckerRule logFeatureMethodCheckerRule
-
-
Method Detail
-
shouldAddNewLogger
public void shouldAddNewLogger()
-
shouldUpdateLogger
public void shouldUpdateLogger()
-
shouldOverrideTestLoggerDefinition
public void shouldOverrideTestLoggerDefinition()
-
shouldInheritLogger
public void shouldInheritLogger()
-
shouldSetConsoleLogThreshold
public void shouldSetConsoleLogThreshold()
-
-