atrium-domain-builders-jvm / ch.tutteli.atrium.domain.builders.creating / NewFeatureAssertionsBuilder

NewFeatureAssertionsBuilder

object NewFeatureAssertionsBuilder (source)

Delegates inter alia to the implementation of NewFeatureAssertions. In detail, it implements NewFeatureAssertions by delegating to newFeatureAssertions which in turn delegates to the implementation via loadSingleService.

Will be renamed to FeatureAssertionsBuilder with 1.0.0

Properties

meta

val meta: MetaFeatureBuilder

Returns MetaFeatureBuilder which helps to create a MetaFeature.

Functions

extractor

fun <T> extractor(originalAssertionContainer: <ERROR CLASS><T>): FeatureExtractorBuilder.DescriptionStep<T>

Start a feature extraction with the help of the FeatureExtractorBuilder.

f0

fun <T, R> f0(expect: <ERROR CLASS><T>, f: KFunction1<T, R>): <ERROR CLASS><T, R>

f1

fun <T, A1, R> f1(expect: <ERROR CLASS><T>, f: KFunction2<T, A1, R>, a1: A1): <ERROR CLASS><T, R>

f2

fun <T, A1, A2, R> f2(expect: <ERROR CLASS><T>, f: KFunction3<T, A1, A2, R>, a1: A1, a2: A2): <ERROR CLASS><T, R>

f3

fun <T, A1, A2, A3, R> f3(expect: <ERROR CLASS><T>, f: KFunction4<T, A1, A2, A3, R>, a1: A1, a2: A2, a3: A3): <ERROR CLASS><T, R>

f4

fun <T, A1, A2, A3, A4, R> f4(expect: <ERROR CLASS><T>, f: KFunction5<T, A1, A2, A3, A4, R>, a1: A1, a2: A2, a3: A3, a4: A4): <ERROR CLASS><T, R>

f5

fun <T, A1, A2, A3, A4, A5, R> f5(expect: <ERROR CLASS><T>, f: KFunction6<T, A1, A2, A3, A4, A5, R>, a1: A1, a2: A2, a3: A3, a4: A4, a5: A5): <ERROR CLASS><T, R>

genericFeature

fun <T, R> genericFeature(expect: <ERROR CLASS><T>, metaFeature: <ERROR CLASS><R>): <ERROR CLASS><T, R>

genericSubjectBasedFeature

fun <T, R> genericSubjectBasedFeature(expect: <ERROR CLASS><T>, provider: (T) -> <ERROR CLASS><R>): <ERROR CLASS><T, R>

manualFeature

fun <T, R> manualFeature(expect: <ERROR CLASS><T>, description: String, provider: T.() -> R): <ERROR CLASS><T, R>
fun <T, R> manualFeature(expect: <ERROR CLASS><T>, description: <ERROR CLASS>, provider: T.() -> R): <ERROR CLASS><T, R>

property

fun <T, TProperty> property(expect: <ERROR CLASS><T>, property: KProperty1<in T, TProperty>): <ERROR CLASS><T, TProperty>

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.