This is an automated email from the ASF dual-hosted git repository.

elharo pushed a commit to branch MCHECKSTYLE-437
in repository https://gitbox.apache.org/repos/asf/maven-checkstyle-plugin.git

commit 4eb68a4e12c5ee434530a21085f989211b176c7a
Author: Elliotte Rusty Harold <elh...@ibiblio.org>
AuthorDate: Sat May 20 08:54:08 2023 -0400

    clean up before test
---
 .../org/apache/maven/plugins/checkstyle/CheckstyleReportTest.java    | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

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 e2fe20d..1326330 100644
--- 
a/src/test/java/org/apache/maven/plugins/checkstyle/CheckstyleReportTest.java
+++ 
b/src/test/java/org/apache/maven/plugins/checkstyle/CheckstyleReportTest.java
@@ -35,8 +35,11 @@ import org.codehaus.plexus.util.FileUtils;
  */
 public class CheckstyleReportTest extends AbstractCheckstyleTestCase {
     public void testNoSource() throws Exception {
+        // clean up after earlier runs
+        File report = new 
File("target/test-harness/checkstyle/no-source/checkstyle.html");
+        report.delete();
         File generatedReport = generateReport("checkstyle", 
"no-source-plugin-config.xml");
-        assertFalse(FileUtils.fileExists(generatedReport.getAbsolutePath()));
+        assertFalse(report + " exists", generatedReport.exists());
     }
 
     public void testMinConfiguration() throws Exception {

Reply via email to