This is an automated email from the ASF dual-hosted git repository. elharo pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven-checkstyle-plugin.git
The following commit(s) were added to refs/heads/master by this push: new f3e9603 clean up before test (#120) f3e9603 is described below commit f3e9603adc80804af8b60385898a2fd085319469 Author: Elliotte Rusty Harold <elh...@users.noreply.github.com> AuthorDate: Sat May 20 16:47:34 2023 +0000 clean up before test (#120) --- .../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 {