TextFallbackAssertionFormatter
Formats an Assertion for text output (e.g. to the console) by using the given assertionPairFormatter to format the group header for AssertionGroups and uses the bullet point defined for RootAssertionGroupType as prefix for the AssertionGroup.assertions.
The assertionPairFormatter is also used to format DescriptiveAssertions.
Currently the following Assertion types are supported:
In addition it defines a fallback for unknown AssertionGroupTypes as well as for unknown Assertion types.
Parameters
The formatter uses the bullet point defined for RootAssertionGroupType ("◆ "
if absent) as prefix of the child-AssertionFormatterParameterObject.
The AssertionFormatterController used to steer the control flow of the reporting process.
The formatter which is used to format assertion pairs (e.g. DescriptiveAssertion.description and DescriptiveAssertion.representation)
Constructors
Formats an Assertion for text output (e.g. for the console) where it uses a given assertionPairFormatter which defines how an assertion pair (e.g. DescriptiveAssertion.description and DescriptiveAssertion.representation) is formatted.
Functions
Formats the given assertion and appends the result to the sb of the given parameterObject.
Formats the given assertionGroup and appends the result to the sb of the given parameterObject.
Formats the given assertion and appends the result to the sb of the given parameterObject.