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

Examples of br.com.caelum.tubaina.parser.html.desktop.HtmlModule


  @Test
  public void testItemSplittBug() {
    String input = "* Refactoring, Martin Fowler\n\n"
        + "* Effective Java, Joshua Bloch\n\n* Design Patterns, Erich Gamma et al";
    List<Chunk> chunks = new ChunkSplitter(null, "list").splitChunks(input);
    HtmlModule module = new HtmlModule();
    for (Chunk chunk : chunks) {
      module.inject(chunk);
    }
    Assert.assertEquals(3, chunks.size());
    Assert.assertEquals("<li>Refactoring, Martin Fowler</li>", chunks.get(0).asString());
    Assert.assertEquals("<li>Effective Java, Joshua Bloch</li>", chunks.get(1).asString());
    Assert.assertEquals("<li>Design Patterns, Erich Gamma et al</li>", chunks.get(2).asString());
View Full Code Here

TOP

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

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.