doc / ch.tutteli.atrium.reporting / IObjectFormatter

IObjectFormatter

interface IObjectFormatter

Represents a formatter for objects.

Typically it formats IAssertionPlant.subjects and expected values of IAssertions.

Functions

format

abstract fun format(value: Any?): String

Returns a formatted version of the given value.

Inheritors

ToStringObjectFormatter

object ToStringObjectFormatter : IObjectFormatter

Represents an IObjectFormatter which merely formats a given object by calling its toString method.