doc / ch.tutteli.atrium.domain.builders / ExpectImpl / changeSubject

changeSubject

inline fun <T> changeSubject(originalExpect: Expect<T>): SubjectChangerBuilder.KindStep<T>
Deprecated: Use _logic.changeSubject, will be removed with 1.0.0

Returns SubjectChangerBuilder - helping you to change the subject of the assertion. In detail, its an inline property which returns SubjectChangerBuilder which inter alia delegates to the implementation of SubjectChanger.

In case you want to extract a feature (e.g. get the first element of a List) instead of changing the subject into another representation (e.g. down-cast Person to Student) then you should use feature.extractor instead.

inline fun <T> changeSubject(originalAssertionContainer: SubjectProvider<T>): SubjectChangerBuilder.DeprecatedKindStep<T>
Deprecated: Do no longer use Assert, use Expect instead - this method was introduced in 0.9.0 to ease the migration from Assert to Expect; will be removed with 1.0.0