Examples of ParagraphChunk


Examples of br.com.caelum.tubaina.chunk.ParagraphChunk

    }
    return false;
  }

  public Chunk createChunk(Matcher matcher) {
    return new ParagraphChunk(matcher.group(1));
  }
View Full Code Here

Examples of br.com.caelum.tubaina.chunk.ParagraphChunk

public class ParagraphTagTest extends AbstractTagTest {

  @Test
  public void testParagraphTag(){
    ParagraphChunk chunk = new ParagraphChunk("qualquer texto", false);
    String result = getContent(chunk);
    Assert.assertEquals(result, "\n\nqualquer texto");
  }
View Full Code Here

Examples of br.com.caelum.tubaina.chunk.ParagraphChunk

    List<Chunk> chunks = chapters.get(0).getSections().get(0).getChunks();
    Assert.assertEquals(1, chunks.size());

    Assert.assertEquals(ParagraphChunk.class, chunks.get(0).getClass());
    ParagraphChunk paragraphChunk = (ParagraphChunk) chunks.get(0);
    Assert.assertEquals("Algum texto de parágrafo", paragraphChunk.getContent());
  }
View Full Code Here

Examples of br.com.caelum.tubaina.chunk.ParagraphChunk

public class ParagraphTagTest extends AbstractTagTest {

  @Test
  public void generalParagraphTag() {
    ParagraphChunk chunk = new ParagraphChunk("qualquer texto", false);
    String result = getContent(chunk);
    Assert.assertEquals(result, "<p>qualquer texto</p>");
  }
View Full Code Here

Examples of br.com.caelum.tubaina.chunk.ParagraphChunk

    Assert.assertEquals(result, "<p>qualquer texto</p>");
  }

  @Test
  public void insideItemParagraphTag() {
    ParagraphChunk chunk = new ParagraphChunk("qualquer texto", true);
    String result = getContent(chunk);
    Assert.assertEquals(result, "qualquer texto");
  }
View Full Code Here

Examples of br.com.caelum.tubaina.chunk.ParagraphChunk

public class ParagraphTagTest extends AbstractTagTest {

  @Test
  public void generalParagraphTag(){
    ParagraphChunk chunk = new ParagraphChunk("qualquer texto", false);
    String result = getContent(chunk);
    Assert.assertEquals(result, "<p>qualquer texto</p>");
  }
View Full Code Here

Examples of br.com.caelum.tubaina.chunk.ParagraphChunk

    Assert.assertEquals(result, "<p>qualquer texto</p>");
  }

  @Test
  public void insideItemParagraphTag() {
    ParagraphChunk chunk = new ParagraphChunk("qualquer texto", true);
    String result = getContent(chunk);
    Assert.assertEquals(result, "qualquer texto");
  }
View Full Code Here

Examples of br.com.caelum.tubaina.chunk.ParagraphChunk

    }
    return false;
  }

  public Chunk createChunk(Matcher matcher) {
    return new ParagraphChunk(matcher.group(1), isInsideItem);
  }
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.