Top Constructors Methods
org.assertj.core.api.recursive.assertion

public Class DefaultRecursiveAssertionIntrospectionStrategy

extends Object
implements RecursiveAssertionIntrospectionStrategy
Class Inheritance
All Implemented Interfaces
org.assertj.core.api.recursive.assertion.RecursiveAssertionIntrospectionStrategy
Static Imports
java.lang.String.format, java.util.Arrays.stream, java.util.stream.Collectors.toList, org.assertj.core.internal.Objects.getDeclaredFieldsIncludingInherited, org.assertj.core.util.introspection.PropertyOrFieldSupport.EXTRACTION

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public List<RecursiveAssertionNode>
getChildNodesOf(Object
the object to get the child from
node
)

Implements org.assertj.core.api.recursive.assertion.RecursiveAssertionIntrospectionStrategy.getChildNodesOf.

Returns the child nodes of the given object that will be asserted in the recursive assertion.
public String
getDescription()

Overrides default org.assertj.core.api.recursive.assertion.RecursiveAssertionIntrospectionStrategy.getDescription.

Returns a human-readable description of the strategy to be used in error messages.
private static Class<?>
getFieldType(Object fieldValue, String fieldName, Object targetObject)

private static Class<?>
getFieldType(String fieldName, Class<?> objectClass)

private static RecursiveAssertionNode
toNode(Field field, Object node)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

DefaultRecursiveAssertionIntrospectionStrategyback to summary
public DefaultRecursiveAssertionIntrospectionStrategy()

Method Detail

getChildNodesOfback to summary
public List<RecursiveAssertionNode> getChildNodesOf(Object node)

Implements org.assertj.core.api.recursive.assertion.RecursiveAssertionIntrospectionStrategy.getChildNodesOf.

Doc from org.assertj.core.api.recursive.assertion.RecursiveAssertionIntrospectionStrategy.getChildNodesOf.

Returns the child nodes of the given object that will be asserted in the recursive assertion.

A typical implementation could look at the object fields or properties.

Parameters
node:Object

the object to get the child from

Returns:List<RecursiveAssertionNode>

the child nodes of the given object

Annotations
@Override
getDescriptionback to summary
public String getDescription()

Overrides default org.assertj.core.api.recursive.assertion.RecursiveAssertionIntrospectionStrategy.getDescription.

Doc from org.assertj.core.api.recursive.assertion.RecursiveAssertionIntrospectionStrategy.getDescription.

Returns a human-readable description of the strategy to be used in error messages.

Default implementation returns this.getClass().getSimpleName().

Returns:String

a description of the strategy

Annotations
@Override
getFieldTypeback to summary
private static Class<?> getFieldType(Object fieldValue, String fieldName, Object targetObject)
getFieldTypeback to summary
private static Class<?> getFieldType(String fieldName, Class<?> objectClass)
toNodeback to summary
private static RecursiveAssertionNode toNode(Field field, Object node)