Package org.nuxeo.runtime.test.logging
Class TestLogFeature
java.lang.Object
org.nuxeo.runtime.test.logging.TestLogFeature
Test for
LogFeature.- Since:
- 11.1
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classEnsures 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)classEnsures 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
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected static final Stringprotected static final org.apache.logging.log4j.Loggerstatic final TestLogFeature.LogFeatureClassCheckerRule -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoid
-
Field Details
-
log
protected static final org.apache.logging.log4j.Logger log -
FAKE_LOGGER_NAME_1
- See Also:
-
FAKE_LOGGER_NAME_2
- See Also:
-
FAKE_LOGGER_NAME_3
- See Also:
-
LOG_FEATURE_CLASS_CHECKER_RULE
-
logFeatureMethodCheckerRule
-
-
Constructor Details
-
TestLogFeature
public TestLogFeature()
-
-
Method Details
-
shouldAddNewLogger
public void shouldAddNewLogger() -
shouldUpdateLogger
public void shouldUpdateLogger() -
shouldOverrideTestLoggerDefinition
public void shouldOverrideTestLoggerDefinition() -
shouldInheritLogger
public void shouldInheritLogger() -
shouldSetConsoleLogThreshold
public void shouldSetConsoleLogThreshold()
-