Package org.jbehave.core.story.codegen.parser

Examples of org.jbehave.core.story.codegen.parser.TextStoryParser


       
        ByteArrayOutputStream byteStream = new ByteArrayOutputStream();
        PrintStream printStream = new PrintStream(byteStream);
       
        StoryPrinter printer = new StoryPrinter(
                new StoryLoader(new TextStoryParser(), Thread.currentThread().getContextClassLoader()),
                new PlainTextRenderer(printStream));
        printer.print(SimpleStory.class.getName());
        String result = byteStream.toString();
       
        ensureThat(result, eq(SimpleStory.expectedDescription()));
View Full Code Here


    public static void main(String[] args) {
        File directory = new File(args[0]);
       
        try {
            StoryToDirectoryPrinter printer = new StoryToDirectoryPrinter(
                    new StoryLoader(new TextStoryParser(), StoryPrinter.class.getClassLoader()),
                    directory);
                   
            for (int i = 1; i < args.length; i++) {
                printer.print(args[i]);
            }          
View Full Code Here

    }

    public static void main(String[] args) {       
        try {
            StoryPrinter printer = new StoryPrinter(
                    new StoryLoader(new TextStoryParser(), StoryPrinter.class.getClassLoader()),
                    new PlainTextRenderer(System.out));
            for (int i = 0; i < args.length; i++) {
                printer.print(args[i]);
            }          
        } catch (Exception e) {
View Full Code Here

TOP

Related Classes of org.jbehave.core.story.codegen.parser.TextStoryParser

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.