@@ -38,14 +38,14 @@ public class JavadocDetailNodeParserTest extends AbstractModuleTestSupport {
38
38
39
39
@ Override
40
40
protected String getPackageLocation () {
41
- return "com/puppycrawl/tools/checkstyle" ;
41
+ return "com/puppycrawl/tools/checkstyle/javadocdetailnodeparser " ;
42
42
}
43
43
44
44
@ Test
45
45
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 ();
49
49
final JavadocDetailNodeParser parser = new JavadocDetailNodeParser ();
50
50
final JavadocDetailNodeParser .ParseStatus status = parser .parseJavadocAsDetailNode (ast );
51
51
final String actual = DetailNodeTreeStringPrinter .printTree (status .getTree (), "" , "" );
@@ -56,12 +56,12 @@ public void testParseJavadocAsDetailNode() throws Exception {
56
56
// and linux.
57
57
if (OS_NAME .startsWith ("windows" )) {
58
58
expected = new String (Files .readAllBytes (Paths .get (
59
- getPath ("OutputWindowsJavadocDetailedNodeParser .txt" ))),
59
+ getPath ("ExpectedJavadocDetailNodeParserWindows .txt" ))),
60
60
StandardCharsets .UTF_8 );
61
61
}
62
62
else {
63
63
expected = new String (Files .readAllBytes (Paths .get (
64
- getPath ("OutputJavadocDetailedNodeParser .txt" ))),
64
+ getPath ("ExpectedJavadocDetailNodeParser .txt" ))),
65
65
StandardCharsets .UTF_8 );
66
66
}
67
67
0 commit comments