Uses of Class
org.fest.assertions.CollectionAssert
-
Uses of CollectionAssert in org.fest.assertions
Methods in org.fest.assertions that return CollectionAssertModifier and TypeMethodDescriptionSets the description of the actual value, to be used in as message of any
thrown when an assertion fails.AssertionError
CollectionAssert.as
(Description description) Sets the description of the actual value, to be used in as message of any
thrown when an assertion fails.AssertionError
static CollectionAssert
Assertions.assertThat
(Iterable<?> actual) Creates a new instance of
.CollectionAssert
static CollectionAssert
Assertions.assertThat
(Collection<?> actual) Creates a new instance of
.CollectionAssert
static CollectionAssert
Assertions.assertThat
(Iterator<?> actual) Creates a new instance of
.CollectionAssert
Verifies that the actual collection contains the given objects.CollectionAssert.containsOnly
(Object... objects) Verifies that the actual collection contains the given objects only.CollectionAssert.describedAs
(String description) Alias for
, since "as" is a keyword in Groovy.GenericAssert.as(String)
CollectionAssert.describedAs
(Description description) Alias for
, since "as" is a keyword in Groovy.GenericAssert.as(Description)
CollectionAssert.doesNotHaveDuplicates()
Verifies that the actual collection does not have duplicates.CollectionAssert.doesNotSatisfy
(Condition<Collection<?>> condition) Verifies that the actual collection does not satisfy the given condition.Verifies that the actual collection does not contain the given objects.CollectionAssert.hasSize
(int expected) Verifies that the number of elements in the actual collection is equal to the given one.CollectionAssert.is
(Condition<Collection<?>> condition) Alias for
.satisfies(Condition)
CollectionAssert.isEqualTo
(Collection<?> expected) Verifies that the actual collection is equal to the given one.CollectionAssert.isNot
(Condition<Collection<?>> condition) Alias for
.doesNotSatisfy(Condition)
CollectionAssert.isNotEmpty()
Verifies that the actual collection contains at least on element.CollectionAssert.isNotEqualTo
(Collection<?> other) Verifies that the actual collection is not equal to the given one.CollectionAssert.isNotNull()
Verifies that the actual collection is notnull
.CollectionAssert.isNotSameAs
(Collection<?> other) Verifies that the actual collection is not the same as the given one.CollectionAssert.isSameAs
(Collection<?> expected) Verifies that the actual collection is the same as the given one.CollectionAssert.onProperty
(String propertyName) Creates a new instance of
whose target collection contains the values of the given property name from the elements of thisCollectionAssert
CollectionAssert
's collection.CollectionAssert.overridingErrorMessage
(String message) Replaces the default message displayed in case of a failure with the given one.CollectionAssert.satisfies
(Condition<Collection<?>> condition) Verifies that the actual collection satisfies the given condition.