Skip to content

Commit 44cb267

Browse files
committed
Fix temporary directory test
1 parent 644157e commit 44cb267

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

src/test/java/org/radarbase/output/util/TemporaryDirectoryTest.kt

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ package org.radarbase.output.util
22

33
import org.hamcrest.MatcherAssert.assertThat
44
import org.hamcrest.Matchers.`is`
5-
import org.hamcrest.Matchers.equalTo
6-
import org.junit.jupiter.api.Assertions.*
7-
import org.junit.jupiter.api.BeforeEach
85
import org.junit.jupiter.api.Test
96
import org.junit.jupiter.api.io.TempDir
107
import java.nio.file.Files
@@ -14,14 +11,14 @@ internal class TemporaryDirectoryTest {
1411
@Test
1512
fun createAndDelete(@TempDir root: Path) {
1613
TemporaryDirectory(root, "worker-").use {
17-
assertThat(Files.list(root).count(), `is`(1))
14+
assertThat(Files.list(root).count(), `is`(1L))
1815
Files.createTempFile(it.path, "test", "txt")
1916
Files.createTempFile(it.path, "test", "txt")
2017

21-
assertThat(Files.list(it.path).count(), `is`(2))
22-
assertThat(Files.list(root).count(), `is`(1))
18+
assertThat(Files.list(it.path).count(), `is`(2L))
19+
assertThat(Files.list(root).count(), `is`(1L))
2320
}
2421

25-
assertThat(Files.list(root).count(), `is`(0))
22+
assertThat(Files.list(root).count(), `is`(0L))
2623
}
2724
}

0 commit comments

Comments
 (0)