-
public interface TransformSection<Data extends Object>
-
-
Method Summary
Modifier and Type Method Description abstract Unitrun(Function1<TestContext<Data>, Unit> steps)Runs: Optional BeforeTestSection,
Optional InitSection.init,
Optional transform's sections (only if InitSection.init was called before),
MainTestSection's steps,
AfterTestSection. AfterTestSection is invoked even if BeforeTestSection or BaseTestCase's steps failed.
abstract TransformSection<Data>transform(Function1<Data, Unit> actions)Can be invoked after BeforeTestSection and InitSection.init but before MainTestSection. -
-
Method Detail
-
run
abstract Unit run(Function1<TestContext<Data>, Unit> steps)
Runs:
Optional BeforeTestSection,
Optional InitSection.init,
Optional transform's sections (only if InitSection.init was called before),
MainTestSection's steps,
AfterTestSection. AfterTestSection is invoked even if BeforeTestSection or BaseTestCase's steps failed.
- Parameters:
steps- steps to run.
-
transform
abstract TransformSection<Data> transform(Function1<Data, Unit> actions)
Can be invoked after BeforeTestSection and InitSection.init but before MainTestSection. It's possible to add multiple transform blocks.
- Parameters:
actions- actions to run.
-
-
-