Class Phase

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​(java.lang.String text, java.util.function.Consumer<Scene> lambda)  
  • Method Summary

    Modifier and Type Method Description
    void and​(java.lang.String text, 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

    • Phase

      public Phase​(java.lang.String text, java.util.function.Consumer<Scene> lambda)
  • Method Details

    • lambda

      public java.util.function.Consumer<Scene> lambda()
    • text

      public java.lang.String text()
    • and

      public void and​(java.lang.String text, java.util.function.Consumer<Scene> lambda)
    • ands

      public java.util.List<java.lang.String> ands()