Class CollectionMatchers

java.lang.Object
net.serenitybdd.assertions.CollectionMatchers

public class CollectionMatchers
extends java.lang.Object
  • Constructor Summary

    Constructors 
    Constructor Description
    CollectionMatchers()  
  • Method Summary

    Modifier and Type Method Description
    static <E> org.hamcrest.Matcher<java.util.Collection<E>> allMatch​(java.util.function.Predicate<E> predicate)  
    static <E> org.hamcrest.Matcher<java.util.Collection<E>> allMatch​(java.util.function.Predicate<E> predicate, java.lang.String predicateDescription)  
    static <E> org.hamcrest.Matcher<java.util.Collection<E>> allSatisfy​(java.util.function.Consumer<E> consumer)  
    static <E> org.hamcrest.Matcher<java.util.Collection<E>> allSatisfy​(java.util.function.Consumer<E> consumer, java.lang.String consumerDescription)  
    static <E> org.hamcrest.Matcher<java.util.Collection<E>> anyMatch​(java.util.function.Predicate<E> predicate)  
    static <E> org.hamcrest.Matcher<java.util.Collection<E>> anyMatch​(java.util.function.Predicate<E> predicate, java.lang.String predicateDescription)  
    static <E> org.hamcrest.Matcher<java.util.Collection<E>> containsAll​(java.util.Collection<E> expectedListEntries)  
    static <E> org.hamcrest.Matcher<java.util.Collection<E>> satisfies​(java.util.function.Consumer<java.util.Collection<E>> consumer)  
    static <E> org.hamcrest.Matcher<java.util.Collection<E>> satisfies​(java.util.function.Consumer<java.util.Collection<E>> consumer, java.lang.String consumerDescription)  

    Methods inherited from class java.lang.Object

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

    • CollectionMatchers

      public CollectionMatchers()
  • Method Details

    • containsAll

      public static <E> org.hamcrest.Matcher<java.util.Collection<E>> containsAll​(java.util.Collection<E> expectedListEntries)
    • allMatch

      public static <E> org.hamcrest.Matcher<java.util.Collection<E>> allMatch​(java.util.function.Predicate<E> predicate)
    • allMatch

      public static <E> org.hamcrest.Matcher<java.util.Collection<E>> allMatch​(java.util.function.Predicate<E> predicate, java.lang.String predicateDescription)
    • anyMatch

      public static <E> org.hamcrest.Matcher<java.util.Collection<E>> anyMatch​(java.util.function.Predicate<E> predicate)
    • anyMatch

      public static <E> org.hamcrest.Matcher<java.util.Collection<E>> anyMatch​(java.util.function.Predicate<E> predicate, java.lang.String predicateDescription)
    • allSatisfy

      public static <E> org.hamcrest.Matcher<java.util.Collection<E>> allSatisfy​(java.util.function.Consumer<E> consumer)
    • allSatisfy

      public static <E> org.hamcrest.Matcher<java.util.Collection<E>> allSatisfy​(java.util.function.Consumer<E> consumer, java.lang.String consumerDescription)
    • satisfies

      public static <E> org.hamcrest.Matcher<java.util.Collection<E>> satisfies​(java.util.function.Consumer<java.util.Collection<E>> consumer)
    • satisfies

      public static <E> org.hamcrest.Matcher<java.util.Collection<E>> satisfies​(java.util.function.Consumer<java.util.Collection<E>> consumer, java.lang.String consumerDescription)