Package io.quarkus.test
Class LogCollectingTestResource
- java.lang.Object
-
- io.quarkus.test.LogCollectingTestResource
-
- All Implemented Interfaces:
QuarkusTestResourceLifecycleManager
public class LogCollectingTestResource extends Object implements QuarkusTestResourceLifecycleManager
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.quarkus.test.common.QuarkusTestResourceLifecycleManager
QuarkusTestResourceLifecycleManager.Context, QuarkusTestResourceLifecycleManager.TestInjector
-
-
Constructor Summary
Constructors Constructor Description LogCollectingTestResource()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()static LogCollectingTestResourcecurrent()static Stringformat(LogRecord record)List<LogRecord>getRecords()voidinit(Map<String,String> initArgs)Map<String,String>start()voidstop()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.quarkus.test.common.QuarkusTestResourceLifecycleManager
inject, inject, order, setContext
-
-
-
-
Field Detail
-
LOGGER
public static final String LOGGER
- See Also:
- Constant Field Values
-
LEVEL
public static final String LEVEL
- See Also:
- Constant Field Values
-
EXCLUDE
public static final String EXCLUDE
- See Also:
- Constant Field Values
-
INCLUDE
public static final String INCLUDE
- See Also:
- Constant Field Values
-
-
Method Detail
-
current
public static LogCollectingTestResource current()
-
clear
public void clear()
-
init
public void init(Map<String,String> initArgs)
- Specified by:
initin interfaceQuarkusTestResourceLifecycleManager
-
start
public Map<String,String> start()
- Specified by:
startin interfaceQuarkusTestResourceLifecycleManager
-
stop
public void stop()
- Specified by:
stopin interfaceQuarkusTestResourceLifecycleManager
-
-