Package org.raml.parser.visitor

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

Related Classes of org.raml.parser.visitor.YamlDocumentSuggester

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.