Package fr.gouv.vitam.common.mockito
Class UnorderedListMatcher<T extends java.lang.Comparable<? super T>>
- java.lang.Object
-
- fr.gouv.vitam.common.mockito.UnorderedListMatcher<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)
-
-
-
Constructor Detail
-
UnorderedListMatcher
public UnorderedListMatcher(java.util.List<T> expected)
-
-
Method Detail
-
matches
public boolean matches(java.util.List<T> right)
-
eqUnorderedList
@SafeVarargs public static <T extends java.lang.Comparable<? super T>> java.util.List<T> eqUnorderedList(T... items)
-
-