Class StoryMerger

java.lang.Object
net.tangly.bdd.engine.StoryMerger

public class StoryMerger
extends java.lang.Object
Merges a set of JSON files produced through the execution of BDD JUnit tests. A feature is part of exactly one package. Therefore, the package name is the key to the feature. A story is part of exactly one class. Therefore, the class name is the key for the story. A scenario is part of exactly one method.
  • Constructor Summary

    Constructors 
    Constructor Description
    StoryMerger()  
  • Method Summary

    Modifier and Type Method Description
    org.json.JSONArray features()  
    void merge​(java.nio.file.Path directory)  
    void merge​(org.json.JSONObject feature)  
    void write​(java.nio.file.Path path)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • merge

      public void merge​(java.nio.file.Path directory) throws java.io.IOException
      Throws:
      java.io.IOException
    • write

      public void write​(java.nio.file.Path path)
    • merge

      public void merge​(org.json.JSONObject feature)
    • features

      public org.json.JSONArray features()