holodeck-b2b/generic-utils

FileUtilsTest#testIsWriteableDir fails on Windows

Opened this issue · 0 comments

The Test FileUtilsText#testIsWritableDir fails on Windows with an UnsupportedOperationException. POSIX file attributes cannot be set here using Files#setPosixFilePermissions

A simple workaround would be to disable the test on Windows completely for now using

@Test
@DisabledOnOs(OS.WINDOWS)
void testIsWriteableDir() {

Any workarounds such as modifying ACLs etc. on Windows would become more complicated to fix.