From 1870fbb797317876c1891f13cde7e2e0eb797b7e Mon Sep 17 00:00:00 2001 From: Elliotte Rusty Harold Date: Thu, 21 Nov 2024 05:11:44 -0500 Subject: [PATCH] fix --- .../apache/maven/plugins/checkstyle/CheckstyleReportTest.java | 1 + 1 file changed, 1 insertion(+) 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());