Package ca.uhn.test.util
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
ConstructorsConstructorDescriptionLogbackEventMatcher(ch.qos.logback.classic.Level theLevel, String thePartialString) LogbackEventMatcher(String description, ch.qos.logback.classic.Level theLevel, String thePartialString) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanmatchesSafely(ch.qos.logback.classic.spi.ILoggingEvent item) Methods inherited from class org.hamcrest.CustomTypeSafeMatcher
describeToMethods inherited from class org.hamcrest.TypeSafeMatcher
describeMismatch, describeMismatchSafely, matchesMethods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, isNotNull, toString
-
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
- Specified by:
matchesSafelyin classorg.hamcrest.TypeSafeMatcher<ch.qos.logback.classic.spi.ILoggingEvent>
-