abstract fun format(sb: StringBuilder, assertion: IAssertion, assertionFilter: (IAssertion) -> Boolean, messageFilter: (Message) -> Boolean): Unit
(source)
Formats the given assertion and appends the result to the given sb.
One can define an assertionFilter and a messageFilter to filter out IAssertions, Messages respectively (for instance, filter out assertions which hold --> see IAtriumFactory.newOnlyFailureReporter).
sb
- The StringBuilder to which the formatted assertion will be appended.
assertion
- The assertion which should be formatted
assertionFilter
- Can be used used to filter out IAssertions which should not be formatted.
messageFilter
- Can be used to filter out Messages which should not be formatted.