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
Modifier and TypeClassDescriptionstatic class
Ensures 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)
class
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)
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final String
protected static final String
protected static final String
protected static final org.apache.logging.log4j.Logger
static final TestLogFeature.LogFeatureClassCheckerRule
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
void
-
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()
-