Class AndWait<T>

  • All Implemented Interfaces:
    org.hamcrest.Matcher<java.util.function.Supplier<T>>, org.hamcrest.SelfDescribing

    public class AndWait<T>
    extends org.hamcrest.TypeSafeDiagnosingMatcher<java.util.function.Supplier<T>>
    • Constructor Summary

      Constructors 
      Constructor Description
      AndWait​(org.hamcrest.Matcher<T> expected)  
      AndWait​(org.hamcrest.Matcher<T> expected, int timeoutMs)  
    • Method Summary

      Modifier and Type Method Description
      static <T> AndWait<T> andWait​(org.hamcrest.Matcher<T> expected)  
      static <T> AndWait<T> andWait​(org.hamcrest.Matcher<T> expected, int timeoutMs)  
      void describeTo​(org.hamcrest.Description description)  
      protected boolean matchesSafely​(java.util.function.Supplier<T> actual, org.hamcrest.Description description)  
      • Methods inherited from class org.hamcrest.TypeSafeDiagnosingMatcher

        describeMismatch, 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 Detail

      • AndWait

        public AndWait​(org.hamcrest.Matcher<T> expected)
      • AndWait

        public AndWait​(org.hamcrest.Matcher<T> expected,
                       int timeoutMs)
    • Method Detail

      • matchesSafely

        protected boolean matchesSafely​(java.util.function.Supplier<T> actual,
                                        org.hamcrest.Description description)
        Specified by:
        matchesSafely in class org.hamcrest.TypeSafeDiagnosingMatcher<java.util.function.Supplier<T>>
      • describeTo

        public void describeTo​(org.hamcrest.Description description)
      • andWait

        public static <T> AndWait<T> andWait​(org.hamcrest.Matcher<T> expected)
      • andWait

        public static <T> AndWait<T> andWait​(org.hamcrest.Matcher<T> expected,
                                             int timeoutMs)