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