Skip to content

Commit

Permalink
issue 65: make all intervening dirs to the report.
Browse files Browse the repository at this point in the history
  • Loading branch information
happygiraffe committed Aug 24, 2011
1 parent 005118b commit 4f68529
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Expand Up @@ -52,7 +52,7 @@ public void close() {
private void ensureReportDirectoryExists() {
File parent = reportFile.getAbsoluteFile().getParentFile();
if (!parent.exists()) {
parent.mkdir();
parent.mkdirs();
}
}

Expand Down
Expand Up @@ -44,7 +44,8 @@ public void createsNonEmptyFile() {

@Test
public void makesParentDirectory() {
File parent = new File(tmpf.getRoot(), "somedir");
// issue 65: ensure we make *all* intervening directories.
File parent = new File(new File(tmpf.getRoot(), "some"), "dir");
ReportWriter rw = new ReportWriter(new File(parent, REPORT_XML), formatter);
rw.open();
rw.close();
Expand Down

0 comments on commit 4f68529

Please sign in to comment.