use of org.antlr.v4.runtime.tree.ParseTree in project checkstyle by checkstyle.
the class JavadocParseTreeTest method docRootInheritDoc.
@Test
public void docRootInheritDoc() throws IOException {
final String filename = getDocPath("InputDocRootInheritDoc.txt");
final ParseTree generatedTree = parseJavadoc(getFileContent(new File(filename)));
final ParseTree expectedTree = ParseTreeBuilder.treeDocRootInheritDoc();
compareTrees(expectedTree, generatedTree);
}
use of org.antlr.v4.runtime.tree.ParseTree in project checkstyle by checkstyle.
the class JavadocParseTreeTest method javadocTagDescriptionWithInlineTags.
@Test
public void javadocTagDescriptionWithInlineTags() throws IOException {
final String filename = getDocPath("InputJavadocTagDescriptionWithInlineTags.txt");
final ParseTree generatedTree = parseJavadoc(getFileContent(new File(filename)));
final ParseTree expectedTree = ParseTreeBuilder.treeJavadocTagDescriptionWithInlineTags();
compareTrees(expectedTree, generatedTree);
}
use of org.antlr.v4.runtime.tree.ParseTree in project checkstyle by checkstyle.
the class JavadocParseTreeTest method serial.
@Test
public void serial() throws IOException {
final String filename = getDocPath("InputSerial.txt");
final ParseTree generatedTree = parseJavadoc(getFileContent(new File(filename)));
final ParseTree expectedTree = ParseTreeBuilder.treeSerial();
compareTrees(expectedTree, generatedTree);
}
use of org.antlr.v4.runtime.tree.ParseTree in project checkstyle by checkstyle.
the class JavadocParseTreeTest method oneSimpleHtmlTag.
@Test
public void oneSimpleHtmlTag() throws IOException {
final String filename = getHtmlPath("InputOneSimpleHtmlTag.txt");
final ParseTree generatedTree = parseJavadoc(getFileContent(new File(filename)));
final ParseTree expectedTree = ParseTreeBuilder.treeOneSimpleHtmlTag();
compareTrees(expectedTree, generatedTree);
}
use of org.antlr.v4.runtime.tree.ParseTree in project checkstyle by checkstyle.
the class JavadocParseTreeTest method authorWithMailto.
@Test
public void authorWithMailto() throws IOException {
final String filename = getDocPath("InputAuthorWithMailto.txt");
final ParseTree generatedTree = parseJavadoc(getFileContent(new File(filename)));
final ParseTree expectedTree = ParseTreeBuilder.treeAuthorWithMailto();
compareTrees(expectedTree, generatedTree);
}
Aggregations