File tree 1 file changed +4
-4
lines changed
src/test/java/org/junit/rules
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -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
@@ -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 ());
@@ -131,7 +131,7 @@ public void newFolderWithPathContainingForwardSlashCreatesDirectories()
131
131
}
132
132
133
133
@ Test
134
- public void newFolderWithGivenPathThrowsIllegalArgumentExceptionIfFolderExists () throws IOException {
134
+ public void newFolderWithGivenPathThrowsIOExceptionIfFolderExists () throws IOException {
135
135
tempFolder .create ();
136
136
tempFolder .newFolder ("level1" , "level2" , "level3" );
137
137
You can’t perform that action at this time.
0 commit comments