atrium-domain-builders-jvm / ch.tutteli.atrium.domain.builders.creating / AnyAssertionsBuilder

AnyAssertionsBuilder

object AnyAssertionsBuilder (source)

Delegates inter alia to the implementation of AnyAssertions. In detail, it implements AnyAssertions by delegating to anyAssertions which in turn delegates to the implementation via loadSingleService.

Properties

typeTransformation

val typeTransformation: AnyTypeTransformationAssertionsBuilder

Returns AnyTypeTransformationAssertionsBuilder which inter alia delegates to the implementation of AnyTypeTransformationAssertions.

Functions

isA

fun <T, TSub : Any> isA(expect: <ERROR CLASS><T>, subType: KClass<TSub>): <ERROR CLASS>

isNotNull

fun <T : Any> isNotNull(plant: <ERROR CLASS><T?>, type: KClass<T>, assertionCreator: <ERROR CLASS><T>.() -> Unit): <ERROR CLASS>

isNotNullBut

fun <T : Any> isNotNullBut(plant: <ERROR CLASS><T?>, type: KClass<T>, expected: T): <ERROR CLASS>

isNotSame

fun <T> isNotSame(subjectProvider: <ERROR CLASS><T>, expected: T): <ERROR CLASS>

isNullable

fun <T : Any> isNullable(plant: <ERROR CLASS><T?>, type: KClass<T>, expectedOrNull: T?): <ERROR CLASS>

isNullIfNullGivenElse

fun <T : Any> isNullIfNullGivenElse(plant: <ERROR CLASS><T?>, type: KClass<T>, assertionCreatorOrNull: (<ERROR CLASS><T>.() -> Unit)?): <ERROR CLASS>

isSame

fun <T> isSame(subjectProvider: <ERROR CLASS><T>, expected: T): <ERROR CLASS>

notToBe

fun <T> notToBe(subjectProvider: <ERROR CLASS><T>, expected: T): <ERROR CLASS>

toBe

fun <T> toBe(subjectProvider: <ERROR CLASS><T>, expected: T): <ERROR CLASS>

toBeNull

fun <T> toBeNull(subjectProvider: <ERROR CLASS><T>): <ERROR CLASS>

toBeNullIfNullGivenElse

fun <T : Any> toBeNullIfNullGivenElse(expect: <ERROR CLASS><T?>, type: KClass<T>, assertionCreatorOrNull: (<ERROR CLASS><T>.() -> Unit)?): <ERROR CLASS>

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.