Interface RecursiveAssertionIntrospectionStrategy

All Known Implementing Classes:
DefaultRecursiveAssertionIntrospectionStrategy

public interface RecursiveAssertionIntrospectionStrategy
Defines how objects are introspected in the recursive assertion.
  • Method Summary

    Modifier and Type
    Method
    Description
    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

      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 - the object to get the child from
      Returns:
      the child nodes of the given object
    • getDescription

      default 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