Skip to content

Commit db2bd12

Browse files
committed
Add TODO regarding overall Spring architecture
1 parent f0d1512 commit db2bd12

File tree

1 file changed

+9
-0
lines changed
  • utbot-framework-api/src/main/kotlin/org/utbot/framework/plugin/api

1 file changed

+9
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1292,6 +1292,15 @@ sealed class TypeReplacementApproach {
12921292
* @param beanDefinitions describes bean definitions (bean name, type, some optional additional data)
12931293
* @param shouldUseImplementors describes it we want to replace interfaces with injected types or not
12941294
*/
1295+
// TODO move it to utbot-framework so we can get use it as abstract factory
1296+
// to get rid of numerous `when`s and polymorphically create things like:
1297+
// - Instrumentation<UtConcreteExecutionResult>
1298+
// - FuzzedType (to get rid of thisInstanceFuzzedTypeWrapper)
1299+
// - JavaValueProvider
1300+
// - CgVariableConstructor
1301+
// - CodeGeneratorResult (generateForSpringClass)
1302+
// Right now this refactoring is block because interface need to be extracted and moved to utbot-framework-api
1303+
// As an alternative we can just move ApplicationContext itself to utbot-framework
12951304
class SpringApplicationContext(
12961305
mockInstalled: Boolean,
12971306
staticsMockingIsConfigured: Boolean,

0 commit comments

Comments
 (0)