Examples of PlainTextRenderer


Examples of com.baulsupp.kolja.log.viewer.renderer.PlainTextRenderer

    HighlightList<Line> highlight = new HighlightList<Line>();
    return highlight;
  }

  public Renderer<Line> getLineRenderer() {
    return new PlainTextRenderer();
  }
View Full Code Here

Examples of com.baulsupp.kolja.log.viewer.renderer.PlainTextRenderer

  public Renderer<Line> getLineRenderer() {
    return new PlainTextRenderer();
  }

  public Renderer<Line> getRequestRenderer() {
    return new PlainTextRenderer();
  }
View Full Code Here

Examples of com.baulsupp.kolja.log.viewer.renderer.PlainTextRenderer

    HighlightList<Line> highlight = new HighlightList<Line>();
    return highlight;
  }

  public Renderer<Line> getRenderer() {
    return new PlainTextRenderer();
  }
View Full Code Here

Examples of org.jbehave.core.story.renderer.PlainTextRenderer

        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

Examples of org.jbehave.core.story.renderer.PlainTextRenderer

        File file = new File(directory, simpleStoryName + ".story");
        if (!file.exists()) {
            file.createNewFile();
        }
        OutputStream outputStream = new FileOutputStream(file);
        new StoryPrinter(loader, new PlainTextRenderer(new PrintStream(outputStream))).print(storyClass);
       
        outputStream.close();
    }
View Full Code Here

Examples of org.jbehave.core.story.renderer.PlainTextRenderer

    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) {
            e.printStackTrace();
View Full Code Here

Examples of org.jbehave.core.story.renderer.PlainTextRenderer

    public void execute() throws MojoExecutionException, MojoFailureException {
        try {
            getLog().debug("Printing story "+ storyPath);
            StoryLoader loader = new StoryLoader(storyParser, new BehavioursClassLoader(classpathElements));
            StoryPrinter storyPrinter = new StoryPrinter(loader, new PlainTextRenderer(System.out));           
            storyPrinter.print(storyPath, storyPackage);
        } catch (Exception e) {
            throw new MojoExecutionException("Failed to print story "+storyPath+" with package "+storyPackage, e);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.