Skip to content

Commit 63a477f

Browse files
committed
Configure default ApplicationContext for TestCaseGenerator
1 parent 5f9233b commit 63a477f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

utbot-framework/src/main/kotlin/org/utbot/framework/plugin/api/TestCaseGenerator.kt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,12 @@ open class TestCaseGenerator(
7171
val engineActions: MutableList<(UtBotSymbolicEngine) -> Unit> = mutableListOf(),
7272
val isCanceled: () -> Boolean = { false },
7373
val forceSootReload: Boolean = true,
74-
val applicationContext: ApplicationContext = SimpleApplicationContext(),
74+
val applicationContext: ApplicationContext = SimpleApplicationContext(
75+
SimpleMockerContext(
76+
mockFrameworkInstalled = true,
77+
staticsMockingIsConfigured = true
78+
)
79+
),
7580
) {
7681
private val logger: KLogger = KotlinLogging.logger {}
7782
private val timeoutLogger: KLogger = KotlinLogging.logger(logger.name + ".timeout")

0 commit comments

Comments
 (0)