BaseTransformationExecutionStep

Step which has all necessary information to perform a subject transformation (subject change/feature extraction etc.) and now allows to decide how it should be done, especially regarding potential sub-assertions which should be applied to the new resulting subject.

Parameters

SubjectT

The parameter type of the current Expect, of its subject respectively.

SubjectAfterTransformationT

The parameter type of the new Expect, of its subject respectively.

Inheritors

Functions

Link copied to clipboard
override fun collect(assertionCreator: Expect<SubjectAfterTransformationT>.() -> Unit): Assertion

Finishes the transformation process by collecting the assertions the given assertionCreator creates for the subject of type SubjectAfterTransformationT resulting from the transformation and returns the assertions as a single Assertion.

Link copied to clipboard
override fun collectAndAppend(assertionCreator: Expect<SubjectAfterTransformationT>.() -> Unit): Expect<SubjectT>

Finishes the transformation process by appending the Assertion which is returned when calling collect with the given assertionCreator.

Link copied to clipboard

Finishes the transformation process by appending the Assertion which is returned when calling TransformationExecutionStep.collectAndAppend with _logicAppend and the given assertionCreator.

Link copied to clipboard

Finishes the transformation process by simply performing the transformation as such.

Link copied to clipboard

Finishes the transformation process by carrying the transformation out and appending the assertions the given assertionCreator creates for the subject of type SubjectAfterTransformationT resulting from the transformation as single assertion.