interface TransformationStep<T>
Step to define the transformation which yields the new subject wrapped into a Some if the transformation as such can be carried out; otherwise None.
T
- the type of the current subject.
abstract val description: Translatable
The previously specified description which describes the kind of subject change. |
|
abstract val originalAssertionContainer: Expect<T>
The previously specified assertion container to which the new Expect will delegate assertion checking. |
|
abstract val representation: Any
The previously specified representation of the change. |
abstract fun <R> withTransformation(transformation: (T) -> Option<R>): SubjectChangerBuilder.FailureHandlerOption<T, R>
Defines the new subject, most likely based on the current subject (but does not need to be). |
fun <T> create(originalAssertionContainer: Expect<T>, description: Translatable, representation: Any): SubjectChangerBuilder.TransformationStep<T>
Creates a TransformationStep in the context of the SubjectChangerBuilder. |