Class UnorderedListMatcher<T extends java.lang.Comparable<? super T>>

  • All Implemented Interfaces:
    org.mockito.ArgumentMatcher<java.util.List<T>>

    public class UnorderedListMatcher<T extends java.lang.Comparable<? super T>>
    extends java.lang.Object
    implements org.mockito.ArgumentMatcher<java.util.List<T>>
    Mockito Matcher that checks unordered list equality to avoid order validation.
    • Constructor Summary

      Constructors 
      Constructor Description
      UnorderedListMatcher​(java.util.List<T> expected)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static <T extends java.lang.Comparable<? super T>>
      java.util.List<T>
      eqUnorderedList​(T... items)  
      boolean matches​(java.util.List<T> right)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UnorderedListMatcher

        public UnorderedListMatcher​(java.util.List<T> expected)
    • Method Detail

      • matches

        public boolean matches​(java.util.List<T> right)
        Specified by:
        matches in interface org.mockito.ArgumentMatcher<T extends java.lang.Comparable<? super T>>
      • eqUnorderedList

        @SafeVarargs
        public static <T extends java.lang.Comparable<? super T>> java.util.List<T> eqUnorderedList​(T... items)