Package | Description |
---|---|
org.assertj.core.api | |
org.assertj.core.api.iterable | |
org.assertj.core.extractor | |
org.assertj.core.groups |
Modifier and Type | Method and Description |
---|---|
<U> AbstractListAssert<?,List<? extends U>,U,ObjectAssert<U>> |
AbstractObjectArrayAssert.extracting(Extractor<? super ELEMENT,U> extractor)
Extract the values from the array's elements by applying an extracting function on them, the resulting list becomes
the new object under test.
|
<V> AbstractListAssert<?,List<? extends V>,V,ObjectAssert<V>> |
AbstractIterableAssert.extracting(Extractor<? super ELEMENT,V> extractor)
Extract the values from Iterable's elements under test by applying an extracting function on them.
|
<U> ObjectArrayAssert<U> |
AtomicReferenceArrayAssert.extracting(Extractor<? super T,U> extractor)
Extract the values from the array's elements by applying an extracting function on them.
|
AbstractListAssert<?,List<? extends Object>,Object,ObjectAssert<Object>> |
AbstractIterableAssert.flatExtracting(Extractor<? super ELEMENT,?>... extractors)
Extract multiple values from each
Iterable 's element according to the given Extractor s
and concatenate/flatten the extracted values in a list that is used as the new object under test. |
AbstractListAssert<?,List<? extends Object>,Object,ObjectAssert<Object>> |
IterableAssert.flatExtracting(Extractor<? super ELEMENT,?>... extractors) |
AbstractListAssert<?,List<? extends Object>,Object,ObjectAssert<Object>> |
ListAssert.flatExtracting(Extractor<? super ELEMENT,?>... extractors) |
<V> AbstractListAssert<?,List<? extends V>,V,ObjectAssert<V>> |
AbstractIterableAssert.flatExtracting(Extractor<? super ELEMENT,? extends Collection<V>> extractor)
Extract the Iterable values from Iterable's elements under test by applying an Iterable extracting function on them
and concatenating the result lists.
|
<V,C extends Collection<V>> |
AbstractObjectArrayAssert.flatExtracting(Extractor<? super ELEMENT,C> extractor)
Extract the Iterable values from arrays elements under test by applying an Iterable extracting function on them
and concatenating the result lists into an array which becomes the new object under test.
|
<U,C extends Collection<U>> |
AtomicReferenceArrayAssert.flatExtracting(Extractor<? super T,C> extractor)
Extract the Iterable values from the array's elements by applying an Iterable extracting function on them
and concatenating the result lists into an array which becomes the new object under test.
|
Modifier and Type | Interface and Description |
---|---|
interface |
ThrowingExtractor<F,T,EXCEPTION extends Exception>
Function converting an element to another element.
|
Modifier and Type | Class and Description |
---|---|
class |
ByNameMultipleExtractor<T> |
class |
ToStringExtractor
Extracts
Object.toString() from any object |
Modifier and Type | Method and Description |
---|---|
static <F> Extractor<F,Tuple> |
Extractors.byName(String... fieldsOrProperties)
Provides extractor for extracting multiple fields or properties from any object using reflection
|
static <F> Extractor<F,Object> |
Extractors.byName(String fieldOrProperty)
Provides extractor for extracting single field or property from any object using reflection
|
static <F> Extractor<F,Object> |
Extractors.resultOf(String methodName)
Provides extractor for extracting values by method name from any object using reflection
|
static Extractor<Object,String> |
Extractors.toStringMethod()
Provides extractor for extracting
Object.toString() from any object |
Modifier and Type | Method and Description |
---|---|
static <F,T> T[] |
FieldsOrPropertiesExtractor.extract(F[] objects,
Extractor<? super F,T> extractor)
Call
FieldsOrPropertiesExtractor.extract(Iterable, Extractor) after converting objects to an iterable. |
static <F,T> List<T> |
FieldsOrPropertiesExtractor.extract(Iterable<? extends F> objects,
Extractor<? super F,T> extractor)
Behavior is described in
AbstractIterableAssert.extracting(Extractor) |
Copyright © 2014–2018 AssertJ. All rights reserved.