mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
javafx: don't test project jdk in assumption that java.home contains javafx dependency (IJI-365)
GitOrigin-RevId: db2e14b563e1c4c8beeb9d060f6ecb99b52f8e4b
This commit is contained in:
committed by
intellij-monorepo-bot
parent
7fdbbc6abd
commit
83cb3d2793
-17
@@ -1,11 +1,9 @@
|
||||
package org.jetbrains.plugins.javaFX.fxml;
|
||||
|
||||
import com.intellij.java.codeInsight.daemon.impl.SdkSetupNotificationTestBase;
|
||||
import com.intellij.openapi.projectRoots.Sdk;
|
||||
import com.intellij.openapi.roots.ModuleRootModificationUtil;
|
||||
import com.intellij.testFramework.IdeaTestUtil;
|
||||
import com.intellij.ui.EditorNotificationPanel;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* @author Pavel.Dolgov
|
||||
@@ -19,23 +17,8 @@ public class JavaFxSdkSetupNotificationTest extends SdkSetupNotificationTestBase
|
||||
assertNull(panel);
|
||||
}
|
||||
|
||||
public void testJavaFxInProjectSdk() {
|
||||
final EditorNotificationPanel panel = configureBySdkAndText(getTestJdk(), false, "sample.fxml", SAMPLE_FXML);
|
||||
assertNull(panel);
|
||||
}
|
||||
|
||||
public void testJavaFxInModuleSdk() {
|
||||
final EditorNotificationPanel panel = configureBySdkAndText(getTestJdk(), true, "sample.fxml", SAMPLE_FXML);
|
||||
assertNull(panel);
|
||||
}
|
||||
|
||||
public void testNoJavaFx() {
|
||||
final EditorNotificationPanel panel = configureBySdkAndText(IdeaTestUtil.getMockJdk17(), false, "sample.fxml", SAMPLE_FXML);
|
||||
assertSdkSetupPanelShown(panel, "Setup SDK");
|
||||
}
|
||||
|
||||
@NotNull
|
||||
private static Sdk getTestJdk() {
|
||||
return IdeaTestUtil.createMockJdk("testJdk", System.getProperty("java.home"), true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user