use of org.eclipse.n4js.jsdoc.tags.AbstractInlineTagDefinition in project n4js by eclipse.
the class DocletParserTest method testJSDocParsingWithoutMainDescription.
@SuppressWarnings("javadoc")
@Test
public void testJSDocParsingWithoutMainDescription() {
String in = "/** \n * @stubLineTagTitle \n */";
AbstractLineTagDefinition tag = new StubLineTagDefinition("stubLineTagTitle");
DocletParser docletParser = new DocletParser(new TagDictionary<>(Arrays.asList(tag)), new TagDictionary<AbstractInlineTagDefinition>());
Doclet doclet = docletParser.parse(in);
LineTag lineTag = doclet.getLineTags().get(0);
assertEquals("stubLineTagTitle", lineTag.getTitle().getTitle());
}
use of org.eclipse.n4js.jsdoc.tags.AbstractInlineTagDefinition in project n4js by eclipse.
the class DocletParserTest method testUnkonwLineTagIsIgnored.
@SuppressWarnings("javadoc")
@Test
public void testUnkonwLineTagIsIgnored() {
String in = "/** \n * @unkonwTagTitle \n */";
AbstractLineTagDefinition tag = new StubLineTagDefinition("stubLineTagTitle");
DocletParser docletParser = new DocletParser(new TagDictionary<>(Arrays.asList(tag)), new TagDictionary<AbstractInlineTagDefinition>());
Doclet doclet = docletParser.parse(in);
assertEquals(0, doclet.getLineTags().size());
}
Aggregations