Annotation Interface EnableTestLogger


Meta-annotation that allows test classes to be extended with TestLoggerController instead of using @ExtendWith(TestLoggerController.class).

Used on a Junit 5 test this annotation ensures that the test-logger / assertion system is initialized properly, see TestLoggerFactory.install(), and TestLoggerFactory.configureLogger(), and the actual log-statements are cleared before each test. After all tests the test-logger is uninstalled again, see TestLoggerFactory.uninstall().

Use the annotations for specifying the log-level to be set for the concrete unit-tests. The level defined within this annotation will overwrite settings found either within System.getProperty(String) and "cui_logger.properties"

Use LogAsserts to make assertions to logged data.

Author:
Oliver Wolff