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

Source Code of br.com.caelum.tubaina.parser.html.kindle.ExerciseTagTest

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

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

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

public class ExerciseTagTest extends AbstractTagTest {

  @Test
  public void testExerciseTag() {
    ExerciseChunk chunk = new ExerciseChunk(text("texto do exercicio"));
    String result = getContent(chunk);
    Assert.assertEquals("<ol class=\"exercise\">texto do exercicio</ol>", result);
  }

}
TOP

Related Classes of br.com.caelum.tubaina.parser.html.kindle.ExerciseTagTest

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.