[FIR IDE] Move test configurators as constructor parameters

This commit is contained in:
Yan Zhulanow
2021-10-19 23:02:21 +09:00
committed by teamcityserver
parent 8f39640237
commit 2894f87541
46 changed files with 72 additions and 167 deletions
@@ -51,7 +51,7 @@ interface FrontendApiTestConfiguratorService {
fun prepareTestFiles(files: List<KtFile>, module: TestModule, testServices: TestServices) {}
}
abstract class AbstractFrontendApiTest : TestWithDisposable() {
abstract class AbstractFrontendApiTest(val configurator: FrontendApiTestConfiguratorService) : TestWithDisposable() {
protected open val enableTestInDependedMode: Boolean = true
protected lateinit var testInfo: KotlinTestInfo
@@ -62,8 +62,6 @@ abstract class AbstractFrontendApiTest : TestWithDisposable() {
protected lateinit var testDataPath: Path
private set
protected abstract val configurator: FrontendApiTestConfiguratorService
protected open fun configureTest(builder: TestConfigurationBuilder) {
with(configurator) {
builder.configureTest(disposable)