Class PageContentMatcher

  • All Implemented Interfaces:
    org.hamcrest.Matcher<java.lang.Throwable>, org.hamcrest.SelfDescribing

    @Deprecated
    public class PageContentMatcher
    extends org.hamcrest.TypeSafeMatcher<java.lang.Throwable>
    Deprecated.
    Matches a Throwable if it has any suppressed PageContentException, which contains a page content (see PageContentException.getPageContent(), which matches the Matcher passed in as constructor argument. It can be used together with Retry and PageSource to retry on a specific page content. Example: a "Gateway Timeout" page sent by Apache could mean that we want to retry a test.
    • Constructor Summary

      Constructors 
      Constructor Description
      PageContentMatcher​(org.hamcrest.Matcher<java.lang.String> pageContentMatcher)
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void describeTo​(org.hamcrest.Description description)
      Deprecated.
       
      protected boolean matchesSafely​(java.lang.Throwable testFailure)
      Deprecated.
       
      • Methods inherited from class org.hamcrest.TypeSafeMatcher

        describeMismatch, describeMismatchSafely, 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
    • Constructor Detail

      • PageContentMatcher

        public PageContentMatcher​(org.hamcrest.Matcher<java.lang.String> pageContentMatcher)
        Deprecated.
        Parameters:
        pageContentMatcher - this matcher will be used to match the page content as string
    • Method Detail

      • matchesSafely

        protected boolean matchesSafely​(java.lang.Throwable testFailure)
        Deprecated.
        Specified by:
        matchesSafely in class org.hamcrest.TypeSafeMatcher<java.lang.Throwable>
      • describeTo

        public void describeTo​(org.hamcrest.Description description)
        Deprecated.