public class FieldsOrPropertiesExtractor extends Object
You just have to give the field/property name, a collection/array of objects and it will extract the list of field/property values from the given objects.
| Constructor and Description |
|---|
FieldsOrPropertiesExtractor() |
| Modifier and Type | Method and Description |
|---|---|
static List<Tuple> |
extract(Iterable<?> objects,
String... fieldsOrPropertiesNames)
Behavior is described in
AbstractIterableAssert.extracting(String...) |
static Tuple[] |
extract(Object[] objects,
String... fieldsOrPropertiesNames)
Call
#extract(Iterable, String) after converting objects to an iterable. |
static List<Object> |
extract(String propertyOrFieldName,
Iterable<?> objects)
Behavior is described in
AbstractIterableAssert.extracting(String) |
static Object[] |
extract(String fieldOrPropertyName,
Object[] objects)
Call
extract(String, Iterable) after converting objects to an iterable. |
public static Object[] extract(String fieldOrPropertyName, Object[] objects)
extract(String, Iterable) after converting objects to an iterable.
Behavior is described in javadoc AbstractIterableAssert.extracting(String)
public static Tuple[] extract(Object[] objects, String... fieldsOrPropertiesNames)
#extract(Iterable, String) after converting objects to an iterable.
Behavior is described in javadoc AbstractIterableAssert.extracting(String...)
public static List<Object> extract(String propertyOrFieldName, Iterable<?> objects)
AbstractIterableAssert.extracting(String)public static List<Tuple> extract(Iterable<?> objects, String... fieldsOrPropertiesNames)
AbstractIterableAssert.extracting(String...)Copyright © 2013 AssertJ. All Rights Reserved.