doc / ch.tutteli.atrium.api.fluent.en_GB / its

its

fun <T, R> Expect<T>.its(extractor: T.() -> R): FeatureExpect<T, R> (source)

Extracts a feature out of the current subject of this expectation with the help of the given extractor, creates a new Expect for it and returns it so that subsequent calls are based on the feature.

Return
The newly created Expect for the extracted feature.

Since
0.16.0

fun <T, R> Expect<T>.its(extractor: T.() -> R, assertionCreator: Expect<R>.() -> Unit): Expect<T> (source)

Extracts a feature out of the current subject of this expectation with the help of the given extractor, creates a new Expect for it, applies an assertion group based on the given assertionCreator for the feature and returns the initial Expect with the current subject.

Return
an Expect for the subject of this expectation.

Since
0.16.0