interface SubjectChangerBuilder (source)
Defines the contract for sophisticated change subject processes.
interface
Step where one has to decide the kind of subject change. |
|
interface DescriptionRepresentationStep<T>
Step which allows to specify the description and representation of the change. |
|
interface FailureHandlerOption<T, R>
Optional step which allows to specify a custom SubjectChanger.FailureHandler. |
|
interface FinalStep<T, R>
Final step in the change-subject-process, creates a ChangedSubjectPostStep ased on the previously specified options. |
|
interface KindStep<T>
Step where one has to decide the kind of subject change. |
|
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. |
fun <T> create(expect: <ERROR CLASS><T>): SubjectChangerBuilder.KindStep<T>
Entry point to use the SubjectChangerBuilder. fun <T> |
fun <T, A> A.asExpect(): <ERROR CLASS><T>fun <T : Any, A> A.asExpect(assertionCreator: <ERROR CLASS><T>.() -> Unit): A
Turns Assert or AssertionPlantNullable into an Expect so that you can use new functionality which is not available on Assert/AssertionPlantNullable. |