Examples of AnswerChunk


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


public class AnswerTagTest extends AbstractTagTest {
  @Test
  public void testAnswerTag(){
    AnswerChunk chunk = new AnswerChunk(text("texto da resposta"));
    int id = chunk.getId();
    String result = getContent(chunk);
    Assert.assertEquals("<a class=\"answer\" onclick=\"toogleAnswer('answer" + id + "');\">" +
        "Click here for the answer</a><br /><div class=\"answer\" " +
        "id=\"answer" + id + "\">texto da resposta</div><br/>", result);
  }
View Full Code Here

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

    this.resources = resources;
  }

  @Override
  public Chunk createChunk(String options, String content) {
    AnswerChunk chunk = new AnswerChunk(new ChunkSplitter(resources, "answer").splitChunks(content));
    resources.add(new AnswerResource(chunk));
    return chunk;
  }
View Full Code Here

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

public class AnswerTagTest extends AbstractTagTest {
 
  @Test
  public void testAnswerTag(){
    AnswerChunk chunk = new AnswerChunk(text("texto da resposta"));
    int id = chunk.getId();
    String result = getContent(chunk);
    Assert.assertEquals("<div class=\"answer\" " +
        "id=\"answer" + id + "\">texto da resposta</div><br/>", result);
  }
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.