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

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

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

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

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

public class CenteredParagraphTagTest extends AbstractTagTest {
  @Test
  public void testCenteredParagraphTest() {
    CenteredParagraphChunk chunk = new CenteredParagraphChunk("texto centralizado");
    String result = getContent(chunk);
    Assert.assertEquals("<p class=\"center\">texto centralizado</p>", result);
  }
}
TOP

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

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.