Interface RecursiveAssertionIntrospectionStrategy
-
- All Known Implementing Classes:
DefaultRecursiveAssertionIntrospectionStrategy
public interface RecursiveAssertionIntrospectionStrategy
Defines how objects are introspected in the recursive assertion.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.util.List<RecursiveAssertionNode>
getChildNodesOf(java.lang.Object node)
Returns the child nodes of the given object that will be asserted in the recursive assertion.default java.lang.String
getDescription()
Returns a human-readable description of the strategy to be used in error messages.
-
-
-
Method Detail
-
getChildNodesOf
java.util.List<RecursiveAssertionNode> getChildNodesOf(java.lang.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
- the object to get the child from- Returns:
- the child nodes of the given object
-
getDescription
default java.lang.String getDescription()
Returns a human-readable description of the strategy to be used in error messages.Default implementation returns
this.getClass().getSimpleName()
.- Returns:
- a description of the strategy
-
-