SELF
- the type of the subclasspublic class StageBase<SELF extends StageBase<?>>
extends java.lang.Object
self()
method
to create fluent interfaces.
Direct subclasses should provide introduction words (see IntroWord
).
Typically one derives from one of the language-specific step definition classes, which already provide a handful of useful introduction words.
Constructor and Description |
---|
StageBase() |
Modifier and Type | Method and Description |
---|---|
SELF |
$(java.lang.String description,
StepFunction<? super SELF> function)
A step method for creating ad-hoc steps using lambdas.
|
SELF |
self() |
public SELF $(java.lang.String description, @Hidden StepFunction<? super SELF> function) throws java.lang.Exception
given().$( "Two negative arguments", stage -> {
stage.given().argument( -5 )
.and().argument( -6 );
});
description
- the description of the stepfunction
- the implementation of the step in form of a function where the parameter is the stage the step is executed injava.lang.Exception