Package br.com.caelum.tubaina.chunk

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


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

    Chunk chunk = chunks.get(0);
    Assert.assertEquals(CenteredParagraphChunk.class, chunk.getClass());
    CenteredParagraphChunk castChunk = (CenteredParagraphChunk) chunk;
    Assert.assertEquals("Algum texto centralizado\n\nCom várias linhas", castChunk.getContent());
  }
View Full Code Here


import br.com.caelum.tubaina.chunk.CenteredParagraphChunk;

public class CenteredParagraphTagTest extends AbstractTagTest {
  @Test
  public void testCenteredParagraphTest() {
    CenteredParagraphChunk chunk = new CenteredParagraphChunk("texto centralizado");
    String result = getContent(chunk);
    Assert.assertEquals("<p class=\"center\">texto centralizado</p>", result);
  }
View Full Code Here

import br.com.caelum.tubaina.chunk.CenteredParagraphChunk;

public class CenteredParagraphTagTest extends AbstractTagTest {
  @Test
  public void testCenteredParagraphTag() {
    CenteredParagraphChunk chunk = new CenteredParagraphChunk("texto centralizado");
    String result = getContent(chunk);
    Assert.assertEquals("\\begin{center}texto centralizado\\end{center}", result);
  }
View Full Code Here

import br.com.caelum.tubaina.chunk.CenteredParagraphChunk;

public class CenteredParagraphTagTest extends AbstractTagTest {
  @Test
  public void testCenteredParagraphTest() {
    CenteredParagraphChunk chunk = new CenteredParagraphChunk("texto centralizado");
    String result = getContent(chunk);
    Assert.assertEquals("<p class=\"center\">texto centralizado</p>", result);
  }
View Full Code Here

  public CenteredParagraphReplacer() {
    super("center");
  }
  @Override
  protected Chunk createChunk(String options, String content) {
    return new CenteredParagraphChunk(content);
  }
View Full Code Here

TOP

Related Classes of br.com.caelum.tubaina.chunk.CenteredParagraphChunk

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.