[FIR IDE] Move test configurators as constructor parameters
This commit is contained in:
committed by
teamcityserver
parent
8f39640237
commit
2894f87541
+1
-3
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user