atrium-domain-builders-jvm / ch.tutteli.atrium.domain.builders.utils / VarArgHelper

VarArgHelper

interface VarArgHelper<out T> (source)

Represents a parameter object used to express the arguments T, vararg T and provides utility functions to transform them.

Properties

expected

abstract val expected: T

The first argument in the argument list T, vararg T

mapArguments

open val mapArguments: ArgumentMapperBuilder<T>

Creates an ArgumentMapperBuilder which allows to map expected and otherExpected.

otherExpected

abstract val otherExpected: Array<out T>

The second argument in the argument list T, vararg T

Functions

toList

open fun toList(): List<T>

Returns the arguments as List.

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.