java.lang.Object
net.tangly.bdd.Phase
public class Phase
extends java.lang.Object
Represents a phase in a scene such as a given, when or then phase for the acceptance test modeled within the scene. Optionally, a phase holds
additional "and" conditions for more complex scenarios.
Constructor Summary
Constructors
Constructor
Description
Phase (@NotNull java.lang.String text,
@NotNull java.util.function.Consumer<Scene > lambda)
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method
Description
void
and (java.lang.String text,
@NotNull java.util.function.Consumer<Scene > lambda)
java.util.List<java.lang.String>
ands ()
java.util.function.Consumer<Scene >
lambda ()
java.lang.String
text ()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Details
public Phase (
@NotNull
@NotNull java.lang.String text,
@NotNull
@NotNull java.util.function.Consumer<Scene > lambda)
Method Details
public java.util.function.Consumer<Scene > lambda ()
public java.lang.String text ()
public void and (
java.lang.String text,
@NotNull
@NotNull java.util.function.Consumer<Scene > lambda)
public java.util.List<java.lang.String> ands ()