Class DefaultRecursiveAssertionIntrospectionStrategy
java.lang.Object
org.assertj.core.api.recursive.assertion.DefaultRecursiveAssertionIntrospectionStrategy
- All Implemented Interfaces:
RecursiveAssertionIntrospectionStrategy
public class DefaultRecursiveAssertionIntrospectionStrategy
extends Object
implements RecursiveAssertionIntrospectionStrategy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetChildNodesOf
(Object node) Returns the child nodes of the given object that will be asserted in the recursive assertion.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
-
Constructor Details
-
DefaultRecursiveAssertionIntrospectionStrategy
public DefaultRecursiveAssertionIntrospectionStrategy()
-
-
Method Details
-
getChildNodesOf
Description copied from interface:RecursiveAssertionIntrospectionStrategy
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.
- Specified by:
getChildNodesOf
in interfaceRecursiveAssertionIntrospectionStrategy
- Parameters:
node
- the object to get the child from- Returns:
- the child nodes of the given object
-
getDescription
Description copied from interface:RecursiveAssertionIntrospectionStrategy
Returns a human-readable description of the strategy to be used in error messages.Default implementation returns
this.getClass().getSimpleName()
.- Specified by:
getDescription
in interfaceRecursiveAssertionIntrospectionStrategy
- Returns:
- a description of the strategy
-
toNode
-
getFieldType
-
getFieldType
-