Package | Description |
---|---|
com.github.valfirst.slf4jtest |
Modifier and Type | Method and Description |
---|---|
LevelAssert |
TestLoggerAssert.hasLevel(org.slf4j.event.Level level)
Convenience method for a
LevelAssert from a provided test logger. |
LevelAssert |
LevelAssert.hasMessageContaining(String substring)
Assert that the given log level includes a log message that contains a substring.
|
LevelAssert |
LevelAssert.hasMessageMatching(String regex)
Assert that the given log level includes a log message that matches a regex.
|
LevelAssert |
LevelAssert.hasNumberOfLogs(int expected)
Assert that the given log level has the expected number of logs, regardless of content.
|
Copyright © 2023. All rights reserved.