Uses of Interface
org.assertj.core.api.iterable.ThrowingExtractor
-
Uses of ThrowingExtractor in org.assertj.core.api
Modifier and TypeMethodDescription<V,
EXCEPTION extends Exception>
AbstractListAssert<?,List<? extends V>, V, ObjectAssert<V>> AbstractIterableAssert.extracting
(ThrowingExtractor<? super ELEMENT, V, EXCEPTION> extractor) Extract the values from Iterable's elements under test by applying an extracting function (which might throw an exception) on them.<V,
EXCEPTION extends Exception>
AbstractListAssert<?,List<? extends V>, V, ObjectAssert<V>> AbstractObjectArrayAssert.extracting
(ThrowingExtractor<? super ELEMENT, V, EXCEPTION> extractor) Extract the values from the array's elements by applying an extracting function (which might throw an exception) on them, the resulting list of extracted values becomes a new object under test.<U,
EXCEPTION extends Exception>
ObjectArrayAssert<U>AtomicReferenceArrayAssert.extracting
(ThrowingExtractor<? super T, U, EXCEPTION> extractor) Extract the values from the array's elements by applying an extracting function (which might throw an exception) on them.final <EXCEPTION extends Exception>
AbstractListAssert<?,List<? extends Object>, Object, ObjectAssert<Object>> AbstractIterableAssert.flatExtracting
(ThrowingExtractor<? super ELEMENT, ?, EXCEPTION>... extractors) Extracts multiple values from eachIterable
's element according to the givenThrowingExtractor
s and concatenates/flattens them in a list that becomes the object under test.<V,
EXCEPTION extends Exception>
AbstractListAssert<?,List<? extends V>, V, ObjectAssert<V>> AbstractIterableAssert.flatExtracting
(ThrowingExtractor<? super ELEMENT, ? extends Collection<V>, EXCEPTION> extractor) Extracts Iterable elements values by applying a function (which might throw a checked exception) on them and concatenates/flattens the result into a single list that becomes the instance under test.<V,
C extends Collection<V>, EXCEPTION extends Exception>
AbstractListAssert<?,List<? extends V>, V, ObjectAssert<V>> AbstractObjectArrayAssert.flatExtracting
(ThrowingExtractor<? super ELEMENT, C, EXCEPTION> extractor) Extract the Iterable values from arrays elements under test by applying an Iterable extracting function (which might throw an exception) on them and concatenating the result lists into an array which becomes the new object under test.<U,
C extends Collection<U>, EXCEPTION extends Exception>
ObjectArrayAssert<U>AtomicReferenceArrayAssert.flatExtracting
(ThrowingExtractor<? super T, C, EXCEPTION> extractor) Extract the Iterable values from the array's elements by applying an Iterable extracting function (which might throw an exception) on them and concatenating the result lists into an array which becomes the new object under test.final <EXCEPTION extends Exception>
AbstractListAssert<?,List<? extends Object>, Object, ObjectAssert<Object>> AbstractIterableAssert.flatMap
(ThrowingExtractor<? super ELEMENT, ?, EXCEPTION>... mappers) Maps multiple values from eachIterable
's element according to the givenThrowingExtractor
s and concatenates/flattens them in a list that becomes the object under test.<V,
EXCEPTION extends Exception>
AbstractListAssert<?,List<? extends V>, V, ObjectAssert<V>> AbstractIterableAssert.flatMap
(ThrowingExtractor<? super ELEMENT, ? extends Collection<V>, EXCEPTION> mapper) Maps the Iterable's elements under test by applying a mapping function (which might throw a checked exception) and concatenates/flattens the result into a single list that becomes the instance under test.<V,
EXCEPTION extends Exception>
AbstractListAssert<?,List<? extends V>, V, ObjectAssert<V>> AbstractIterableAssert.map
(ThrowingExtractor<? super ELEMENT, V, EXCEPTION> mapper) Maps the Iterable's elements by applying the given mapping function (which might throw an exception), the returned list becomes the instance under test.