Package org.hibernate.testing.hamcrest
Class CollectionMatchers
- java.lang.Object
-
- org.hibernate.testing.hamcrest.CollectionMatchers
-
public class CollectionMatchers extends Object
-
-
Constructor Summary
Constructors Constructor Description CollectionMatchers()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <X extends Collection<?>>
HasNullElementsMatcher<X>hasNoNullElements()
static <X extends Collection<?>>
HasNullElementsMatcher<X>hasNullElements()
static org.hamcrest.Matcher<Collection<?>>
hasSize(int size)
static org.hamcrest.Matcher<Collection>
isEmpty()
static <C extends Collection<?>>
org.hamcrest.Matcher<C>isInitialized()
static org.hamcrest.Matcher<Collection>
isNotEmpty()
static <C extends Collection<?>>
org.hamcrest.Matcher<C>isNotInitialized()
-
-
-
Method Detail
-
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()
-
-