diff --git a/src/test/java/org/apache/maven/plugins/checkstyle/CheckstyleReportTest.java b/src/test/java/org/apache/maven/plugins/checkstyle/CheckstyleReportTest.java index a2009aab..ba85a81c 100644 --- a/src/test/java/org/apache/maven/plugins/checkstyle/CheckstyleReportTest.java +++ b/src/test/java/org/apache/maven/plugins/checkstyle/CheckstyleReportTest.java @@ -135,6 +135,7 @@ private void generateReport(String pluginXml) throws Exception { assertTrue("Test cache file exists", new File(cacheFile).exists()); } + File outputDir = mojo.getReportOutputDirectory(); File useFile = (File) getVariableValueFromObject(mojo, "useFile"); if (useFile != null) { assertTrue("Test useFile exists", useFile.exists());