doc / ch.tutteli.atrium.reporting / IAssertionFormatter

IAssertionFormatter

interface IAssertionFormatter

Represents a formatter for IAssertions and IAssertionGroups.

Functions

canFormat

abstract fun canFormat(assertion: IAssertion): Boolean

Denotes whether this IAssertionFormatter was created to format IAssertions such as the given assertion or not.

format

open fun format(assertion: IAssertion, methodObject: AssertionFormatterMethodObject): Unit

Formats the given assertion and appends the result to the sb of the given methodObject.

formatGroup

abstract fun formatGroup(assertionGroup: IAssertionGroup, methodObject: AssertionFormatterMethodObject, formatAssertions: (AssertionFormatterMethodObject, (IAssertion) -> Unit) -> Unit): Unit

Formats the given assertionGroup and appends the result to the sb of the given methodObject.

formatNonGroup

abstract fun formatNonGroup(assertion: IAssertion, methodObject: AssertionFormatterMethodObject): Unit

Formats the given assertion and appends the result to the sb of the given methodObject.

Companion Object Properties

CALL_FORMAT_GROUP

val CALL_FORMAT_GROUP: String

Companion Object Functions

throwNotIntendedForAssertionGroups

fun throwNotIntendedForAssertionGroups(): Unit