Package io.quarkus.test.junit
Class BasicLoggingEnabler
java.lang.Object
io.quarkus.test.junit.BasicLoggingEnabler
- All Implemented Interfaces:
org.junit.jupiter.api.extension.BeforeAllCallback
,org.junit.jupiter.api.extension.Extension
public class BasicLoggingEnabler
extends Object
implements org.junit.jupiter.api.extension.BeforeAllCallback
A (global) JUnit callback that enables/sets up basic logging if logging has not already been set up.
This is useful for getting log output from non-Quarkus tests (if executed separately or before the first Quarkus test),
but also for getting instant log output from
QuarkusTestResourceLifecycleManagers
etc.
This callback can be disabled via CFGKEY_ENABLED
in junit-platform.properties
or via system property.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
beforeAll
(org.junit.jupiter.api.extension.ExtensionContext context)
-
Constructor Details
-
BasicLoggingEnabler
public BasicLoggingEnabler()
-
-
Method Details
-
beforeAll
public void beforeAll(org.junit.jupiter.api.extension.ExtensionContext context) - Specified by:
beforeAll
in interfaceorg.junit.jupiter.api.extension.BeforeAllCallback
-