Package | Description |
---|---|
org.assertj.core.api | |
org.assertj.core.extractor | |
org.assertj.core.groups |
Modifier and Type | Method and Description |
---|---|
<U> ObjectArrayAssert<U> |
AbstractObjectArrayAssert.extracting(Extractor<? super T,U> extractor)
Extract the values from Iterable's elements after test by applying an extracting function on them.
|
<V> ListAssert<V> |
AbstractIterableAssert.extracting(Extractor<? super T,V> extractor)
Extract the values from Iterable's elements under test by applying an extracting function on them.
|
<V> ListAssert<V> |
AbstractIterableAssert.flatExtracting(Extractor<? super T,? 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.
|
<U,C extends Collection<U>> |
AbstractObjectArrayAssert.flatExtracting(Extractor<? super T,C> extractor) |
Modifier and Type | Class and Description |
---|---|
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<?,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<F> objects,
Extractor<? super F,T> extractor)
Behavior is described in
AbstractIterableAssert.extracting(Extractor) |
Copyright © 2013–2014 AssertJ. All rights reserved.