Examples of DocString


Examples of gherkin.formatter.model.DocString

        stash.reset();
    }

    @Override
    public void docString(String contentType, String content, Integer line) {
        currentBuilder.docString(new DocString(contentType, content, line));
    }
View Full Code Here

Examples of gherkin.formatter.model.DocString

    private Scenario scenario(String scenarioName) {
      return new Scenario(Collections.<Comment>emptyList(), Collections.<Tag>emptyList(), "", scenarioName, "", 13, "");
    }

    private Step step(String keyword, String stepName) {
        return new Step(Collections.<Comment>emptyList(), keyword, stepName, 14, null, new DocString("", "", 52));
    }
View Full Code Here

Examples of gherkin.formatter.model.DocString

        List<DataTableRow> rows = null;
        if (o.containsKey("rows")) {
            rows = dataTableRows(getList(o, "rows"));
        }

        DocString docString = null;
        if (o.containsKey("doc_string")) {
            Map ds = (Map) o.get("doc_string");
            docString = new DocString(getString(ds, "content_type"), getString(ds, "value"), getInt(ds, "line"));
        }

        Step step = new Step(comments(o), keyword(o), name(o), line(o), rows, docString);
        step.replay(formatter);
View Full Code Here

Examples of net.masterthought.cucumber.json.DocString

                                                    "</div>"));
    }

    @Test
    public void shouldEscapeForHtml() throws NoSuchFieldException, IllegalAccessException {
        DocString ds = new DocString();
        Field field = DocString.class.getDeclaredField("value");
        field.setAccessible(true);
        field.set(ds, "<a><b>cat</b></a>");
        assertThat("&lt;a&gt;&lt;b&gt;cat&lt;/b&gt;&lt;/a&gt;", is(ds.getEscapedValue()));
    }
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.