Package gherkin.formatter.model

Examples of gherkin.formatter.model.Examples$Builder


        FilterFormatter filterFormatter =  new FilterFormatter(mock(Formatter.class), Arrays.asList("@filter"));

        final ArrayList<Tag> originalTags = new ArrayList<Tag>();
        originalTags.add(new Tag("@tag", 0));

        Examples examples1 = new Examples(Collections.EMPTY_LIST, new ArrayList<Tag>(originalTags),
                "keyword1", "name1", "description1", 0, "id1", Collections.EMPTY_LIST);
        Examples examples2 = new Examples(Collections.EMPTY_LIST, new ArrayList<Tag>(originalTags),
                "keyword2", "name2", "description2", 0, "id2", Collections.EMPTY_LIST);

        filterFormatter.examples(examples1);
        filterFormatter.examples(examples2);

        assertEquals("Example tags should not be modified", originalTags, examples1.getTags());
        assertEquals("Example tags should not be modified", originalTags, examples2.getTags());
    }
View Full Code Here


                }
                for (Map hook : (List<Map>) getList(featureElement, "after")) {
                    after(hook);
                }
                for (Map eo : (List<Map>) getList(featureElement, "examples")) {
                    new Examples(comments(eo), tags(eo), keyword(eo), name(eo), description(eo), line(eo), id(eo), examplesTableRows(getList(eo, "rows"))).replay(formatter);
                }
            }
            formatter.eof();
        }
    }
View Full Code Here

TOP

Related Classes of gherkin.formatter.model.Examples$Builder

Copyright © 2018 www.massapicom. 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.