use of org.antlr.v4.runtime.tree.ParseTree in project checkstyle by checkstyle.
the class JavadocParseTreeTest method seeReferenceWithFewNestedClasses.
@Test
public void seeReferenceWithFewNestedClasses() throws IOException {
final String filename = getDocPath("InputSeeReferenceWithFewNestedClasses.txt");
final ParseTree generatedTree = parseJavadoc(getFileContent(new File(filename)));
final ParseTree expectedTree = ParseTreeBuilder.treeSeeReferenceWithFewNestedClasses();
compareTrees(expectedTree, generatedTree);
}
use of org.antlr.v4.runtime.tree.ParseTree in project checkstyle by checkstyle.
the class JavadocParseTreeTest method listWithUnclosedItemInUnclosedParagraph.
@Test
public void listWithUnclosedItemInUnclosedParagraph() throws IOException {
final String filename = getHtmlPath("InputListWithUnclosedItemInUnclosedParagraph.txt");
final ParseTree generatedTree = parseJavadoc(getFileContent(new File(filename)));
final ParseTree expectedTree = ParseTreeBuilder.treeListWithUnclosedItemInUnclosedParagraph();
compareTrees(expectedTree, generatedTree);
}
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);
}
Aggregations