Package com.intergral.deep.tests
Class AssertUtils
- java.lang.Object
-
- com.intergral.deep.tests.AssertUtils
-
public class AssertUtils extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
AssertUtils.ICompareFunction<T>
-
Constructor Summary
Constructors Constructor Description AssertUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> int
assertContains(Collection<T> list, AssertUtils.ICompareFunction<T> compareFunction)
Assert that a collection contains an item that matches the function.
-
-
-
Method Detail
-
assertContains
public static <T> int assertContains(Collection<T> list, AssertUtils.ICompareFunction<T> compareFunction)
Assert that a collection contains an item that matches the function.- Type Parameters:
T
- the type of items in the collection- Parameters:
list
- the collection to scancompareFunction
- the function to run- Returns:
- the result of the compare
-
-