Package br.com.caelum.tubaina.chunk

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


public class TableColumnTagTest extends AbstractTagTest {
 
  @Test
  public void testTableColumn() {
    TableColumnChunk chunk = new TableColumnChunk(text("algum texto"));
    String result = getContent(chunk);
    Assert.assertEquals("<td>algum texto</td>", result);
  }
View Full Code Here


  private List<Chunk> rows;

  @Before
  public void setUp() {
    TableColumnChunk tableColumnChunk = new TableColumnChunk(text("texto da tabela"));
    List<Chunk> colunas = Arrays.<Chunk>asList(tableColumnChunk);
    rows = Arrays.<Chunk>asList(new TableRowChunk(colunas));
  }
View Full Code Here

public class TableColumnTagTest extends AbstractTagTest {

  @Test
  public void testTableColumnTag() {
    TableColumnChunk chunk = new TableColumnChunk(text("texto da coluna"));
    String result = getContent(chunk);
    Assert.assertEquals("texto da coluna& ", result);
  }
View Full Code Here

public class TableColumnTagTest extends AbstractTagTest {
 
  @Test
  public void testTableColumn() {
    TableColumnChunk chunk = new TableColumnChunk(text("algum texto"));
    String result = getContent(chunk);
    Assert.assertEquals("<td>algum texto</td>", result);
  }
View Full Code Here

  }

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

TOP

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

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.