Package org.jbehave.core.story.domain

Examples of org.jbehave.core.story.domain.ScenarioDrivenStory


    ByteArrayOutputStream byteStream = new ByteArrayOutputStream();
    PrintStream printStream = new PrintStream(byteStream);
   
    PlainTextRenderer renderer = new PlainTextRenderer(printStream);
   
    ScenarioDrivenStory story = new SimpleStory();
        story.specify();
    story.narrateTo(renderer);
   
    String result = byteStream.toString();
   
    ensureThat(result, eq(SimpleStory.expectedDescription()));
  }
View Full Code Here


        this.rootPackageName = rootPackageName;
        this.classLoader = classLoader;
        }   

    public Story story(){
        ScenarioDrivenStory story = new ScenarioDrivenStory(new Narrative(details.role, details.feature, details.benefit)) {
            public void specify() {
                for ( Iterator i = details.scenarios.iterator(); i.hasNext(); ){
                    addScenario(scenario((ScenarioDetails)i.next(), details.name));
                }
            }
View Full Code Here

TOP

Related Classes of org.jbehave.core.story.domain.ScenarioDrivenStory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.