Package io.helidon.common.testing.junit5
Class LogRecordMatcher
java.lang.Object
io.helidon.common.testing.junit5.LogRecordMatcher
Hamcrest matcher for a
LogRecord
.-
Method Summary
Modifier and TypeMethodDescriptionstatic org.hamcrest.Matcher
<LogRecord> withMessage
(org.hamcrest.Matcher<? super String> matcher) Returns a matcher for aLogRecord
which checks if itsmessage
satisfies the specified string matcher.static org.hamcrest.Matcher
<LogRecord> withThrown
(org.hamcrest.Matcher<? super Throwable> matcher) Returns a matcher for aLogRecord
which checks if itsthrown
setting satisfies the specified throwable matcher.
-
Method Details
-
withThrown
public static org.hamcrest.Matcher<LogRecord> withThrown(org.hamcrest.Matcher<? super Throwable> matcher) Returns a matcher for aLogRecord
which checks if itsthrown
setting satisfies the specified throwable matcher.- Parameters:
matcher
- matcher of a throwable to apply to the log record'sthrown
value- Returns:
- the log record matcher to apply the throwable matcher
-
withMessage
public static org.hamcrest.Matcher<LogRecord> withMessage(org.hamcrest.Matcher<? super String> matcher) Returns a matcher for aLogRecord
which checks if itsmessage
satisfies the specified string matcher.- Parameters:
matcher
- matcher of a string to apply to the log record'smessage
value- Returns:
- the log record matcher to apply the string matcher
-