Class UnorderedListMatcher<T extends Comparable<? super T>>

java.lang.Object
fr.gouv.vitam.common.mockito.UnorderedListMatcher<T>
All Implemented Interfaces:
org.mockito.ArgumentMatcher<List<T>>

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

    • UnorderedListMatcher

      public UnorderedListMatcher(List<T> expected)
  • Method Details

    • matches

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

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