Package br.com.caelum.tubaina.chunk

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


public class NoteTagTest extends AbstractTagTest {
 
  @Test
  public void testNoteTag(){
    NoteChunk chunk = new NoteChunk(text(""), text("qualquer texto de nota"));
    String result = getContent(chunk);
    Assert.assertEquals("\\begin{tubainanote}\nqualquer texto de nota\n\\end{tubainanote}", result);
  }
View Full Code Here


  @Override
  public Chunk createChunk(String options, String content) {
    ChunkSplitter splitter = new ChunkSplitter(resources, "note");
    List<Chunk> list = new ArrayList<Chunk>();
    list.add(new MockedChunk(INSTRUCTOR_NOTE));
    return new NoteChunk(list, splitter.splitChunks(content));
  }
View Full Code Here

public class NoteTagTest extends AbstractTagTest {

  @Test
  public void testNoteTag(){
    NoteChunk chunk = new NoteChunk(text(""), text("qualquer texto de nota"));
    String result = getContent(chunk);
    Assert.assertEquals(result, "<div class=\"note\">qualquer texto de nota</div>");
  }
View Full Code Here

public class NoteTagTest extends AbstractTagTest {

  @Test
  public void testNoteTag() {
    NoteChunk chunk = new NoteChunk(text(""), text("qualquer texto de nota"));
    String result = getContent(chunk);
    String begin = "---------------------------<br />";
    String end = "<br />---------------------------";
    Assert.assertEquals(result, begin + "qualquer texto de nota" + end);
  }
View Full Code Here

TOP

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

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.