- Feature: Added method to test number of log message repetitions via
times(...)
,once()
,atMost(...)
andatLeast(...)
(thanks @Laksuh) - Improvement: Better readability of assertion messages
Example
assertion message before:
Expected log message has occurred, but never with the expected MDC value: Level: WARN, Regex: "bye world"
captured message: "bye world"
expected MDC key: another_key
expected MDC value: ".*another_value.*"
captured MDC values:"
key: "value"
assertion message now:
Expected log message has occurred, but never with the expected MDC value:
message: WARN "bye world" (regex)
captured message: "bye world"
expected MDC key: another_key
expected MDC value: ".*another_value.*"
captured MDC values:
key: "value"