Uses of Interface
org.assertj.core.api.ThrowingConsumer
-
Uses of ThrowingConsumer in org.assertj.core.api
Modifier and TypeMethodDescriptionstatic <T> ThrowingConsumer
<T> Assertions.allOf
(ThrowingConsumer<? super T>... consumers) Create a new
that delegates the evaluation of the given consumers toThrowingConsumer
AbstractAssert.satisfies(ThrowingConsumer[])
.static <T> ThrowingConsumer
<T> BDDAssertions.allOf
(ThrowingConsumer<? super T>... consumers) Create a new
that delegates the evaluation of the given consumers toThrowingConsumer
AbstractAssert.satisfies(ThrowingConsumer[])
.default <T> ThrowingConsumer
<T> WithAssertions.allOf
(ThrowingConsumer<? super T>... consumers) Create a new
that delegates the evaluation of the given consumers toThrowingConsumer
AbstractAssert.satisfies(ThrowingConsumer[])
.static <T> ThrowingConsumer
<T> Assertions.anyOf
(ThrowingConsumer<? super T>... consumers) Create a new
that delegates the evaluation of the given consumers toThrowingConsumer
AbstractAssert.satisfiesAnyOf(ThrowingConsumer[])
.static <T> ThrowingConsumer
<T> BDDAssertions.anyOf
(ThrowingConsumer<? super T>... consumers) Create a new
that delegates the evaluation of the given consumers toThrowingConsumer
AbstractAssert.satisfiesAnyOf(ThrowingConsumer[])
.default <T> ThrowingConsumer
<T> WithAssertions.anyOf
(ThrowingConsumer<? super T>... consumers) Create a new
that delegates the evaluation of the given consumers toThrowingConsumer
AbstractAssert.satisfiesAnyOf(ThrowingConsumer[])
.Modifier and TypeMethodDescriptionstatic <T> ThrowingConsumer
<T> Assertions.allOf
(ThrowingConsumer<? super T>... consumers) Create a new
that delegates the evaluation of the given consumers toThrowingConsumer
AbstractAssert.satisfies(ThrowingConsumer[])
.static <T> ThrowingConsumer
<T> BDDAssertions.allOf
(ThrowingConsumer<? super T>... consumers) Create a new
that delegates the evaluation of the given consumers toThrowingConsumer
AbstractAssert.satisfies(ThrowingConsumer[])
.default <T> ThrowingConsumer
<T> WithAssertions.allOf
(ThrowingConsumer<? super T>... consumers) Create a new
that delegates the evaluation of the given consumers toThrowingConsumer
AbstractAssert.satisfies(ThrowingConsumer[])
.AbstractIterableAssert.allSatisfy
(ThrowingConsumer<? super ELEMENT> requirements) Verifies that all the elements satisfy the given requirements expressed as aThrowingConsumer
.AbstractObjectArrayAssert.allSatisfy
(ThrowingConsumer<? super ELEMENT> requirements) Verifies that all the elements satisfy the given requirements expressed as aThrowingConsumer
.AtomicReferenceArrayAssert.allSatisfy
(ThrowingConsumer<? super T> requirements) Verifies that all the elements satisfy the given requirements expressed as aThrowingConsumer
.ObjectEnumerableAssert.allSatisfy
(ThrowingConsumer<? super ELEMENT> requirements) Verifies that all the elements satisfy the given requirements expressed as aThrowingConsumer
.static <T> ThrowingConsumer
<T> Assertions.anyOf
(ThrowingConsumer<? super T>... consumers) Create a new
that delegates the evaluation of the given consumers toThrowingConsumer
AbstractAssert.satisfiesAnyOf(ThrowingConsumer[])
.static <T> ThrowingConsumer
<T> BDDAssertions.anyOf
(ThrowingConsumer<? super T>... consumers) Create a new
that delegates the evaluation of the given consumers toThrowingConsumer
AbstractAssert.satisfiesAnyOf(ThrowingConsumer[])
.default <T> ThrowingConsumer
<T> WithAssertions.anyOf
(ThrowingConsumer<? super T>... consumers) Create a new
that delegates the evaluation of the given consumers toThrowingConsumer
AbstractAssert.satisfiesAnyOf(ThrowingConsumer[])
.AbstractIterableAssert.anySatisfy
(ThrowingConsumer<? super ELEMENT> requirements) Verifies that at least one element satisfies the given requirements expressed as aThrowingConsumer
.AbstractObjectArrayAssert.anySatisfy
(ThrowingConsumer<? super ELEMENT> requirements) Verifies that at least one element satisfies the given requirements expressed as aThrowingConsumer
.AtomicReferenceArrayAssert.anySatisfy
(ThrowingConsumer<? super T> requirements) Verifies that at least one element satisfies the given requirements expressed as aThrowingConsumer
.ObjectEnumerableAssert.anySatisfy
(ThrowingConsumer<? super ELEMENT> requirements) Verifies that at least one element satisfies the given requirements expressed as aThrowingConsumer
.AbstractIterableAssert.filteredOnAssertions
(ThrowingConsumer<? super ELEMENT> elementAssertions) Filters the iterable under test keeping only elements matching the given assertions specified with aThrowingConsumer
.AbstractObjectArrayAssert.filteredOnAssertions
(ThrowingConsumer<? super ELEMENT> elementAssertions) Filter the array under test keeping only elements matching the given assertions specified with aConsumer
.AbstractIterableAssert.noneSatisfy
(ThrowingConsumer<? super ELEMENT> restrictions) Verifies that no elements satisfy the given restrictions expressed as aConsumer
.AbstractObjectArrayAssert.noneSatisfy
(ThrowingConsumer<? super ELEMENT> restrictions) Verifies that no elements satisfy the given restrictions expressed as aConsumer
.AtomicReferenceArrayAssert.noneSatisfy
(ThrowingConsumer<? super T> restrictions) Verifies that no elements satisfy the given restrictions expressed as aConsumer
.ObjectEnumerableAssert.noneSatisfy
(ThrowingConsumer<? super ELEMENT> restrictions) Verifies that no elements satisfy the given restrictions expressed as aConsumer
.final SELF
AbstractAssert.satisfies
(ThrowingConsumer<? super ACTUAL>... assertions) Verifies that the actual object satisfied the given requirements expressed asThrowingConsumer
s.final SELF
AbstractAssert.satisfiesAnyOf
(ThrowingConsumer<? super ACTUAL>... assertions) Verifies that the actual object under test satisfies at least one of the given assertions group expressed asThrowingConsumer
s.final SELF
AbstractIterableAssert.satisfiesExactly
(ThrowingConsumer<? super ELEMENT>... requirements) Verifies that each element satisfies the requirements corresponding to its index, so the first element must satisfy the first requirements, the second element the second requirements etc...final SELF
AbstractObjectArrayAssert.satisfiesExactly
(ThrowingConsumer<? super ELEMENT>... requirements) Verifies that each element satisfies the requirements corresponding to its index, so the first element must satisfy the first requirements, the second element the second requirements etc...final AtomicReferenceArrayAssert
<T> AtomicReferenceArrayAssert.satisfiesExactly
(ThrowingConsumer<? super T>... requirements) Verifies that each element satisfies the requirements corresponding to its index, so the first element must satisfy the first requirements, the second element the second requirements etc...ObjectEnumerableAssert.satisfiesExactly
(ThrowingConsumer<? super ELEMENT>... allRequirements) Verifies that each element satisfies the requirements corresponding to its index, so the first element must satisfy the first requirements, the second element the second requirements etc...final SELF
AbstractIterableAssert.satisfiesExactlyInAnyOrder
(ThrowingConsumer<? super ELEMENT>... requirements) Verifies that at least one combination of iterable elements exists that satisfies theThrowingConsumer
s in order (there must be as many consumers as iterable elements and once a consumer is matched it cannot be reused to match other elements).final SELF
AbstractObjectArrayAssert.satisfiesExactlyInAnyOrder
(ThrowingConsumer<? super ELEMENT>... requirements) Verifies that at least one combination of iterable elements exists that satisfies theThrowingConsumer
s in order (there must be as many consumers as iterable elements and once a consumer is matched it cannot be reused to match other elements).final AtomicReferenceArrayAssert
<T> AtomicReferenceArrayAssert.satisfiesExactlyInAnyOrder
(ThrowingConsumer<? super T>... requirements) Verifies that at least one combination of iterable elements exists that satisfies theThrowingConsumer
s in order (there must be as many consumers as iterable elements and once a consumer is matched it cannot be reused to match other elements).ObjectEnumerableAssert.satisfiesExactlyInAnyOrder
(ThrowingConsumer<? super ELEMENT>... allRequirements) Verifies that at least one combination of iterable elements exists that satisfies theThrowingConsumer
s in order (there must be as many consumers as iterable elements and once a consumer is matched it cannot be reused to match other elements).AbstractIterableAssert.satisfiesOnlyOnce
(ThrowingConsumer<? super ELEMENT> requirements) Verifies that there is exactly one element in the iterable under tests that satisfies theThrowingConsumer
.AbstractObjectArrayAssert.satisfiesOnlyOnce
(ThrowingConsumer<? super ELEMENT> requirements) Verifies that there is exactly one element in the array under test that satisfies theThrowingConsumer
.AtomicReferenceArrayAssert.satisfiesOnlyOnce
(ThrowingConsumer<? super T> requirements) Verifies that there is exactly one element in theAtomicReferenceArray
under test that satisfies theThrowingConsumer
.ObjectEnumerableAssert.satisfiesOnlyOnce
(ThrowingConsumer<? super ELEMENT> requirements) Verifies that there is exactly one element in the iterable under tests that satisfies theThrowingConsumer
.