File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
utbot-framework/src/main/kotlin/org/utbot/engine
utbot-framework-api/src/main/kotlin/org/utbot/framework/plugin/api Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1200,6 +1200,7 @@ class SpringApplicationContext(
1200
1200
val beanQualifiedNames : List <String > = emptyList(),
1201
1201
val shouldUseImplementors : Boolean ,
1202
1202
): ApplicationContext(mockInstalled, staticsMockingIsConfigured) {
1203
+
1203
1204
private val springInjectedClasses: List <ClassId > by lazy {
1204
1205
beanQualifiedNames
1205
1206
.map { fqn -> utContext.classLoader.loadClass(fqn) }
Original file line number Diff line number Diff line change @@ -1481,12 +1481,11 @@ class Traverser(
1481
1481
return it
1482
1482
}
1483
1483
1484
- // In Spring application we may rely on concrete types only
1485
- // if this type is obtained from bean definitions,
1486
- // this has already been checked in
1487
- val allowsConcreteTypes = applicationContext !is SpringApplicationContext
1484
+ // In Spring application we may rely on concrete types obtained from bean definitions only,
1485
+ // and this potential replacement has already been suggested in the beginning of the method
1486
+ val useConcreteTypes = applicationContext !is SpringApplicationContext
1488
1487
1489
- if (allowsConcreteTypes && typeStorage.possibleConcreteTypes.any()) {
1488
+ if (useConcreteTypes && typeStorage.possibleConcreteTypes.any()) {
1490
1489
// If we have this$0 with UtArrayList type, we have to create such instance.
1491
1490
// We should create an object with typeStorage of all possible real types and concrete implementation
1492
1491
// Otherwise we'd have either a wrong type in the resolver, or missing method like 'preconditionCheck'.
You can’t perform that action at this time.
0 commit comments