Package br.com.caelum.tubaina.chunk

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("title=\"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


    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

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

  }
 
  @Override
  protected Chunk createChunk(String options, String content) {
    List<Chunk> rows = new ChunkSplitter(resources, "table").splitChunks(content);
    return new TableChunk(options, rows);
  }
View Full Code Here

TOP

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

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.