diff --git a/cli/src/test/java/io/github/dfa1/vortex/cli/ImportCommandTest.java b/cli/src/test/java/io/github/dfa1/vortex/cli/ImportCommandTest.java index 4151e5f7..bc64672c 100644 --- a/cli/src/test/java/io/github/dfa1/vortex/cli/ImportCommandTest.java +++ b/cli/src/test/java/io/github/dfa1/vortex/cli/ImportCommandTest.java @@ -200,8 +200,8 @@ void ownerCanStillReadAndWriteAfterRestricting(@TempDir Path tmp) throws IOExcep // Then — this is the non-POSIX equivalent of the POSIX branch's `rw-------` // FileAttribute; it must not lock the owner itself out of the file it just created assertThat(result).isEqualTo(file); - assertThat(file.toFile().canRead()).isTrue(); - assertThat(file.toFile().canWrite()).isTrue(); + assertThat(file.toFile()).canRead(); + assertThat(file.toFile()).canWrite(); } } }