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

public Interface RecursiveAssertionIntrospectionStrategy

Known Direct Implementers
org.assertj.core.api.recursive.assertion.DefaultRecursiveAssertionIntrospectionStrategy
Imports
java.util.List

Defines how objects are introspected in the recursive assertion.

Method Summary

Modifier and TypeMethod and Description
public List<RecursiveAssertionNode>

Returns:

the child nodes of the given object
getChildNodesOf
(Object
the object to get the child from
node
)

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

public default String

Returns:

a description of the strategy
getDescription
()

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

Method Detail

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

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

getDescriptionback to summary
public default String 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