Commit 10a863e
committed
Improve message if file exists instead of folder
When TemporaryFolder(String path) or TemporaryFolder(String... paths) is
called with a path that matches the path of an existing file then an
IOException with a message like "a file with path <path> exists" is
thrown.1 parent 01d7ec2 commit 10a863e
File tree
2 files changed
+8
-3
lines changed- src
- main/java/org/junit/rules
- test/java/org/junit/rules
2 files changed
+8
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
209 | | - | |
210 | | - | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
211 | 216 | | |
212 | 217 | | |
213 | 218 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| |||
0 commit comments