Package br.com.caelum.tubaina.chunk

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


public class TableRowTagTest extends AbstractTagTest {
 
  @Test
  public void testTableRowTag() {
    TableRowChunk chunk = new TableRowChunk(text("linha da tabela"));
    String result = getContent(chunk);
    Assert.assertEquals("linha da tabela\\\\", result);
  }
View Full Code Here


    Assert.assertEquals("linha da tabela\\\\", result);
  }
 
  @Test
  public void testRemoveLastColumnBreak() {
    TableRowChunk chunk = new TableRowChunk(text("coluna1& coluna2& coluna3&"));
    String result = getContent(chunk);
    Assert.assertEquals("coluna1& coluna2& coluna3\\\\", result);
  }
View Full Code Here

  @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 TableRowTagTest extends AbstractTagTest {
 
  @Test
  public void testTableRow() {
    TableRowChunk chunk = new TableRowChunk(text("texto"));
    String result = getContent(chunk);
    Assert.assertEquals("<tr>texto</tr>", result);
  }
View Full Code Here

  @Override
  protected Chunk createChunk(String options, String content) {
    List<Chunk> cols = new ChunkSplitter(resources, "row").splitChunks(content);
    if (cols.size() == 0)
      throw new TubainaException("Row without columns inside");
    return new TableRowChunk(cols);
  }
View Full Code Here

public class TableRowTagTest extends AbstractTagTest {

  @Test
  public void testTableRow() {
    TableRowChunk chunk = new TableRowChunk(text("texto"));
    String result = getContent(chunk);
    Assert.assertEquals("<tr>texto</tr>", result);
  }
View Full Code Here

TOP

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

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.