We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
ReplacedFuzzedTypeFlag
1 parent cce1616 commit beef34fCopy full SHA for beef34f
utbot-spring-framework/src/main/kotlin/org/utbot/framework/context/spring/SpringApplicationContextImpl.kt
@@ -89,10 +89,12 @@ class SpringApplicationContextImpl(
89
.withFallback(origValueProvider)
90
.replaceTypes { description, type ->
91
typeReplacer.replaceTypeIfNeeded(type.classId)
92
- ?.takeIf { it != type.classId }
93
- ?.let { replacement ->
+ ?.let { replacementClassId ->
94
// TODO infer generic type of replacement
95
- toFuzzerType(replacement.jClass, description.typeCache).addProperties(
+ val replacement =
+ if (type.classId == replacementClassId) type
96
+ else toFuzzerType(replacementClassId.jClass, description.typeCache)
97
+ replacement.addProperties(
98
dynamicPropertiesOf(ReplacedFuzzedTypeFlag.withValue(Unit))
99
)
100
} ?: type
0 commit comments