diff --git a/intellij-plugin-verifier/verifier-test/src/test/java/com/jetbrains/pluginverifier/tests/BaseBytecodeTest.kt b/intellij-plugin-verifier/verifier-test/src/test/java/com/jetbrains/pluginverifier/tests/BaseBytecodeTest.kt index fe663dc8a..4825c8dc2 100644 --- a/intellij-plugin-verifier/verifier-test/src/test/java/com/jetbrains/pluginverifier/tests/BaseBytecodeTest.kt +++ b/intellij-plugin-verifier/verifier-test/src/test/java/com/jetbrains/pluginverifier/tests/BaseBytecodeTest.kt @@ -201,8 +201,10 @@ abstract class BaseBytecodeTest { /** * Builds an instance of the IDE with specified bundled plugins. * + * By default, this IDE contains the `com.intellij` plugin available in the `lib/idea.jar`. + * * @param bundledPlugins List of plugins to include in the `plugins` directory. - * @param bundledCorePlugins List of plugins to include in the `lib` directory of the IDE. + * @param additionalCorePlugins Additional plugins to include in the `lib` directory of the IDE. * @param includeKotlinStdLib Whether to include the Kotlin standard library. * @param productInfo JSON contents of `product-info.json` * @param version The version string of this IDE. @@ -211,7 +213,7 @@ abstract class BaseBytecodeTest { */ internal fun buildIdeWithBundledPlugins( bundledPlugins: List = emptyList(), - bundledCorePlugins: List = emptyList(), + additionalCorePlugins: List = emptyList(), includeKotlinStdLib: Boolean = false, productInfo: String? = null, version: String = "IU-192.1", @@ -237,7 +239,7 @@ abstract class BaseBytecodeTest { } } } - bundledCorePlugins.forEach { plugin -> + additionalCorePlugins.forEach { plugin -> plugin.buildJar(this) } if (includeKotlinStdLib) { diff --git a/intellij-plugin-verifier/verifier-test/src/test/java/com/jetbrains/pluginverifier/tests/JsonPluginUsageTest.kt b/intellij-plugin-verifier/verifier-test/src/test/java/com/jetbrains/pluginverifier/tests/JsonPluginUsageTest.kt index 4b77b6193..a172ffcca 100644 --- a/intellij-plugin-verifier/verifier-test/src/test/java/com/jetbrains/pluginverifier/tests/JsonPluginUsageTest.kt +++ b/intellij-plugin-verifier/verifier-test/src/test/java/com/jetbrains/pluginverifier/tests/JsonPluginUsageTest.kt @@ -72,7 +72,7 @@ class JsonPluginUsageTest : BaseBytecodeTest() { @Test fun `plugin uses JSON classes, JSON plugin is declared and includes classes`() { - val targetIde = buildIdeWithBundledPlugins(bundledCorePlugins = listOf(jsonPlugin)) + val targetIde = buildIdeWithBundledPlugins(additionalCorePlugins = listOf(jsonPlugin)) assertEquals(2, targetIde.bundledPlugins.size) assertVerified {