Skip to content

Commit 662e4d3

Browse files
committed
Fixes
1 parent 6b0fb82 commit 662e4d3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

utbot-testing/src/main/kotlin/org/utbot/testing/TestCodeGeneratorPipeline.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,11 @@ class TestCodeGeneratorPipeline(private val testInfrastructureConfiguration: Tes
341341
}
342342

343343
companion object {
344-
lateinit var currentTestInfrastructureConfiguration: TestInfrastructureConfiguration
344+
private val defaultConfiguration =
345+
Configuration(CodegenLanguage.JAVA, ParametrizedTestSource.DO_NOT_PARAMETRIZE, TestExecution)
346+
347+
//TODO: this variable must be lateinit, without strange default initializer
348+
var currentTestInfrastructureConfiguration: TestInfrastructureConfiguration = configurePipeline(defaultConfiguration)
345349

346350
fun configurePipeline(configuration: AbstractConfiguration) =
347351
TestInfrastructureConfiguration(

0 commit comments

Comments
 (0)