@Test public void parse_mix_textAndLink() { List<CommentElement> elements = CommentParser.parse("TestClass", "text before {@link ClassName} text after").getElements(); assertEquals(3, elements.size()); assertEquals(new CommentText("text before "), elements.get(0)); assertEquals(new InlineLink(new Link("ClassName", "ClassName", null, null)), elements.get(1)); assertEquals(new CommentText(" text after"), elements.get(2)); }
static Comment parse(String owningClass, String commentText) { return isBlank(commentText) ? Comment.createEmpty() : new Comment(parseElements(owningClass, commentText.trim())); }
CommentParser { static Comment parse(String owningClass, String commentText) { return isBlank(commentText) ? Comment.createEmpty() : new Comment(parseElements(owningClass, commentText.trim())); } }
CommentParser { static Comment parse(String owningClass, String commentText) { return isBlank(commentText) ? Comment.createEmpty() : new Comment(parseElements(owningClass, commentText.trim())); }  }
CommentParser { static Comment parse(String owningClass, String commentText) { return isBlank(commentText) ? Comment.createEmpty() : new Comment(parseElements(owningClass, commentText.trim())); }   }
CommentParser { static Comment parse(String owningClass, String commentText) { return isBlank(commentText) ? Comment.createEmpty() : new Comment(parseElements(owningClass, commentText.trim())); }    }