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 class
TestLogFeature.LogFeatureClassCheckerRule
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
TestLogFeature.LogFeatureMethodCheckerRule
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
Fields Modifier and Type Field Description protected static String
FAKE_LOGGER_NAME_1
protected static String
FAKE_LOGGER_NAME_2
protected static String
FAKE_LOGGER_NAME_3
protected static org.apache.logging.log4j.Logger
log
static TestLogFeature.LogFeatureClassCheckerRule
LOG_FEATURE_CLASS_CHECKER_RULE
TestLogFeature.LogFeatureMethodCheckerRule
logFeatureMethodCheckerRule
-
Constructor Summary
Constructors Constructor Description TestLogFeature()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
shouldAddNewLogger()
void
shouldInheritLogger()
void
shouldOverrideTestLoggerDefinition()
void
shouldSetConsoleLogThreshold()
void
shouldUpdateLogger()
-
-
-
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()
-
-