use of com.github.javaparser.javadoc.description.JavadocSnippet in project javaparser by javaparser.
the class JavadocTest method issue1533.
@Test
void issue1533() {
CompilationUnit compilationUnit = parse("/** hallo {@link Foo} welt */ public interface Foo extends Comparable { }");
List<JavadocDescriptionElement> elements = compilationUnit.getType(0).getJavadoc().get().getDescription().getElements();
assertEquals(3, elements.size());
assertEquals(new JavadocSnippet("hallo "), elements.get(0));
assertEquals(new JavadocInlineTag("link", LINK, " Foo"), elements.get(1));
assertEquals(new JavadocSnippet(" welt"), elements.get(2));
}
Aggregations