Package br.com.caelum.tubaina.builder

Examples of br.com.caelum.tubaina.builder.BookPartsBuilder


    @Test
    public void testGeneratePartWithChapters() {
        Chapter chapter = createChapter("chapter title", "introduction",
                "[section section one] section content");
        List<BookPart> bookParts = new BookPartsBuilder(new SectionsManager()).addPartFrom("[part \"parte 1\"]")
                .addChaptersToLastAddedPart(Arrays.asList(chapter)).build();
        BookPart part = bookParts.get(0);
        new KindleModule().inject(part);
       
    String generatedContent = partToKindle.generateKindlePart(part,
View Full Code Here


    @Test
    public void testGenerateANotPrintablePartWithChapters() {
        Chapter chapter = createChapter("chapter title", "introduction",
                "[section section one] section content");
        List<BookPart> bookParts = new BookPartsBuilder(new SectionsManager()).addChaptersToLastAddedPart(
                Arrays.asList(chapter)).build();
        BookPart part = bookParts.get(0);
        new KindleModule().inject(part);
    String generatedContent = partToKindle.generateKindlePart(part,
                new TubainaHtmlDir(null, null, new KindleResourceManipulatorFactory()), 1).toString();
View Full Code Here

TOP

Related Classes of br.com.caelum.tubaina.builder.BookPartsBuilder

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.