Class AndWait<T>

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

    public class AndWait<T>
    extends org.hamcrest.TypeSafeDiagnosingMatcher<Supplier<T>>
    • 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​(Supplier<T> actual,
                                        org.hamcrest.Description description)
        Specified by:
        matchesSafely in class org.hamcrest.TypeSafeDiagnosingMatcher<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)