Commit 5323b5c6 authored by Dmitry Gridin's avatar Dmitry Gridin Committed by intellij-monorepo-bot
Browse files

[tests] add descriptor with stdlib-jdk8

GitOrigin-RevId: 59300815ff9f94c2a1c86213535ff9423a8f527c
parent 3e78fb1b
Showing with 9 additions and 0 deletions
+9 -0
......@@ -216,6 +216,9 @@ abstract class KotlinLightCodeInsightFixtureTestCase : KotlinLightCodeInsightFix
InTextDirectivesUtils.isDirectiveDefined(fileText, "RUNTIME_WITH_SCRIPT_RUNTIME") ->
KotlinWithJdkAndRuntimeLightProjectDescriptor.INSTANCE_WITH_SCRIPT_RUNTIME
InTextDirectivesUtils.isDirectiveDefined(fileText, "RUNTIME_WITH_STDLIB_JDK8") ->
KotlinWithJdkAndRuntimeLightProjectDescriptor.INSTANCE_WITH_STDLIB_JDK8
InTextDirectivesUtils.isDirectiveDefined(fileText, "RUNTIME") ||
InTextDirectivesUtils.isDirectiveDefined(fileText, "WITH_RUNTIME") ->
if (minJavaVersion != null) {
......
......@@ -34,6 +34,12 @@ public class KotlinWithJdkAndRuntimeLightProjectDescriptor extends KotlinJdkAndL
Collections.singletonList(KotlinArtifacts.getInstance().getKotlinStdlibSources())
);
@NotNull
public static final KotlinWithJdkAndRuntimeLightProjectDescriptor INSTANCE_WITH_STDLIB_JDK8 = new KotlinWithJdkAndRuntimeLightProjectDescriptor(
List.of(KotlinArtifacts.getInstance().getKotlinStdlib(), KotlinArtifacts.getInstance().getKotlinStdlibJdk8()),
List.of(KotlinArtifacts.getInstance().getKotlinStdlibSources(), KotlinArtifacts.getInstance().getKotlinStdlibJdk8Sources())
);
@NotNull
public static final KotlinWithJdkAndRuntimeLightProjectDescriptor INSTANCE_NO_SOURCES = new KotlinWithJdkAndRuntimeLightProjectDescriptor(
INSTANCE.getLibraryFiles(), Collections.emptyList()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment