Skip to content

Commit f15ee64

Browse files
kcooneystefanbirkner
authored andcommitted
Fix method names in TemporaryFolderUsageTest.
1 parent 326f9bb commit f15ee64

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/test/java/org/junit/rules/TemporaryFolderUsageTest.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public void newFileWithGivenNameThrowsIllegalStateExceptionIfCreateWasNotInvoked
5353
}
5454

5555
@Test
56-
public void newFileWithGivenFilenameThrowsIllegalArgumentExceptionIfFileExists() throws IOException {
56+
public void newFileWithGivenFilenameThrowsIOExceptionIfFileExists() throws IOException {
5757
tempFolder.create();
5858
tempFolder.newFile("MyFile.txt");
5959

@@ -74,7 +74,7 @@ public void newFolderWithGivenPathThrowsIllegalStateExceptionIfCreateWasNotInvok
7474
}
7575

7676
@Test
77-
public void newFolderWithGivenFolderThrowsIllegalArgumentExceptionIfFolderExists() throws IOException {
77+
public void newFolderWithGivenFolderThrowsIOExceptionIfFolderExists() throws IOException {
7878
tempFolder.create();
7979
tempFolder.newFolder("level1");
8080

@@ -84,7 +84,7 @@ public void newFolderWithGivenFolderThrowsIllegalArgumentExceptionIfFolderExists
8484
}
8585

8686
@Test
87-
public void newFolderWithGivenFolderThrowsIllegalArgumentExceptionIfFileExists() throws IOException {
87+
public void newFolderWithGivenFolderThrowsIOExceptionIfFileExists() throws IOException {
8888
tempFolder.create();
8989
File file = new File(tempFolder.getRoot(), "level1");
9090
assertTrue("Could not create" + file, file.createNewFile());
@@ -131,7 +131,7 @@ public void newFolderWithPathContainingForwardSlashCreatesDirectories()
131131
}
132132

133133
@Test
134-
public void newFolderWithGivenPathThrowsIllegalArgumentExceptionIfFolderExists() throws IOException {
134+
public void newFolderWithGivenPathThrowsIOExceptionIfFolderExists() throws IOException {
135135
tempFolder.create();
136136
tempFolder.newFolder("level1", "level2", "level3");
137137

0 commit comments

Comments
 (0)