class ReporterBuilder
A builder to create an IReporter consisting of an ITranslator which is used by an IObjectFormatter which then is used by an IAssertionFormatter which in turn is used by the created IReporter.
class AssertionFormatterBuilder
Provides options to create an IAssertionFormatter. |
|
class ObjectFormatterBuilder
Provides options to create an IObjectFormatter. |
ReporterBuilder(assertionFormatter: IAssertionFormatter)
A builder to create an IReporter consisting of an ITranslator which is used by an IObjectFormatter which then is used by an IAssertionFormatter which in turn is used by the created IReporter. |
fun buildCustomReporter(factory: (IAssertionFormatter) -> IReporter): IReporter
|
|
fun buildOnlyFailureReporter(): IReporter
|
fun withDetailedObjectFormatter(): AssertionFormatterBuilder
Shortcut for withoutTranslations.withDetailedObjectFormatter -- uses UsingDefaultTranslator as ITranslator and AtriumFactory.newDetailedObjectFormatter as IObjectFormatter. |
|
fun withTranslations(translationSupplier: ITranslationSupplier, locale: Locale, vararg fallbackLocales: Locale): ObjectFormatterBuilder
Uses AtriumFactory.newTranslator with the given translationSupplier as ITranslator, uses locale as primary Locale and the optional fallbackLocales as fallback Locales. |
|
fun withTranslator(translator: ITranslator): ObjectFormatterBuilder
Uses the given translator as ITranslator. |
|
fun withoutTranslations(primaryLocale: Locale = Locale.getDefault()): ObjectFormatterBuilder
Uses UsingDefaultTranslator as ITranslator (which does not translate but uses the ITranslatable's getDefault) and the given primaryLocale which falls back to Locale.getDefault if not given. |