@Test public void shouldRenderScenarioExamples() { List<Feature> features = FeatureParser.parse(outline); assertThat(features).hasSize(1); CukedoctorScenarioRenderer scenarioRenderer = new CukedoctorScenarioRenderer(); String resultDoc = scenarioRenderer.renderScenarioExamples(features.get(0).getElements().get(0)); assertThat(resultDoc).isEqualTo("" + newLine() + ".examples1" + newLine() + "[cols=\"1*\", options=\"header\"]" + newLine() + "|===" + newLine() + "|status" + newLine() + "|passes" + newLine() + "|fails" + newLine() + "|===" + newLine() + "" + newLine() + ".examples2" + newLine() + "[cols=\"1*\", options=\"header\"]" + newLine() + "|===" + newLine() + "|status" + newLine() + "|passes" + newLine() + "|===" + newLine() + "" + newLine()); }
String renderScenarioExamples(Scenario scenario) { return examplesRenderer.renderScenarioExamples(scenario, docBuilder.createNestedBuilder()); }
CukedoctorScenarioRenderer extends AbstractBaseRenderer implements ScenarioRenderer { String renderScenarioExamples(Scenario scenario) { return examplesRenderer.renderScenarioExamples(scenario, docBuilder.createNestedBuilder()); } }
CukedoctorScenarioRenderer extends AbstractBaseRenderer implements ScenarioRenderer { String renderScenarioExamples(Scenario scenario) { return examplesRenderer.renderScenarioExamples(scenario, docBuilder.createNestedBuilder()); } CukedoctorScenarioRenderer();  CukedoctorScenarioRenderer(CukedoctorConfig cukedoctorConfig); }
CukedoctorScenarioRenderer extends AbstractBaseRenderer implements ScenarioRenderer { String renderScenarioExamples(Scenario scenario) { return examplesRenderer.renderScenarioExamples(scenario, docBuilder.createNestedBuilder()); } CukedoctorScenarioRenderer();  CukedoctorScenarioRenderer(CukedoctorConfig cukedoctorConfig); @Override String renderScenario(Scenario scenario, Feature feature); }
CukedoctorScenarioRenderer extends AbstractBaseRenderer implements ScenarioRenderer { String renderScenarioExamples(Scenario scenario) { return examplesRenderer.renderScenarioExamples(scenario, docBuilder.createNestedBuilder()); } CukedoctorScenarioRenderer();  CukedoctorScenarioRenderer(CukedoctorConfig cukedoctorConfig); @Override String renderScenario(Scenario scenario, Feature feature);  }