Examples of ItemChunk


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

    pattern = Pattern.compile("(?m)^\\s*\\*([^\\*])");
    this.resources = resources;
  }

  public Chunk createChunk(final String content) {
    return new ItemChunk(new ChunkSplitter(resources, "item").splitChunks(content));
  }
View Full Code Here

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

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

public class ItemTagTest extends AbstractTagTest {
  @Test
  public void testItem() {
    ItemChunk chunk = new ItemChunk(text("texto do item"));
    String result = getContent(chunk);
    Assert.assertEquals("<li>texto do item</li>", result);
  }
View Full Code Here

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

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

public class ItemTagTest extends AbstractTagTest {
  @Test
  public void testItem() {
    ItemChunk chunk = new ItemChunk(text("texto do item"));
    String result = getContent(chunk);
    Assert.assertEquals("\n\\item{texto do item}\n", result);
  }
View Full Code Here

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

public class ItemTagTest extends AbstractTagTest {

  @Test
  public void testItem() {
    ItemChunk chunk = new ItemChunk(text("texto do item"));
    String result = getContent(chunk);
    Assert.assertEquals("<li>texto do item</li>", result);
  }
View Full Code Here

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

    pattern = Pattern.compile("(?m)^\\s*\\*([^\\*])");
    this.resources = resources;
  }

  public Chunk createChunk(final String content) {
    return new ItemChunk(new ChunkSplitter(resources, "item").splitChunks(content));
  }
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.