@Test public void provides_access_to_pickles_which_are_compiled_from_the_ast() { List<Envelope> envelopes = Gherkin.fromPaths(singletonList("testdata/good/scenario_outline.feature"), false, false, true, idGenerator).collect(Collectors.toList()); Pickle pickle = envelopes.get(0).getPickle(); Pickle.PickleStep step = pickle.getSteps(0); assertEquals("the minimalism", step.getText()); }
public static Stream<Envelope> fromPaths(List<String> paths, boolean includeSource, boolean includeAst, boolean includePickles, IdGenerator idGenerator) { return new Gherkin(paths, null, includeSource, includeAst, includePickles, idGenerator).messages(); }
Gherkin { public static Stream<Envelope> fromPaths(List<String> paths, boolean includeSource, boolean includeAst, boolean includePickles, IdGenerator idGenerator) { return new Gherkin(paths, null, includeSource, includeAst, includePickles, idGenerator).messages(); } }
Gherkin { public static Stream<Envelope> fromPaths(List<String> paths, boolean includeSource, boolean includeAst, boolean includePickles, IdGenerator idGenerator) { return new Gherkin(paths, null, includeSource, includeAst, includePickles, idGenerator).messages(); } private  Gherkin(List<String> paths, List<Envelope> envelopes, boolean includeSource, boolean includeAst, boolean includePickles, IdGenerator idGenerator); }
Gherkin { public static Stream<Envelope> fromPaths(List<String> paths, boolean includeSource, boolean includeAst, boolean includePickles, IdGenerator idGenerator) { return new Gherkin(paths, null, includeSource, includeAst, includePickles, idGenerator).messages(); } private  Gherkin(List<String> paths, List<Envelope> envelopes, boolean includeSource, boolean includeAst, boolean includePickles, IdGenerator idGenerator); static Stream<Envelope> fromPaths(List<String> paths, boolean includeSource, boolean includeAst, boolean includePickles, IdGenerator idGenerator); static Stream<Envelope> fromSources(List<Envelope> envelopes, boolean includeSource, boolean includeAst, boolean includePickles, IdGenerator idGenerator); static Stream<Envelope> fromStream(InputStream in); static Envelope makeSourceEnvelope(String data, String uri); Stream<Envelope> messages(); }
Gherkin { public static Stream<Envelope> fromPaths(List<String> paths, boolean includeSource, boolean includeAst, boolean includePickles, IdGenerator idGenerator) { return new Gherkin(paths, null, includeSource, includeAst, includePickles, idGenerator).messages(); } private  Gherkin(List<String> paths, List<Envelope> envelopes, boolean includeSource, boolean includeAst, boolean includePickles, IdGenerator idGenerator); static Stream<Envelope> fromPaths(List<String> paths, boolean includeSource, boolean includeAst, boolean includePickles, IdGenerator idGenerator); static Stream<Envelope> fromSources(List<Envelope> envelopes, boolean includeSource, boolean includeAst, boolean includePickles, IdGenerator idGenerator); static Stream<Envelope> fromStream(InputStream in); static Envelope makeSourceEnvelope(String data, String uri); Stream<Envelope> messages();  }