Commit 778f2d5
committed
Use kotlin.io.path extensions in UnifiedPropertiesLoaderTest
Replace java.io.File API with kotlin.io.path extensions and Java NIO
as suggested in code review. Uses Files.createDirectories() for parent
directory creation since kotlin.io.path.createParentDirectories() is
not available in the current Kotlin stdlib version.
All tests pass with this implementation.
Signed-off-by: Kim Tae Eun <snowykte0426@naver.com>1 parent 12be202 commit 778f2d5
File tree
1 file changed
+12
-7
lines changed- modules/mockk-core/src/jvmTest/kotlin/io/mockk/core/config
1 file changed
+12
-7
lines changedLines changed: 12 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
7 | 11 | | |
8 | 12 | | |
9 | 13 | | |
| |||
39 | 43 | | |
40 | 44 | | |
41 | 45 | | |
42 | | - | |
43 | 46 | | |
44 | | - | |
45 | | - | |
46 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
47 | 51 | | |
48 | 52 | | |
49 | 53 | | |
50 | | - | |
51 | | - | |
| 54 | + | |
52 | 55 | | |
| 56 | + | |
| 57 | + | |
53 | 58 | | |
0 commit comments