Class CollectionMatchers

java.lang.Object
org.hibernate.testing.hamcrest.CollectionMatchers

public class CollectionMatchers extends Object
  • Constructor Details

    • CollectionMatchers

      public CollectionMatchers()
  • Method Details

    • isEmpty

      public static org.hamcrest.Matcher<Collection> isEmpty()
    • isNotEmpty

      public static org.hamcrest.Matcher<Collection> isNotEmpty()
    • hasSize

      public static org.hamcrest.Matcher<Collection<?>> hasSize(int size)
    • hasNullElements

      public static <X extends Collection<?>> HasNullElementsMatcher<X> hasNullElements()
    • hasNoNullElements

      public static <X extends Collection<?>> HasNullElementsMatcher<X> hasNoNullElements()
    • isInitialized

      public static <C extends Collection<?>> org.hamcrest.Matcher<C> isInitialized()
    • isNotInitialized

      public static <C extends Collection<?>> org.hamcrest.Matcher<C> isNotInitialized()