Skip to content

Commit

Permalink
Fixed indenting on several lines
Browse files Browse the repository at this point in the history
After solving junit-team#479 also fixed the indenting
  • Loading branch information
awulder committed Aug 12, 2012
1 parent 6b822aa commit 59e5333
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
14 changes: 7 additions & 7 deletions src/main/java/org/junit/rules/TemporaryFolder.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,16 @@
* @since 4.7
*/
public class TemporaryFolder extends ExternalResource {
private final File parentFolder;
private final File parentFolder;
private File folder;

public TemporaryFolder() {
this(null);
}
public TemporaryFolder() {
this(null);
}

public TemporaryFolder(File parentFolder) {
this.parentFolder = parentFolder;
}
public TemporaryFolder(File parentFolder) {
this.parentFolder = parentFolder;
}

@Override
protected void before() throws Throwable {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,24 +157,24 @@ public void newNestedFoldersCreatedUnderRootFolder() throws IOException {
.getParentFile());
}

@Test
public void canSetTheBaseFileForATemporaryFolder() throws IOException {
File tempDir = createTemporaryFolder();
@Test
public void canSetTheBaseFileForATemporaryFolder() throws IOException {
File tempDir = createTemporaryFolder();

TemporaryFolder folder = new TemporaryFolder(tempDir);
folder.create();
TemporaryFolder folder = new TemporaryFolder(tempDir);
folder.create();

assertThat(tempDir, is(folder.getRoot().getParentFile()));
}
assertThat(tempDir, is(folder.getRoot().getParentFile()));
}

private File createTemporaryFolder() throws IOException {
File tempDir = File.createTempFile("junit", "tempFolder");
assertTrue("Unable to delete temporary file", tempDir.delete());
assertTrue("Unable to create temp directory", tempDir.mkdir());
return tempDir;
}
private File createTemporaryFolder() throws IOException {
File tempDir = File.createTempFile("junit", "tempFolder");
assertTrue("Unable to delete temporary file", tempDir.delete());
assertTrue("Unable to create temp directory", tempDir.mkdir());
return tempDir;
}

private void assertFileDoesNotExist(File file) {
private void assertFileDoesNotExist(File file) {
checkFileExists("exists", file, false);
}

Expand Down

0 comments on commit 59e5333

Please sign in to comment.