Examples of TableChunk


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

public class TableTagTest extends AbstractTagTest {
 
  @Test
  public void testTable() {
    TableChunk chunk = new TableChunk("", text("texto da tabela"));
    String result = getContent(chunk);
    Assert.assertEquals("<table border=1>texto da tabela</table>", result);
  }
View Full Code Here

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

    Assert.assertEquals("<table border=1>texto da tabela</table>", result);
  }
 
  @Test
  public void testTableWithTitle() {
    TableChunk chunk = new TableChunk("\"titulo\"", text("texto da tabela"));
    String result = getContent(chunk);
    Assert.assertEquals("<h3>titulo</h3><table border=1>texto da tabela</table>", result);
  }
View Full Code Here

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

    Assert.assertEquals("<h3>titulo</h3><table border=1>texto da tabela</table>", result);
  }
 
  @Test
  public void testTableWithoutBorder() {
    TableChunk chunk = new TableChunk("noborder", text("texto da tabela"));
    String result = getContent(chunk);
    Assert.assertEquals("<table>texto da tabela</table>", result);
  }
View Full Code Here

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

    Assert.assertEquals("<table>texto da tabela</table>", result);
  }
 
  @Test
  public void testTableWithTitleAndWithoutBorder() {
    TableChunk chunk = new TableChunk("noborder \"titulo\"", text("texto da tabela"));
    String result = getContent(chunk);
    Assert.assertEquals("<h3>titulo</h3><table>texto da tabela</table>", result);
  }
View Full Code Here

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

    rows = Arrays.<Chunk>asList(new TableRowChunk(colunas));
  }

  @Test
  public void testTable() {
    TableChunk chunk = new TableChunk("", rows);
    String result = getContent(chunk);
    Assert.assertEquals("\\begin{table}[!h]\n" +
                "\\caption{}\n" +
                "\\begin{center}\n" +
                  "\\rowcolors[]{1}{gray!30}{gray!15}\n" +
View Full Code Here

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

  }


  @Test
  public void testTableWithTitle() {
    TableChunk chunk = new TableChunk("\"titulo\"", rows);
    String result = getContent(chunk);
    Assert.assertEquals("\\begin{table}[!h]\n" +
                "\\caption{titulo}\n" +
                "\\begin{center}\n" +
                  "\\rowcolors[]{1}{gray!30}{gray!15}\n" +
View Full Code Here

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

              "\\end{table}", result);
  }

  @Test
  public void testTableWithoutBorder() {
    TableChunk chunk = new TableChunk("noborder", rows);
    String result = getContent(chunk);
    Assert.assertEquals("\\begin{table}[!h]\n" +
                "\\caption{}\n" +
                "\\begin{center}\n" +
                  "\\begin{tabularx}{X}\n" +
View Full Code Here

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

              "\\end{table}", result);
  }

  @Test
  public void testTableWithTitleAndWithoutBorder() {
    TableChunk chunk = new TableChunk("noborder \"titulo\"", rows);
    String result = getContent(chunk);
    Assert.assertEquals("\\begin{table}[!h]\n" +
                "\\caption{titulo}\n" +
                "\\begin{center}\n" +
                  "\\begin{tabularx}{X}\n" +
View Full Code Here

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

              "\\end{table}", result);
  }

  @Test(expected = TubainaException.class)
  public void testTableWithInvalidNumberOfColums() {
    TableChunk chunk = new TableChunk("", text("texto da tabela"));
    getContent(chunk);
  }
View Full Code Here

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

public class TableTagTest extends AbstractTagTest {
 
  @Test
  public void testTable() {
    TableChunk chunk = new TableChunk("", text("texto da tabela"));
    String result = getContent(chunk);
    Assert.assertEquals("<table border=1>texto da tabela</table>", result);
  }
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.