doc / ch.tutteli.atrium.logic / AnyAssertions

AnyAssertions

interface AnyAssertions (source)

Collection of assertion functions and builders which are applicable to any type (sometimes Any? sometimes Any).

Functions

isA

abstract fun <T, TSub : Any> isA(container: AssertionContainer<T>, subType: KClass<TSub>): ChangedSubjectPostStep<T, TSub>

isNotIn

abstract fun <T> isNotIn(container: AssertionContainer<T>, expected: Iterable<T>): Assertion

isNotSameAs

abstract fun <T> isNotSameAs(container: AssertionContainer<T>, expected: T): Assertion

isSameAs

abstract fun <T> isSameAs(container: AssertionContainer<T>, expected: T): Assertion

notToBe

abstract fun <T> notToBe(container: AssertionContainer<T>, expected: T): Assertion

notToBeNull

abstract fun <T : Any> notToBeNull(container: AssertionContainer<T?>, subType: KClass<T>): ChangedSubjectPostStep<T?, T>

toBe

abstract fun <T> toBe(container: AssertionContainer<T>, expected: T): Assertion

toBeNull

abstract fun <T> toBeNull(container: AssertionContainer<T>): Assertion

toBeNullIfNullGivenElse

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