public class CollectionVerifier<T> extends AbstractVerifier<Collection<T>,CollectionVerifier<T>>
| Modifier and Type | Method and Description |
|---|---|
CollectionVerifier<T> |
contains(T firstContained,
T... furtherContained)
asserts that the validated colletion contains the expected values.
|
CollectionVerifier<T> |
containsOnly(T firstContained,
T... furtherContained)
asserts that the validated colletion contain only the expected values.
|
CollectionVerifier<T> |
isEmpty()
asserts that the validated colletion is empty.
|
CollectionVerifier<T> |
isNotEmpty()
asserts that the validated colletion is not empty.
|
isEqualTo, isNotEqualTo, isNotNull, isNull, matches, withMessagepublic CollectionVerifier<T> isEmpty()
public CollectionVerifier<T> isNotEmpty()
@SafeVarargs public final CollectionVerifier<T> containsOnly(T firstContained, T... furtherContained)
@SafeVarargs public final CollectionVerifier<T> contains(T firstContained, T... furtherContained)
Copyright © 2021. All rights reserved.