Class ExpectedLogMethodTestRule.LogOutputMatcher<T extends List<com.liferay.portal.test.log.LogEntry>>

java.lang.Object
org.hamcrest.BaseMatcher<T>
org.hamcrest.TypeSafeMatcher<T>
com.liferay.portal.search.test.rule.logging.ExpectedLogMethodTestRule.LogOutputMatcher<T>
All Implemented Interfaces:
org.hamcrest.Matcher<T>, org.hamcrest.SelfDescribing
Enclosing class:
ExpectedLogMethodTestRule

protected static class ExpectedLogMethodTestRule.LogOutputMatcher<T extends List<com.liferay.portal.test.log.LogEntry>> extends org.hamcrest.TypeSafeMatcher<T>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final org.hamcrest.Matcher<String>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    LogOutputMatcher(org.hamcrest.Matcher<String> matcher)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    describeMismatchSafely(T logRecords, org.hamcrest.Description description)
     
    void
    describeTo(org.hamcrest.Description description)
     
    static <T extends List<com.liferay.portal.test.log.LogEntry>>
    org.hamcrest.Matcher<T>
    hasMessage(org.hamcrest.Matcher<String> matcher)
     
    protected boolean
    matchesSafely(T logEntries)
     
    protected String
    toString(T logEntries)
     

    Methods inherited from class org.hamcrest.TypeSafeMatcher

    describeMismatch, matches

    Methods inherited from class org.hamcrest.BaseMatcher

    _dont_implement_Matcher___instead_extend_BaseMatcher_, toString

    Methods inherited from class java.lang.Object

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

    • matcher

      protected final org.hamcrest.Matcher<String> matcher
  • Constructor Details

    • LogOutputMatcher

      public LogOutputMatcher(org.hamcrest.Matcher<String> matcher)
  • Method Details

    • hasMessage

      public static <T extends List<com.liferay.portal.test.log.LogEntry>> org.hamcrest.Matcher<T> hasMessage(org.hamcrest.Matcher<String> matcher)
    • describeTo

      public void describeTo(org.hamcrest.Description description)
    • describeMismatchSafely

      protected void describeMismatchSafely(T logRecords, org.hamcrest.Description description)
      Overrides:
      describeMismatchSafely in class org.hamcrest.TypeSafeMatcher<T extends List<com.liferay.portal.test.log.LogEntry>>
    • matchesSafely

      protected boolean matchesSafely(T logEntries)
      Specified by:
      matchesSafely in class org.hamcrest.TypeSafeMatcher<T extends List<com.liferay.portal.test.log.LogEntry>>
    • toString

      protected String toString(T logEntries)