| Class | Description |
|---|---|
| Assertions | |
| JulConfig |
Configuration to redirect log messages from
java.util.logging to SLF4J. |
| JulConfigExtension |
JUnit 5 extension that calls
JulConfig.setup(). |
| LevelAssert |
A set of assertions to validate that logs have been logged to a
TestLogger, for a
specific log level. |
| LoggingEvent |
Representation of a call to a logger for test assertion purposes.
|
| TestLogger |
Implementation of
Logger which stores LoggingEvents in memory and provides
methods to access and remove them in order to facilitate writing tests that assert particular
logging calls were made. |
| TestLoggerAssert |
A set of assertions to validate that logs have been logged to a
TestLogger. |
| TestLoggerAssert.MdcComparator | |
| TestLoggerAssert.PredicateBuilder | |
| TestLoggerFactory | |
| TestLoggerFactoryExtension | |
| TestLoggerFactoryResetRule |
A JUnit rule that clears the ThreadLocal
state of all the TestLoggers and the TestLoggerFactory.
|
| TestLoggingEventBuilder |
A
LoggingEventBuilder which changes the following compared to DefaultLoggingEventBuilder:
The TestLoggingEventBuilder.toLoggingEvent() method is added to build the event without logging it. |
| TestLoggingEventBuilder.TestKeyValuePair |
Extension of
KeyValuePair with overridden Object.equals(java.lang.Object) and Object.hashCode() methods. |
| TestMDCAdapter | |
| TestSLF4JServiceProvider |
| Enum | Description |
|---|---|
| CleanupStage |
| Annotation Type | Description |
|---|---|
| TestLoggerFactorySettings |
Annotation that can configure TestLoggerFactory as invoked by the
TestLoggerFactoryExtension. |
Copyright © 2025. All rights reserved.