Skip to content

Commit 93931e2

Browse files
dfa1claude
andcommitted
fix(sonar): use dedicated File assertions (S5838)
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KW6yskY3pE759XUg2UUtf8
1 parent 713122c commit 93931e2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎cli/src/test/java/io/github/dfa1/vortex/cli/ImportCommandTest.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,8 @@ void ownerCanStillReadAndWriteAfterRestricting(@TempDir Path tmp) throws IOExcep
200200
// Then — this is the non-POSIX equivalent of the POSIX branch's `rw-------`
201201
// FileAttribute; it must not lock the owner itself out of the file it just created
202202
assertThat(result).isEqualTo(file);
203-
assertThat(file.toFile().canRead()).isTrue();
204-
assertThat(file.toFile().canWrite()).isTrue();
203+
assertThat(file.toFile()).canRead();
204+
assertThat(file.toFile()).canWrite();
205205
}
206206
}
207207
}

0 commit comments

Comments
 (0)