Class IsOrderedCollectionContaining<T>

  • Type Parameters:
    T - the type
    All Implemented Interfaces:
    org.hamcrest.Matcher<java.util.List<? super T>>, org.hamcrest.SelfDescribing

    public class IsOrderedCollectionContaining<T>
    extends org.hamcrest.BaseMatcher<java.util.List<? super T>>
    • Constructor Detail

      • IsOrderedCollectionContaining

        public IsOrderedCollectionContaining​(java.util.List<T> expectedList)
        Parameters:
        expectedList - the expected list
    • Method Detail

      • matches

        public boolean matches​(java.lang.Object collection)
      • describeTo

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

        public void describeMismatch​(java.lang.Object item,
                                     org.hamcrest.Description description)
        Specified by:
        describeMismatch in interface org.hamcrest.Matcher<T>
        Overrides:
        describeMismatch in class org.hamcrest.BaseMatcher<java.util.List<? super T>>