Skip to content

Commit 08793f2

Browse files
rnveachromani
authored andcommitted
Issue checkstyle#3891: reorganized JavadocDetailNodeParserTest inputs
1 parent 49071ef commit 08793f2

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/test/java/com/puppycrawl/tools/checkstyle/JavadocDetailNodeParserTest.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@ public class JavadocDetailNodeParserTest extends AbstractModuleTestSupport {
3838

3939
@Override
4040
protected String getPackageLocation() {
41-
return "com/puppycrawl/tools/checkstyle";
41+
return "com/puppycrawl/tools/checkstyle/javadocdetailnodeparser";
4242
}
4343

4444
@Test
4545
public void testParseJavadocAsDetailNode() throws Exception {
46-
final DetailAST ast = TestUtils.parseFile(new File("src/test/resources/"
47-
+ getPackageLocation() + "/InputJavadocDetailNodeParser.java"))
48-
.getNextSibling().getFirstChild().getFirstChild();
46+
final DetailAST ast = TestUtils
47+
.parseFile(new File(getPath("InputJavadocDetailNodeParser.java"))).getNextSibling()
48+
.getFirstChild().getFirstChild();
4949
final JavadocDetailNodeParser parser = new JavadocDetailNodeParser();
5050
final JavadocDetailNodeParser.ParseStatus status = parser.parseJavadocAsDetailNode(ast);
5151
final String actual = DetailNodeTreeStringPrinter.printTree(status.getTree(), "", "");
@@ -56,12 +56,12 @@ public void testParseJavadocAsDetailNode() throws Exception {
5656
// and linux.
5757
if (OS_NAME.startsWith("windows")) {
5858
expected = new String(Files.readAllBytes(Paths.get(
59-
getPath("OutputWindowsJavadocDetailedNodeParser.txt"))),
59+
getPath("ExpectedJavadocDetailNodeParserWindows.txt"))),
6060
StandardCharsets.UTF_8);
6161
}
6262
else {
6363
expected = new String(Files.readAllBytes(Paths.get(
64-
getPath("OutputJavadocDetailedNodeParser.txt"))),
64+
getPath("ExpectedJavadocDetailNodeParser.txt"))),
6565
StandardCharsets.UTF_8);
6666
}
6767

0 commit comments

Comments
 (0)