Class AllOf<T>
java.lang.Object
org.assertj.core.api.Condition<T>
org.assertj.core.condition.Join<T>
org.assertj.core.condition.AllOf<T>
- Type Parameters:
T- the type of object this condition accepts.
- All Implemented Interfaces:
Descriptable<Condition<T>>
Returns
true if all of the joined conditions are satisfied.- Author:
- Yvonne Wang, Mikhail Mazursky
-
Nested Class Summary
Nested classes/interfaces inherited from class Condition
Condition.Status -
Field Summary
Fields inherited from class Join
PREFIX_DELIMITER, SUFFIX_DELIMITER -
Method Summary
Methods inherited from class Join
conditionDescriptionWithStatus, conditions, descriptionMethods inherited from class Condition
describedAs, status, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Descriptable
as, as, as, describedAs, describedAs
-
Method Details
-
allOf
Creates a newAllOf- Type Parameters:
T- the type of object the given condition accept.- Parameters:
conditions- the conditions to evaluate.- Returns:
- the created
AllOf. - Throws:
NullPointerException- if the given array isnull.NullPointerException- if any of the elements in the given array isnull.
-
allOf
Creates a newAllOf- Type Parameters:
T- the type of object the given condition accept.- Parameters:
conditions- the conditions to evaluate.- Returns:
- the created
AllOf. - Throws:
NullPointerException- if the given iterable isnull.NullPointerException- if any of the elements in the given iterable isnull.
-
matches
-
descriptionPrefix
Description copied from class:Joinmethod used to prefix the subclass join description, ex: "all of"- Specified by:
descriptionPrefixin classJoin<T>- Returns:
- the prefix to use to build the description.
-