interface AnyAssertions
Defines the minimum set of assertion functions and builders applicable to Any type, which an implementation of the domain of Atrium has to provide.
abstract fun <T, TSub : Any> isA(expect: Expect<T>, subType: KClass<TSub>): ChangedSubjectPostStep<T, TSub> |
|
abstract fun <T : Any> |
|
abstract fun <T : Any> |
|
abstract fun <T> isNotSame(subjectProvider: SubjectProvider<T>, expected: T): Assertion |
|
abstract fun <T : Any> |
|
abstract fun <T : Any> |
|
abstract fun <T> isSame(subjectProvider: SubjectProvider<T>, expected: T): Assertion |
|
abstract fun <T> notToBe(subjectProvider: SubjectProvider<T>, expected: T): Assertion |
|
open fun <T : Any> notToBeNull(expect: Expect<T?>, subType: KClass<T>): ChangedSubjectPostStep<T?, T>
Convenience method for nullable-types which delegates to isA. |
|
abstract fun <T> toBe(subjectProvider: SubjectProvider<T>, expected: T): Assertion |
|
abstract fun <T> toBeNull(subjectProvider: SubjectProvider<T>): Assertion |
|
abstract fun <T : Any> toBeNullIfNullGivenElse(expect: Expect<T?>, type: KClass<T>, assertionCreatorOrNull: (Expect<T>.() -> Unit)?): Assertion |
object AnyAssertionsBuilder : AnyAssertions
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. |