18192021222324
@Override public Chunk createChunk(Matcher matcher) { String string = matcher.group(1); LOG.warn("TODO from chapter " + Chapter.getChaptersCount() + ": " + string); return new TodoChunk(string); }
789101112131415
public class TodoTagTest extends AbstractTagTest { @Test public void todoContentIsEmpty() throws Exception { TodoChunk chunk = new TodoChunk("Something I have to do later"); String content = getContent(chunk); Assert.assertTrue(content.isEmpty()); }
@Override public Chunk createChunk(Matcher matcher) { String string = matcher.group(1); LOG.warn("TODO from chapter " + ChapterBuilder.getChaptersCount() + ": " + string); return new TodoChunk(string); }