abstract fun formatGroup(assertionGroup: AssertionGroup, parameterObject: AssertionFormatterParameterObject, formatAssertions: (AssertionFormatterParameterObject, (Assertion) -> Unit) -> Unit): Unit
Formats the given assertionGroup and appends the result to the sb of the given parameterObject.
Formatting an AssertionGroup makes up of two parts (where the first might be skipped):
This function should be in sync with canFormat. If canFormat returns true
then this method should be able
to format the given assertionGroup without problems. If canFormat returns false
then this method should
throw an UnsupportedOperationException.
assertionGroup
- The assertion group which should be formatted.
parameterObject
- The parameter object which contains inter alia the sb
to which the result will be appended.
formatAssertions
- The function which should be called to format the
assertions of the given assertionGroup.
It itself expects a AssertionFormatterParameterObject which is used for the child assertions and a function
which formats the child Assertions in the context of the given assertionGroup.