SingleAssertionGroupTypeFormatter
abstract class SingleAssertionGroupTypeFormatter<in T : AssertionGroupType>(clazz: KClass<T>) : AssertionFormatter(source)
A base type for AssertionFormatter which canFormat only AssertionGroups of one specific AssertionGroupType.
Parameters
T
The AssertionGroupType which the concrete sub class canFormat.
clazz
The AssertionGroupType which the concrete sub class canFormat.
Inheritors
Constructors
Link copied to clipboard
A base type for AssertionFormatter which canFormat only AssertionGroups of one specific AssertionGroupType.
Functions
Link copied to clipboard
Formats the given assertion and appends the result to the sb of the given parameterObject.
Link copied to clipboard
override fun formatGroup(assertionGroup: AssertionGroup, parameterObject: AssertionFormatterParameterObject, formatAssertions: (AssertionFormatterParameterObject, (Assertion) -> Unit) -> Unit)
Checks whether assertionGroup is T or a sub type and if so, calls formatGroupHeaderAndGetChildParameterObject and uses the resulting child-AssertionFormatterParameterObject to format AssertionGroup.assertions.
Link copied to clipboard
override fun formatNonGroup(assertion: Assertion, parameterObject: AssertionFormatterParameterObject): Nothing
Always throws an UnsupportedOperationException, because this AssertionFormatter can only format AssertionGroups.