interface AssertionPairFormatterOption (source)
Provides options to create an AssertionPairFormatter.
abstract val options: AssertionFormatterChosenOptions
The so far chosen options which are relevant to create AssertionFormatters. |
abstract fun withTextAssertionPairFormatter(factory: (<ERROR CLASS>, <ERROR CLASS>) -> <ERROR CLASS>): TextAssertionFormatterOption
Uses the given factory to build a custom AssertionPairFormatter. |
|
open fun withTextNextLineAssertionPairFormatter(): TextAssertionFormatterOption
Uses CoreFactory.newTextNextLineAssertionPairFormatter as AssertionPairFormatter. |
|
open fun withTextSameLineAssertionPairFormatter(): TextAssertionFormatterOption
Uses CoreFactory.newTextSameLineAssertionPairFormatter as AssertionPairFormatter. |
fun create(assertionFormatterFacade: <ERROR CLASS>, objectFormatter: <ERROR CLASS>, translator: <ERROR CLASS>): AssertionPairFormatterOptionfun create(options: AssertionFormatterChosenOptions): AssertionPairFormatterOption |
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. |