Class AssertUtils


  • public class AssertUtils
    extends Object
    • Constructor Detail

      • AssertUtils

        public AssertUtils()
    • 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 scan
        compareFunction - the function to run
        Returns:
        the result of the compare