Class LogbackCaptureTestExtension.LogbackEventMatcher

java.lang.Object
org.hamcrest.BaseMatcher<T>
org.hamcrest.TypeSafeMatcher<T>
org.hamcrest.CustomTypeSafeMatcher<ch.qos.logback.classic.spi.ILoggingEvent>
ca.uhn.test.util.LogbackCaptureTestExtension.LogbackEventMatcher
All Implemented Interfaces:
org.hamcrest.Matcher<ch.qos.logback.classic.spi.ILoggingEvent>, org.hamcrest.SelfDescribing
Enclosing class:
LogbackCaptureTestExtension

public static class LogbackCaptureTestExtension.LogbackEventMatcher extends org.hamcrest.CustomTypeSafeMatcher<ch.qos.logback.classic.spi.ILoggingEvent>
A Hamcrest matcher for junit assertions. Matches on level and/or partial message.
  • Constructor Summary

    Constructors
    Constructor
    Description
    LogbackEventMatcher(ch.qos.logback.classic.Level theLevel, String thePartialString)
     
    LogbackEventMatcher(String description, ch.qos.logback.classic.Level theLevel, String thePartialString)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
    matchesSafely(ch.qos.logback.classic.spi.ILoggingEvent item)
     

    Methods inherited from class org.hamcrest.CustomTypeSafeMatcher

    describeTo

    Methods inherited from class org.hamcrest.TypeSafeMatcher

    describeMismatch, describeMismatchSafely, matches

    Methods inherited from class org.hamcrest.BaseMatcher

    _dont_implement_Matcher___instead_extend_BaseMatcher_, isNotNull, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • LogbackEventMatcher

      public LogbackEventMatcher(@Nullable ch.qos.logback.classic.Level theLevel, @Nullable String thePartialString)
    • LogbackEventMatcher

      public LogbackEventMatcher(String description, @Nullable ch.qos.logback.classic.Level theLevel, @Nullable String thePartialString)
  • Method Details

    • matchesSafely

      protected boolean matchesSafely(ch.qos.logback.classic.spi.ILoggingEvent item)
      Specified by:
      matchesSafely in class org.hamcrest.TypeSafeMatcher<ch.qos.logback.classic.spi.ILoggingEvent>