doc / ch.tutteli.atrium.reporting.text.impl

Package ch.tutteli.atrium.reporting.text.impl

Contains default implementations of the interfaces defined in ch.tutteli.atrium.reporting.text.

Types

AbstractTextObjectFormatter

abstract class AbstractTextObjectFormatter : TextObjectFormatterCommon

DefaultTextMethodCallFormatter

object DefaultTextMethodCallFormatter : TextMethodCallFormatter

Responsible to format a method call for text output (e.g. to the console) where it represents arguments of a method call by using their Any.toString representation with a few exceptions.

DefaultTextObjectFormatter

expect class DefaultTextObjectFormatter : TextObjectFormatter

NoSpecialChildFormattingSingleAssertionGroupTypeFormatter

abstract class NoSpecialChildFormattingSingleAssertionGroupTypeFormatter<in T : AssertionGroupType> : SingleAssertionGroupTypeFormatter<T>

A base type for AssertionFormatter which canFormat only AssertionGroups of one specific AssertionGroupType and does nothing special when it comes to formatting AssertionGroup.assertions (merely delegates to assertionFormatterController).

SingleAssertionGroupTypeFormatter

abstract class SingleAssertionGroupTypeFormatter<in T : AssertionGroupType> : AssertionFormatter

A base type for AssertionFormatter which canFormat only AssertionGroups of one specific AssertionGroupType.

TextAssertionFormatterFactory

interface TextAssertionFormatterFactory

TextExplanatoryAssertionGroupFormatter

class TextExplanatoryAssertionGroupFormatter : NoSpecialChildFormattingSingleAssertionGroupTypeFormatter<ExplanatoryAssertionGroupType>, TextAssertionFormatter

Represents an AssertionFormatter which formats AssertionGroups with an ExplanatoryAssertionGroupType by neglecting the group header and defining an child-AssertionFormatterParameterObject which indicates that we are in an explanatory assertion.

TextFallbackAssertionFormatter

class TextFallbackAssertionFormatter : AssertionFormatter, TextAssertionFormatter

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.

TextFeatureAssertionGroupFormatter

class TextFeatureAssertionGroupFormatter : NoSpecialChildFormattingSingleAssertionGroupTypeFormatter<FeatureAssertionGroupType>, TextAssertionFormatter

Represents an AssertionFormatter which formats AssertionGroups with a FeatureAssertionGroupType by using the given assertionPairFormatter to format the group header, additionally prefixing it with the "bullet point" (typically an arrow) defined for PrefixFeatureAssertionGroupHeader and uses the bullet point defined for FeatureAssertionGroupType as prefix for the AssertionGroup.assertions.

TextListAssertionGroupFormatter

class TextListAssertionGroupFormatter : TextListBasedAssertionGroupFormatter<ListAssertionGroupType>

Represents an AssertionFormatter which formats AssertionGroups with a ListAssertionGroupType by using the given assertionPairFormatter to format the group header and uses the bullet point defined for ListAssertionGroupType as prefix for the AssertionGroup.assertions.

TextListBasedAssertionGroupFormatter

abstract class TextListBasedAssertionGroupFormatter<in T : AssertionGroupType> : NoSpecialChildFormattingSingleAssertionGroupTypeFormatter<T>, TextAssertionFormatter

Represents an AssertionFormatter which formats AssertionGroups with type T by using the given assertionPairFormatter to format the group header and using the given bulletPoint (see constructor) to prefix the AssertionGroup.assertions.

TextNextLineAssertionPairFormatter

class TextNextLineAssertionPairFormatter : AssertionPairFormatter, TextAssertionPairFormatter

Represents an AssertionPairFormatter formatter of assertion pairs -- which consists of a Translatable and a representation -- where it puts the translation on one line and the representation on the next line (including indentation as if the representation is a child).

TextObjectFormatterCommon

abstract class TextObjectFormatterCommon : TextObjectFormatter

Base class for the platform specific implementation of DefaultTextObjectFormatter.

TextPrefixBasedAssertionGroupFormatter

class TextPrefixBasedAssertionGroupFormatter

TextSameLineAssertionPairFormatter

class TextSameLineAssertionPairFormatter : AssertionPairFormatter, TextAssertionPairFormatter

Represents an AssertionPairFormatter formatter of assertion pairs -- which consists of a Translatable and a representation -- where it puts them on the same line in the form: translation: representation.

TextSummaryAssertionGroupFormatter

class TextSummaryAssertionGroupFormatter : SingleAssertionGroupTypeFormatter<SummaryAssertionGroupType>, TextAssertionFormatter

Represents an AssertionFormatter which formats AssertionGroups with a SummaryAssertionGroupType by using the given assertionPairFormatter to format the group header and uses the bullet point defined for PrefixSuccessfulSummaryAssertion as prefix for successful AssertionGroup.assertions and the bullet point defined for PrefixFeatureAssertionGroupHeader as prefix for failing AssertionGroup.assertions.