doc / ch.tutteli.atrium.domain.builders.creating / NewFeatureAssertionsBuilder

NewFeatureAssertionsBuilder

object NewFeatureAssertionsBuilder : NewFeatureAssertions
Deprecated: Use _logic from ch.tutteli.atrium.logic instead; will be removed with 1.0.0

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: Expect<T>): FeatureExtractorBuilder.DescriptionStep<T>

Start a feature extraction with the help of the FeatureExtractorBuilder.

f0

fun <T, R> f0(expect: Expect<T>, f: KFunction1<T, R>): ExtractedFeaturePostStep<T, R>

f1

fun <T, A1, R> f1(expect: Expect<T>, f: KFunction2<T, A1, R>, a1: A1): ExtractedFeaturePostStep<T, R>

f2

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

f3

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

f4

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

f5

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

genericFeature

fun <T, R> genericFeature(expect: Expect<T>, metaFeature: MetaFeature<R>): ExtractedFeaturePostStep<T, R>

Extracts a feature from expect based on the given MetaFeature and creates a ExtractedFeaturePostStep based on it.

genericSubjectBasedFeature

fun <T, R> genericSubjectBasedFeature(expect: Expect<T>, provider: (T) -> MetaFeature<R>): ExtractedFeaturePostStep<T, R>

manualFeature

fun <T, R> manualFeature(expect: Expect<T>, description: String, provider: T.() -> R): ExtractedFeaturePostStep<T, R>
fun <T, R> manualFeature(expect: Expect<T>, description: Translatable, provider: T.() -> R): ExtractedFeaturePostStep<T, R>

property

fun <T, TProperty> property(expect: Expect<T>, property: KProperty1<in T, TProperty>): ExtractedFeaturePostStep<T, TProperty>