Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f3e9603

Browse filesBrowse files
authored
clean up before test (#120)
1 parent 756a61f commit f3e9603
Copy full SHA for f3e9603

File tree

1 file changed

+4
-1
lines changed
Filter options

1 file changed

+4
-1
lines changed

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

Copy file name to clipboardExpand all lines: src/test/java/org/apache/maven/plugins/checkstyle/CheckstyleReportTest.java
+4-1Lines changed: 4 additions & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.