Skip to content

Commit

Permalink
clean up before test (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
elharo committed May 20, 2023
1 parent 756a61f commit f3e9603
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,11 @@
*/
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 {
Expand Down

0 comments on commit f3e9603

Please sign in to comment.