Path (boolean isDirectoryBasedProject) { try { // create extra space for test with files above `getBaseDir` Path projectRoot = getTempDir().newPath().resolve("test/test/test/root"); Files.createDirectories(projectRoot); return projectRoot; } catch (IOException e) { throw new RuntimeException(e); } }