Skip to content

Commit 621b1b0

Browse files
committed
Move springNoConfigApplicationContext constant from utbot-testing to utbot-spring-test
1 parent 3888a04 commit 621b1b0

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

utbot-spring-test/src/test/kotlin/org/utbot/examples/spring/autowiring/SpringNoConfigUtValueTestCaseChecker.kt

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,20 @@
11
package org.utbot.examples.spring.autowiring
22

33
import org.utbot.examples.spring.utils.standardSpringTestingConfigurations
4+
import org.utbot.framework.context.spring.SpringApplicationContextImpl
5+
import org.utbot.framework.plugin.api.SpringSettings
6+
import org.utbot.framework.plugin.api.SpringTestType
47
import org.utbot.testing.UtValueTestCaseChecker
5-
import org.utbot.testing.springNoConfigApplicationContext
8+
import org.utbot.testing.defaultApplicationContext
69
import kotlin.reflect.KClass
710

11+
val springNoConfigApplicationContext = SpringApplicationContextImpl(
12+
delegateContext = defaultApplicationContext,
13+
springTestType = SpringTestType.UNIT_TEST,
14+
springSettings = SpringSettings.AbsentSpringSettings,
15+
beanDefinitions = emptyList()
16+
)
17+
818
abstract class SpringNoConfigUtValueTestCaseChecker(
919
testClass: KClass<*>
1020
) : UtValueTestCaseChecker(

utbot-testing/src/main/kotlin/org/utbot/testing/Configurations.kt

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,8 @@ import org.utbot.framework.codegen.domain.ParametrizedTestSource
44
import org.utbot.framework.codegen.domain.ProjectType
55
import org.utbot.framework.context.simple.SimpleApplicationContext
66
import org.utbot.framework.context.simple.SimpleMockerContext
7-
import org.utbot.framework.context.spring.SpringApplicationContextImpl
87
import org.utbot.framework.plugin.api.CodegenLanguage
98
import org.utbot.framework.plugin.api.MockStrategyApi
10-
import org.utbot.framework.plugin.api.SpringSettings
11-
import org.utbot.framework.plugin.api.SpringTestType
129

1310
interface AbstractConfiguration {
1411
val projectType: ProjectType
@@ -48,10 +45,3 @@ val defaultApplicationContext = SimpleApplicationContext(
4845
staticsMockingIsConfigured = true,
4946
)
5047
)
51-
52-
val springNoConfigApplicationContext = SpringApplicationContextImpl(
53-
delegateContext = defaultApplicationContext,
54-
springTestType = SpringTestType.UNIT_TEST,
55-
springSettings = SpringSettings.AbsentSpringSettings,
56-
beanDefinitions = emptyList()
57-
)

0 commit comments

Comments
 (0)