doc / ch.tutteli.atrium.domain.builders / AssertImpl

AssertImpl

object AssertImpl : AssertImplCommon

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: AssertionBuilder

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: CoreFactory

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: BaseAssertionPlant<T, *>, subjectProvider: () -> R): AssertionPlant<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: Expect<T>, transformation: (T) -> R): Expect<R>

changeToNullableSubject

open fun <T, R> changeToNullableSubject(originalPlant: BaseAssertionPlant<T, *>, subjectProvider: () -> R): AssertionPlantNullable<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: Expect<T>, transformation: (T) -> R): Expect<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.