InheritedJdkTest.test1: prevent name conflicts between used JDKS (both are 1.7), not it's 1.7 and 1.8

It wasn't a problem before tree project model, but now SDKs are resolved by name there

GitOrigin-RevId: 024173489f2abfecbf619b79dde9a8dca25a0bad
This commit is contained in:
Leonid Shalupov
2019-07-17 19:40:28 +02:00
committed by intellij-monorepo-bot
parent 4871612ba0
commit 6b761e5ef9

View File

@@ -55,7 +55,7 @@ public class InheritedJdkTest extends JavaModuleTestCase {
assertFalse("JDK is not inherited after setJdk(null)", rootManager.isSdkInherited());
assertNull("No JDK assigned", rootManager.getSdk());
final Sdk jdk1 = IdeaTestUtil.getMockJdk17();
final Sdk jdk1 = IdeaTestUtil.getMockJdk18();
ApplicationManager.getApplication().runWriteAction(() -> ProjectJdkTable.getInstance().addJdk(jdk1, getTestRootDisposable()));
ModuleRootModificationUtil.setModuleSdk(myModule, jdk1);