diff --git a/utbot-framework/src/main/kotlin/org/utbot/framework/context/JavaFuzzingContext.kt b/utbot-framework/src/main/kotlin/org/utbot/framework/context/JavaFuzzingContext.kt index 51bbd22553..ee4f57acbf 100644 --- a/utbot-framework/src/main/kotlin/org/utbot/framework/context/JavaFuzzingContext.kt +++ b/utbot-framework/src/main/kotlin/org/utbot/framework/context/JavaFuzzingContext.kt @@ -1,6 +1,5 @@ package org.utbot.framework.context -import org.utbot.engine.MockStrategy import org.utbot.framework.plugin.api.ClassId import org.utbot.framework.plugin.api.EnvironmentModels import org.utbot.framework.plugin.api.ExecutableId @@ -12,7 +11,6 @@ import org.utbot.instrumentation.instrumentation.execution.UtConcreteExecutionRe interface JavaFuzzingContext { val classUnderTest: ClassId - val mockStrategy: MockStrategy val idGenerator: IdentityPreservingIdGenerator val valueProvider: JavaValueProvider diff --git a/utbot-framework/src/main/kotlin/org/utbot/framework/context/simple/SimpleJavaFuzzingContext.kt b/utbot-framework/src/main/kotlin/org/utbot/framework/context/simple/SimpleJavaFuzzingContext.kt index 2c885d5ea0..8951c65d5e 100644 --- a/utbot-framework/src/main/kotlin/org/utbot/framework/context/simple/SimpleJavaFuzzingContext.kt +++ b/utbot-framework/src/main/kotlin/org/utbot/framework/context/simple/SimpleJavaFuzzingContext.kt @@ -1,6 +1,5 @@ package org.utbot.framework.context.simple -import org.utbot.engine.MockStrategy import org.utbot.framework.context.JavaFuzzingContext import org.utbot.framework.plugin.api.ClassId import org.utbot.framework.plugin.api.EnvironmentModels @@ -15,7 +14,6 @@ import org.utbot.instrumentation.instrumentation.execution.UtConcreteExecutionRe class SimpleJavaFuzzingContext( override val classUnderTest: ClassId, - override val mockStrategy: MockStrategy, override val idGenerator: IdentityPreservingIdGenerator, ) : JavaFuzzingContext { override val valueProvider: JavaValueProvider = diff --git a/utbot-spring-framework/src/main/kotlin/org/utbot/framework/context/spring/SpringApplicationContextImpl.kt b/utbot-spring-framework/src/main/kotlin/org/utbot/framework/context/spring/SpringApplicationContextImpl.kt index 6bf72f78a8..aca0011b85 100644 --- a/utbot-spring-framework/src/main/kotlin/org/utbot/framework/context/spring/SpringApplicationContextImpl.kt +++ b/utbot-spring-framework/src/main/kotlin/org/utbot/framework/context/spring/SpringApplicationContextImpl.kt @@ -76,7 +76,7 @@ class SpringApplicationContextImpl( fuzzingContext .useMocks { type -> ReplacedFuzzedTypeFlag !in type.properties && - fuzzingContext.mockStrategy.eligibleToMock( + mockStrategy.eligibleToMock( classToMock = type.classId, classUnderTest = fuzzingContext.classUnderTest )