Skip to content

Commit f3e9603

Browse files
authored
clean up before test (#120)
1 parent 756a61f commit f3e9603

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/test/java/org/apache/maven/plugins/checkstyle/CheckstyleReportTest.java

+4-1
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,11 @@
3535
*/
3636
public class CheckstyleReportTest extends AbstractCheckstyleTestCase {
3737
public void testNoSource() throws Exception {
38+
// clean up after earlier runs
39+
File report = new File("target/test-harness/checkstyle/no-source/checkstyle.html");
40+
report.delete();
3841
File generatedReport = generateReport("checkstyle", "no-source-plugin-config.xml");
39-
assertFalse(FileUtils.fileExists(generatedReport.getAbsolutePath()));
42+
assertFalse(report + " exists", generatedReport.exists());
4043
}
4144

4245
public void testMinConfiguration() throws Exception {

0 commit comments

Comments
 (0)