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());