atrium-domain-builders-jvm / ch.tutteli.atrium.domain.builders / AssertImpl

AssertImpl

object AssertImpl : AssertImplCommon (source)
Deprecated: Switch from AssertImpl to ExpectImpl (as well as from Assert to Expect); will be removed with 1.0.0

Bundles different domain objects which are defined by the module atrium-domain-api to give users of Atrium a fluent API as well.

Properties

any

val any: AnyAssertionsBuilder

Returns AnyAssertionsBuilder which inter alia delegates to the implementation of AnyAssertions.

builder

val builder: <ERROR CLASS>

Returns AssertionBuilder - helping you creating Assertions. In detail, its an inline property which returns ch.tutteli.atrium.assertions.builders.assertionBuilder which in turn returns an implementation of AssertionBuilder.

charSequence

val charSequence: CharSequenceAssertionsBuilder

Returns CharSequenceAssertionsBuilder which inter alia delegates to the implementation of CharSequenceAssertions.

collection

val collection: CollectionAssertionsBuilder

Returns CollectionAssertionsBuilder which inter alia delegates to the implementation of CollectionAssertions.

collector

val collector: AssertionCollectorBuilder

Returns AssertionCollectorBuilder - helping you to collect feature assertions. which inter alia delegates to the implementation of AssertionCollector.

comparable

val comparable: ComparableAssertionsBuilder

Returns ComparableAssertionsBuilder which inter alia delegates to the implementation of ComparableAssertions.

coreFactory

val coreFactory: <ERROR CLASS>

Returns the implementation of CoreFactory. In detail, its an inline property which returns ch.tutteli.atrium.core.coreFactory which in turn delegates to the implementation via loadSingleService.

feature

val feature: FeatureAssertionsBuilder

Returns FeatureAssertionsBuilder which inter alia delegates to the implementation of FeatureAssertions.

floatingPoint

val floatingPoint: FloatingPointAssertionsBuilder

Returns FloatingPointAssertionsBuilder - Assertions applicable to Float, Double and maybe more - which inter alia delegates to the implementation of FloatingPointAssertions.

iterable

val iterable: IterableAssertionsBuilder

Returns IterableAssertionsBuilder. which inter alia delegates to the implementation of IterableAssertions.

list

val list: ListAssertionsBuilder

Returns ListAssertionsBuilder which inter alia delegates to the implementation of ListAssertions.

map

val map: MapAssertionsBuilder

Returns MapAssertionsBuilder which inter alia delegates to the implementation of MapAssertions.

pair

val pair: PairAssertionsBuilder

Returns PairAssertionsBuilder which inter alia delegates to the implementation of PairAssertions.

throwable

val throwable: ThrowableAssertionsBuilder

Returns ThrowableAssertionsBuilder which inter alia delegates to the implementation of ThrowableAssertions.

Inherited Functions

changeSubject

open fun <T, R : Any> changeSubject(originalPlant: <ERROR CLASS><T, out <ERROR CLASS>>, subjectProvider: () -> R): <ERROR CLASS><R>

Creates a new AssertionPlant based on the given subjectProvider whereas the AssertionPlant delegates assertion checking to the given originalPlant.

open fun <T, R : Any> changeSubject(originalAssertionCreator: <ERROR CLASS><T>, transformation: (T) -> R): <ERROR CLASS><R>

changeToNullableSubject

open fun <T, R> changeToNullableSubject(originalPlant: <ERROR CLASS><T, out <ERROR CLASS>>, subjectProvider: () -> R): <ERROR CLASS><R>

Creates a new AssertionPlantNullable based on the given subjectProvider whereas the AssertionPlant delegates assertion checking to the given originalPlant.

open fun <T, R : Any> changeToNullableSubject(originalAssertionCreator: <ERROR CLASS><T>, transformation: (T) -> R): <ERROR CLASS><R>

Extension Properties

bigDecimal

val AssertImpl.bigDecimal: BigDecimalAssertionsBuilder

Bundles different domain objects which are defined by the module atrium-domain-api to give users of Atrium a fluent API for the domain as well.

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.