Class LogRecordMatcher

java.lang.Object
io.helidon.common.testing.junit5.LogRecordMatcher

public class LogRecordMatcher extends Object
Hamcrest matcher for a LogRecord.
  • Method Details

    • withThrown

      public static org.hamcrest.Matcher<LogRecord> withThrown(org.hamcrest.Matcher<? super Throwable> matcher)
      Returns a matcher for a LogRecord which checks if its thrown setting satisfies the specified throwable matcher.
      Parameters:
      matcher - matcher of a throwable to apply to the log record's thrown 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 a LogRecord which checks if its message satisfies the specified string matcher.
      Parameters:
      matcher - matcher of a string to apply to the log record's message value
      Returns:
      the log record matcher to apply the string matcher