use of com.github.javaparser.javadoc.description.JavadocInlineTag in project javaparser by javaparser.
the class JavadocTest method descriptionModificationWorks.
@Test
public void descriptionModificationWorks() {
JavadocDescription description = new JavadocDescription();
assertEquals(0, description.getElements().size());
JavadocDescriptionElement inlineTag = new JavadocInlineTag("inheritDoc", JavadocInlineTag.Type.INHERIT_DOC, "");
assertTrue(description.addElement(inlineTag));
assertEquals(1, description.getElements().size());
assertEquals(inlineTag, description.getElements().get(0));
assertEquals(inlineTag, description.getElements().remove(0));
assertEquals(0, description.getElements().size());
}
Aggregations