Package br.com.caelum.tubaina.parser.html.desktop

Source Code of br.com.caelum.tubaina.parser.html.desktop.AnswerTagTest

package br.com.caelum.tubaina.parser.html.desktop;

import org.junit.Assert;
import org.junit.Test;

import 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);
  }
}

TOP

Related Classes of br.com.caelum.tubaina.parser.html.desktop.AnswerTagTest

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.