[tests] Remove the File.isDirectory check when creating mockJDK paths

- This check makes tests fail during initialization for all plugins developed outside the monorepo, where these mockJDK directories do not exist.

GitOrigin-RevId: 0ecabe8e238581838a14a912bce341b30b153b14
This commit is contained in:
Vasil Vasilev
2025-07-11 17:31:56 +00:00
committed by intellij-monorepo-bot
parent 5479b3cde8
commit 97cb1e3deb
@@ -272,11 +272,7 @@ public final class IdeaTestUtil {
return BazelTestUtil.findRunfilesDirectoryUnderCommunityOrUltimate("java/" + name).toFile();
}
File file = new File(PlatformTestUtil.getCommunityPath(), "java/" + name);
if (!file.isDirectory()) {
throw new RuntimeException("Can't find JDK directory for " + name + " at " + file);
}
return file;
return new File(PlatformTestUtil.getCommunityPath(), "java/" + name);
}
public static void addWebJarsToModule(@NotNull Module module) {