Package | Description |
---|---|
com.github.valfirst.slf4jtest |
Modifier and Type | Method and Description |
---|---|
TestLoggerAssert |
TestLoggerAssert.anyThread()
Changes the assertion mode to verify that log messages have been logged regardless of which
thread actually logged the message.
|
static TestLoggerAssert |
Assertions.assertThat(TestLogger testLogger) |
TestLoggerAssert |
TestLoggerAssert.hasLogged(org.slf4j.event.Level level,
String message,
Object... arguments)
Verify that a log message, at a specific level, has been logged by the test logger.
|
TestLoggerAssert |
TestLoggerAssert.hasLogged(LoggingEvent event)
Verify that a
LoggingEvent has been logged by the test logger. |
TestLoggerAssert |
TestLoggerAssert.hasLogged(Predicate<LoggingEvent> predicate)
Verify that a
LoggingEvent satisfying the provided predicate has been logged by the
test logger. |
TestLoggerAssert |
TestLoggerAssert.hasLogged(TestLoggerAssert.PredicateBuilder predicate)
Uses the supplied
TestLoggerAssert.PredicateBuilder to construct the predicate with which to Verify that
a matching LoggingEvent has been logged by the test logger. |
TestLoggerAssert |
TestLoggerAssert.hasLogged(Throwable throwable,
org.slf4j.event.Level level,
String message,
Object... arguments)
Verify that a log message, at a specific level, has been logged by the test logger in the
presence of a
Throwable . |
TestLoggerAssert |
TestLoggerAssert.hasNotLogged(org.slf4j.event.Level level,
String message,
Object... arguments)
Verify that a log message, at a specific level, has not been logged by the test logger.
|
TestLoggerAssert |
TestLoggerAssert.hasNotLogged(LoggingEvent event)
Verify that a
LoggingEvent has not been logged by the test logger. |
TestLoggerAssert |
TestLoggerAssert.hasNotLogged(Predicate<LoggingEvent> predicate)
Verify that a
LoggingEvent satisfying the provided predicate has _not_ been logged by
the test logger. |
TestLoggerAssert |
TestLoggerAssert.hasNotLogged(TestLoggerAssert.PredicateBuilder predicate)
Uses the supplied
TestLoggerAssert.PredicateBuilder to construct the predicate with which to Verify that
a matching LoggingEvent has _not_ been logged by the test logger. |
TestLoggerAssert |
TestLoggerAssert.hasNotLogged(Throwable throwable,
org.slf4j.event.Level level,
String message,
Object... arguments)
Verify that a log message, at a specific level, has not been logged by the test logger in the
presence of a
Throwable . |
TestLoggerAssert |
TestLoggerAssert.usingMdcComparator(TestLoggerAssert.MdcComparator mdcComparator)
Allows the comparison strategy for verifying the MDC contents to be configured.
|
Copyright © 2023. All rights reserved.