atrium-domain-builders-jvm / ch.tutteli.atrium.domain.builders.reporting / ReporterBuilder

ReporterBuilder

expect interface ReporterBuilder : ReporterBuilderCommon (source)

Provides options to create a Translator or TranslationSupplier -- the platform specific interface might provide further options.

Functions

withoutTranslations

open fun withoutTranslations(primaryLocale: Locale = java.util.Locale.getDefault()): ObjectFormatterOption

Uses UsingDefaultTranslator as Translator where the given primaryLocale is used to format arguments of TranslatableWithArgs.

Inherited Functions

withDefaultTranslationSupplier

abstract fun withDefaultTranslationSupplier(): LocaleOrderDeciderOption

Uses a predefined method to create a TranslationSupplier -- see platform specific interface for further information.

withoutTranslations

abstract fun withoutTranslations(primaryLocale: <ERROR CLASS>): ObjectFormatterOption

Uses UsingDefaultTranslator as Translator where the given primaryLocale is used to format arguments of TranslatableWithArgs.

withoutTranslationsUseDefaultLocale

open fun withoutTranslationsUseDefaultLocale(): ObjectFormatterOption

Uses UsingDefaultTranslator as Translator where getDefaultLocale is used to format arguments of TranslatableWithArgs.

withTranslationSupplier

abstract fun withTranslationSupplier(translationSupplier: <ERROR CLASS>): LocaleOrderDeciderOption

Uses the given translationSupplier as TranslationSupplier.

withTranslator

abstract fun withTranslator(translator: <ERROR CLASS>): ObjectFormatterOption

Uses the given translator as Translator skipping the options for TranslationSupplier and LocaleOrderDecider assuming the given translator is implemented differently -- use withDefaultTranslationSupplier or withTranslationSupplier in case the given translator requires a TranslationSupplier or a LocaleOrderDecider.

Companion Object Functions

create

fun create(): ReporterBuilder

Extension Functions

asExpect

fun <T, A> A.asExpect(): <ERROR CLASS><T>
fun <T : Any, A> A.asExpect(assertionCreator: <ERROR CLASS><T>.() -> Unit): A

Turns Assert or AssertionPlantNullable into an Expect so that you can use new functionality which is not available on Assert/AssertionPlantNullable.