aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/com/puppycrawl/tools/checkstyle/gui/ParseTreeTablePresentationTest.java
diff options
context:
space:
mode:
authorAurimas Liutikas <aurimas@google.com>2018-01-27 17:00:40 -0800
committerAurimas Liutikas <aurimas@google.com>2018-01-27 17:01:41 -0800
commit0d3be72607b72301b708dca56e3afc3299fd2126 (patch)
treee58fd83708211220003af021e3345f001413cc48 /src/test/java/com/puppycrawl/tools/checkstyle/gui/ParseTreeTablePresentationTest.java
parentb4aec831a096b89efed151c9b2c5754d9491e6ea (diff)
parent5f62e6406680bb91ef505b9a1932e398bf42532d (diff)
downloadcheckstyle-master.tar.gz
Merge Checkstyle 8.7 into aosp/masterHEADmastermain
Merged commit 5f62e6406680bb91ef505b9a1932e398bf42532d Test: None
Diffstat (limited to 'src/test/java/com/puppycrawl/tools/checkstyle/gui/ParseTreeTablePresentationTest.java')
-rw-r--r--src/test/java/com/puppycrawl/tools/checkstyle/gui/ParseTreeTablePresentationTest.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/test/java/com/puppycrawl/tools/checkstyle/gui/ParseTreeTablePresentationTest.java b/src/test/java/com/puppycrawl/tools/checkstyle/gui/ParseTreeTablePresentationTest.java
index afd5a7f85..03e720960 100644
--- a/src/test/java/com/puppycrawl/tools/checkstyle/gui/ParseTreeTablePresentationTest.java
+++ b/src/test/java/com/puppycrawl/tools/checkstyle/gui/ParseTreeTablePresentationTest.java
@@ -191,18 +191,19 @@ public class ParseTreeTablePresentationTest extends AbstractPathTestSupport {
final ParseTreeTablePresentation parseTree = new ParseTreeTablePresentation(null);
int index = 0;
while (ithChild != null) {
- Assert.assertEquals("Invalud child index",
+ Assert.assertEquals("Invalid child index",
index, parseTree.getIndexOfChild(tree, ithChild));
ithChild = ithChild.getNextSibling();
index++;
}
- Assert.assertEquals("Invalud child index",
+ Assert.assertEquals("Invalid child index",
-1, parseTree.getIndexOfChild(tree, new DetailAST()));
}
/**
- * The path to class name in InputJavadocAttributesAndMethods.java
+ * The path to class name in InputJavadocAttributesAndMethods.java.
+ * <pre>
* CLASS_DEF
* - MODIFIERS
* - Comment node
@@ -210,6 +211,7 @@ public class ParseTreeTablePresentationTest extends AbstractPathTestSupport {
* - IDENT -> this is the node that holds the class name
* Line number 4 - first three lines are taken by javadoc
* Column 6 - first five columns taken by 'class '
+ * </pre>
*/
@Test
public void testGetValueAt() {