Interface RecursiveAssertionIntrospectionStrategy
- All Known Implementing Classes:
DefaultRecursiveAssertionIntrospectionStrategy
public interface RecursiveAssertionIntrospectionStrategy
Defines how objects are introspected in the recursive assertion.
-
Method Summary
Modifier and TypeMethodDescriptiongetChildNodesOf
(Object node) Returns the child nodes of the given object that will be asserted in the recursive assertion.default String
Returns a human-readable description of the strategy to be used in error messages.
-
Method Details
-
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
- the object to get the child from- Returns:
- the child nodes of the given object
-
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
-