diff options
| author | Joel Klinghed <the_jk@spawned.biz> | 2024-11-06 00:19:28 +0100 |
|---|---|---|
| committer | Joel Klinghed <the_jk@spawned.biz> | 2024-11-06 00:19:28 +0100 |
| commit | 6ea5cef180db16523b2d629a44ee556507e3de78 (patch) | |
| tree | 6e14f1bc04c17159f6c8d2e526a450107c9f2fdd /libs/test-utils | |
| parent | c8b261535c069c47df70592f2acba35b2c29a54c (diff) | |
Use methods available on API 29, also in tests
There is no reason to use the Java version when there is the Kotlin version (for now).
Diffstat (limited to 'libs/test-utils')
| -rw-r--r-- | libs/test-utils/src/main/java/org/the_jk/cleversync/io/BaseSingleMergeTest.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/test-utils/src/main/java/org/the_jk/cleversync/io/BaseSingleMergeTest.kt b/libs/test-utils/src/main/java/org/the_jk/cleversync/io/BaseSingleMergeTest.kt index c50f6fa..156f978 100644 --- a/libs/test-utils/src/main/java/org/the_jk/cleversync/io/BaseSingleMergeTest.kt +++ b/libs/test-utils/src/main/java/org/the_jk/cleversync/io/BaseSingleMergeTest.kt @@ -543,7 +543,7 @@ abstract class BaseSingleMergeTest { ).containsExactly("/foo: Unable to create file: ") assertThat(tgt.list().directories).isEmpty() assertThat(tgt.list().files).containsExactly(tgtFoo) - assertThat(tgtFoo.read().use { it.readAllBytes() }).asList().containsExactly(2.toByte()) + assertThat(tgtFoo.read().use { it.readBytes() }).asList().containsExactly(2.toByte()) assertThat(tgt.list().links).isEmpty() } @@ -583,7 +583,7 @@ abstract class BaseSingleMergeTest { ).containsExactly("/foo: Unable to create link: ") assertThat(tgt.list().directories).isEmpty() assertThat(tgt.list().files).containsExactly(tgtFoo) - assertThat(tgtFoo.read().use { it.readAllBytes() }).asList().containsExactly(2.toByte()) + assertThat(tgtFoo.read().use { it.readBytes() }).asList().containsExactly(2.toByte()) assertThat(tgt.list().links).isEmpty() } |
