Package sagan.guides

Examples of sagan.guides.UnderstandingDoc


     * Find and eagerly populate the {@link UnderstandingDoc} for the given subject.
     *
     * @throws ResourceNotFoundException if no content exists for the subject.
     */
    public UnderstandingDoc find(String subject) {
        UnderstandingDoc doc = new UnderstandingDoc(subject, this);
        populate(doc);
        return doc;
    }
View Full Code Here


     */
    @Override
    public List<UnderstandingDoc> findAll() {
        return org.getRepoContents("understanding").stream()
                .filter(RepoContent::isDirectory)
                .map(repoContent -> new UnderstandingDoc(repoContent.getName(), this))
                .collect(Collectors.toList());
    }
View Full Code Here

    }

    @Test
    public void summaryIsFirst500Characters() throws Exception {
        String content = Fixtures.load("/fixtures/understanding/amqp/README.html");
        UnderstandingDoc guide = new UnderstandingDoc("foo", content, "sidebar");
        SearchEntry entry = mapper.map(guide);
        assertThat(entry.getSummary().length(), equalTo(500));
    }
View Full Code Here

TOP

Related Classes of sagan.guides.UnderstandingDoc

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.