doc / ch.tutteli.atrium.domain.builders.creating / AnyAssertionsBuilder

AnyAssertionsBuilder

object AnyAssertionsBuilder : AnyAssertions
Deprecated: Use _logic from ch.tutteli.atrium.logic instead; will be removed with 1.0.0

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: Expect<T>, subType: KClass<TSub>): ChangedSubjectPostStep<T, TSub>

isNotNull

fun <T : Any> isNotNull(plant: AssertionPlantNullable<T?>, type: KClass<T>, assertionCreator: AssertionPlant<T>.() -> Unit): Assertion

isNotNullBut

fun <T : Any> isNotNullBut(plant: AssertionPlantNullable<T?>, type: KClass<T>, expected: T): Assertion

isNotSame

fun <T> isNotSame(subjectProvider: SubjectProvider<T>, expected: T): Assertion

isNullable

fun <T : Any> isNullable(plant: AssertionPlantNullable<T?>, type: KClass<T>, expectedOrNull: T?): Assertion

isNullIfNullGivenElse

fun <T : Any> isNullIfNullGivenElse(plant: AssertionPlantNullable<T?>, type: KClass<T>, assertionCreatorOrNull: (AssertionPlant<T>.() -> Unit)?): Assertion

isSame

fun <T> isSame(subjectProvider: SubjectProvider<T>, expected: T): Assertion

notToBe

fun <T> notToBe(subjectProvider: SubjectProvider<T>, expected: T): Assertion

toBe

fun <T> toBe(subjectProvider: SubjectProvider<T>, expected: T): Assertion

toBeNull

fun <T> toBeNull(subjectProvider: SubjectProvider<T>): Assertion

toBeNullIfNullGivenElse

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

Inherited Functions

notToBeNull

open fun <T : Any> notToBeNull(expect: Expect<T?>, subType: KClass<T>): ChangedSubjectPostStep<T?, T>

Convenience method for nullable-types which delegates to isA.