@@ -53,7 +53,7 @@ public void newFileWithGivenNameThrowsIllegalStateExceptionIfCreateWasNotInvoked
53
53
}
54
54
55
55
@ Test
56
- public void newFileWithGivenFilenameThrowsIllegalArgumentExceptionIfFileExists () throws IOException {
56
+ public void newFileWithGivenFilenameThrowsIOExceptionIfFileExists () throws IOException {
57
57
tempFolder .create ();
58
58
tempFolder .newFile ("MyFile.txt" );
59
59
@@ -63,7 +63,7 @@ public void newFileWithGivenFilenameThrowsIllegalArgumentExceptionIfFileExists()
63
63
}
64
64
65
65
@ Test (expected = IllegalStateException .class )
66
- public void newFolderThrowsIllegalStateExceptionIfCreateWasNotInvoked ()
66
+ public void newFolderThrowsIOExceptionIfCreateWasNotInvoked ()
67
67
throws IOException {
68
68
new TemporaryFolder ().newFolder ();
69
69
}
@@ -74,7 +74,7 @@ public void newFolderWithGivenPathThrowsIllegalStateExceptionIfCreateWasNotInvok
74
74
}
75
75
76
76
@ Test
77
- public void newFolderWithGivenFolderThrowsIllegalArgumentExceptionIfFolderExists () throws IOException {
77
+ public void newFolderWithGivenFolderThrowsIOExceptionIfFolderExists () throws IOException {
78
78
tempFolder .create ();
79
79
tempFolder .newFolder ("level1" );
80
80
@@ -84,7 +84,7 @@ public void newFolderWithGivenFolderThrowsIllegalArgumentExceptionIfFolderExists
84
84
}
85
85
86
86
@ Test
87
- public void newFolderWithGivenFolderThrowsIllegalArgumentExceptionIfFileExists () throws IOException {
87
+ public void newFolderWithGivenFolderThrowsIOExceptionIfFileExists () throws IOException {
88
88
tempFolder .create ();
89
89
File file = new File (tempFolder .getRoot (), "level1" );
90
90
assertTrue ("Could not create" + file , file .createNewFile ());
@@ -124,7 +124,7 @@ public void newFolderWithPathContainingForwardSlashCreatesDirectories()
124
124
}
125
125
126
126
@ Test
127
- public void newFolderWithGivenPathThrowsIllegalArgumentExceptionIfFolderExists () throws IOException {
127
+ public void newFolderWithGivenPathThrowsIOExceptionIfFolderExists () throws IOException {
128
128
tempFolder .create ();
129
129
tempFolder .newFolder ("level1" , "level2" , "level3" );
130
130
0 commit comments