Skip to content
Browse files

Fixed indenting on several lines

After solving #479 also fixed the indenting
  • Loading branch information...
1 parent 6b822aa commit 59e5333b24d0e433de10d74c69e5de7700c6b744 Arjan Wulder committed
View
14 src/main/java/org/junit/rules/TemporaryFolder.java
@@ -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 {
View
28 src/test/java/org/junit/tests/experimental/rules/TemporaryFolderUsageTest.java
@@ -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);
}

0 comments on commit 59e5333

Please sign in to comment.
Something went wrong with that request. Please try again.