@Test public void shouldAppendOnlyCompleteLinesAndFlushBetween() throws IOException { StringBuilder featureBuilder = new StringBuilder(); featureBuilder.append("Feature: PrettyFormatter\n"); featureBuilder.append("Scenario: Formmat beautifully\n"); featureBuilder.append("When I have this table:\n"); featureBuilder.append("\t|name|value|\n"); featureBuilder.append("\t|a|b|\n"); featureBuilder.append("Then should formatt beautifully.\n"); String feature = featureBuilder.toString(); Formatter formatter = new PrettyFormatter(new CheckingAppendable(), false, false); new Parser(formatter).parse(feature, "", 0); formatter.close(); }
@Override public void close() { out.close(); }
PrettyFormatter implements Reporter, Formatter { @Override public void close() { out.close(); } }
PrettyFormatter implements Reporter, Formatter { @Override public void close() { out.close(); } PrettyFormatter(Appendable out, boolean monochrome, boolean executing); }
PrettyFormatter implements Reporter, Formatter { @Override public void close() { out.close(); } PrettyFormatter(Appendable out, boolean monochrome, boolean executing); void setMonochrome(boolean monochrome); @Override void uri(String uri); @Override void feature(Feature feature); @Override void background(Background background); @Override void scenario(Scenario scenario); @Override void scenarioOutline(ScenarioOutline scenarioOutline); @Override void startOfScenarioLifeCycle(Scenario scenario); @Override void endOfScenarioLifeCycle(Scenario scenario); @Override void examples(Examples examples); @Override void step(Step step); @Override void match(Match match); @Override void embedding(String mimeType, byte[] data); @Override void write(String text); @Override void result(Result result); @Override void before(Match match, Result result); @Override void after(Match match, Result result); void table(List<? extends Row> rows); void row(List<CellResult> cellResults); void nextRow(); @Override void syntaxError(String state, String event, List<String> legalEvents, String uri, Integer line); @Override void done(); @Override void close(); void docString(DocString docString); void eof(); }
PrettyFormatter implements Reporter, Formatter { @Override public void close() { out.close(); } PrettyFormatter(Appendable out, boolean monochrome, boolean executing); void setMonochrome(boolean monochrome); @Override void uri(String uri); @Override void feature(Feature feature); @Override void background(Background background); @Override void scenario(Scenario scenario); @Override void scenarioOutline(ScenarioOutline scenarioOutline); @Override void startOfScenarioLifeCycle(Scenario scenario); @Override void endOfScenarioLifeCycle(Scenario scenario); @Override void examples(Examples examples); @Override void step(Step step); @Override void match(Match match); @Override void embedding(String mimeType, byte[] data); @Override void write(String text); @Override void result(Result result); @Override void before(Match match, Result result); @Override void after(Match match, Result result); void table(List<? extends Row> rows); void row(List<CellResult> cellResults); void nextRow(); @Override void syntaxError(String state, String event, List<String> legalEvents, String uri, Integer line); @Override void done(); @Override void close(); void docString(DocString docString); void eof();  }