For example:
assertThat(objectsList).extracting(toStringMethod()).contains("toString 1", "toString 2");
assertThat(objectsList).extracting(byName("field")).contains("someResult1", "someResult2");
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static Function | |
| public static Function | |
| public static String | |
| public static String | |
| public static String | |
| public static Function | |
| public static Function | Returns: the builtFunctionProvides extractor for extracting |
| Extractors | back to summary |
|---|---|
| public Extractors() | |
| byName | back to summary |
|---|---|
| public static Function Provides extractor for extracting single field or property from any object using reflection | |
| byName | back to summary |
|---|---|
| public static Function Provides extractor for extracting multiple fields or properties from any object using reflection | |
| extractedDescriptionOf | back to summary |
|---|---|
| public static String extractedDescriptionOf(String... itemsDescription) | |
| extractedDescriptionOf | back to summary |
|---|---|
| public static String extractedDescriptionOf(Object... items) | |
| extractedDescriptionOfMethod | back to summary |
|---|---|
| public static String extractedDescriptionOfMethod(String method) | |
| resultOf | back to summary |
|---|---|
| public static Function Provides extractor for extracting values by method name from any object using reflection | |
| toStringMethod | back to summary |
|---|---|
| public static Function Provides extractor for extracting | |