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