Skip to content

Commit

Permalink
[kotlin] Allow to select classpath to run tests with `KotlinPluginUni…
Browse files Browse the repository at this point in the history
…tTest` annotation

* #FL-30263

GitOrigin-RevId: b5123111ba2645c8cc969c0d6ef23487dde059e9
  • Loading branch information
PaGr0m authored and intellij-monorepo-bot committed Dec 9, 2024
1 parent 208e337 commit 19a9301
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import org.jetbrains.kotlin.platform.jvm.isJvm
import org.jetbrains.kotlin.psi.KtFile

@ApiStatus.Internal
class KotlinJUnitRunConfigurationProducer() : LazyRunConfigurationProducer<JUnitConfiguration>() {
class KotlinJUnitRunConfigurationProducer private constructor(): LazyRunConfigurationProducer<JUnitConfiguration>() {
override fun getConfigurationFactory(): ConfigurationFactory {
return JUnitConfigurationType.getInstance().configurationFactories[0]
}
Expand Down Expand Up @@ -85,7 +85,7 @@ class KotlinJUnitRunConfigurationProducer() : LazyRunConfigurationProducer<JUnit
return configurationModule == context.location?.module?.takeIf { it.platform.isJvm() } || configurationModule == predefinedModule
}

override fun setupConfigurationFromContext(
public override fun setupConfigurationFromContext(
configuration: JUnitConfiguration,
context: ConfigurationContext,
sourceElement: Ref<PsiElement>
Expand Down

0 comments on commit 19a9301

Please sign in to comment.