Examples of YamlDocumentSuggester


Examples of org.raml.parser.visitor.YamlDocumentSuggester

        validateRamlWithComments(topSection, bottomSection);
    }

    private void validateRamlWithComments(String topSection, String bottomSection)
    {
        YamlDocumentSuggester yamlDocumentSuggester = new YamlDocumentSuggester(new RamlDocumentBuilder());
        List<Suggestion> suggest = yamlDocumentSuggester.suggest(topSection, "  ", bottomSection);
        assertThat(suggest, notNullValue());
        assertThat(suggest.size(), is(RESOURCE_SUGGEST_COUNT));
        assertThat(suggest.contains(new KeySuggestion("get")), is(true));
        assertThat(suggest.contains(new KeySuggestion("post")), is(true));
        assertThat(suggest.get(0).getIndentation(), is(-1));
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.