Skip to content

Commit 8d9930f

Browse files
committed
Group contexts in packages by their kind (simple and Spring)
1 parent 63a477f commit 8d9930f

File tree

10 files changed

+20
-17
lines changed

10 files changed

+20
-17
lines changed

utbot-framework/src/main/kotlin/org/utbot/engine/Mocks.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import kotlinx.collections.immutable.persistentListOf
1919
import org.utbot.common.nameOfPackage
2020
import org.utbot.engine.types.OBJECT_TYPE
2121
import org.utbot.engine.util.mockListeners.MockListenerController
22-
import org.utbot.framework.context.mocker.MockerContext
22+
import org.utbot.framework.context.MockerContext
2323
import org.utbot.framework.plugin.api.util.isInaccessibleViaReflection
2424
import soot.BooleanType
2525
import soot.RefType

utbot-framework/src/main/kotlin/org/utbot/engine/UtBotSymbolicEngine.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import org.utbot.framework.UtSettings.pathSelectorType
3434
import org.utbot.framework.UtSettings.processUnknownStatesDuringConcreteExecution
3535
import org.utbot.framework.UtSettings.useDebugVisualization
3636
import org.utbot.framework.context.ApplicationContext
37-
import org.utbot.framework.context.SpringApplicationContext
37+
import org.utbot.framework.context.spring.SpringApplicationContext
3838
import org.utbot.framework.plugin.api.*
3939
import org.utbot.framework.plugin.api.Step
4040
import org.utbot.framework.plugin.api.util.*

utbot-framework/src/main/kotlin/org/utbot/framework/context/ApplicationContext.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package org.utbot.framework.context
22

3-
import org.utbot.framework.context.mocker.MockerContext
43
import org.utbot.framework.plugin.api.ClassId
54
import org.utbot.framework.plugin.api.CodeGenerationContext
65
import org.utbot.framework.plugin.api.TypeReplacementMode

utbot-framework/src/main/kotlin/org/utbot/framework/context/mocker/MockerContext.kt renamed to utbot-framework/src/main/kotlin/org/utbot/framework/context/MockerContext.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package org.utbot.framework.context.mocker
1+
package org.utbot.framework.context
22

33
interface MockerContext {
44
/**

utbot-framework/src/main/kotlin/org/utbot/framework/context/SimpleApplicationContext.kt renamed to utbot-framework/src/main/kotlin/org/utbot/framework/context/simple/SimpleApplicationContext.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
package org.utbot.framework.context
1+
package org.utbot.framework.context.simple
22

33
import org.utbot.framework.UtSettings
4-
import org.utbot.framework.context.mocker.MockerContext
4+
import org.utbot.framework.context.ApplicationContext
5+
import org.utbot.framework.context.MockerContext
56
import org.utbot.framework.isFromTrustedLibrary
67
import org.utbot.framework.plugin.api.ClassId
78
import org.utbot.framework.plugin.api.TypeReplacementMode

utbot-framework/src/main/kotlin/org/utbot/framework/context/mocker/SimpleMockerContext.kt renamed to utbot-framework/src/main/kotlin/org/utbot/framework/context/simple/SimpleMockerContext.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
package org.utbot.framework.context.mocker
1+
package org.utbot.framework.context.simple
2+
3+
import org.utbot.framework.context.MockerContext
24

35
class SimpleMockerContext(
46
override val mockFrameworkInstalled: Boolean,

utbot-framework/src/main/kotlin/org/utbot/framework/context/SpringApplicationContext.kt renamed to utbot-framework/src/main/kotlin/org/utbot/framework/context/spring/SpringApplicationContext.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
package org.utbot.framework.context
1+
package org.utbot.framework.context.spring
22

33
import mu.KotlinLogging
44
import org.utbot.common.isAbstract
55
import org.utbot.common.isStatic
6+
import org.utbot.framework.context.ApplicationContext
67
import org.utbot.framework.plugin.api.BeanDefinitionData
78
import org.utbot.framework.plugin.api.ClassId
89
import org.utbot.framework.plugin.api.SpringCodeGenerationContext

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ import org.utbot.framework.UtSettings.disableCoroutinesDebug
2626
import org.utbot.framework.UtSettings.utBotGenerationTimeoutInMillis
2727
import org.utbot.framework.UtSettings.warmupConcreteExecution
2828
import org.utbot.framework.context.ApplicationContext
29-
import org.utbot.framework.context.SimpleApplicationContext
30-
import org.utbot.framework.context.SpringApplicationContext
29+
import org.utbot.framework.context.simple.SimpleApplicationContext
30+
import org.utbot.framework.context.simple.SimpleMockerContext
31+
import org.utbot.framework.context.spring.SpringApplicationContext
3132
import org.utbot.framework.plugin.api.utils.checkFrameworkDependencies
3233
import org.utbot.framework.minimization.minimizeTestCase
3334
import org.utbot.framework.plugin.api.util.SpringModelUtils.entityClassIds

utbot-intellij/src/main/kotlin/org/utbot/intellij/plugin/generator/UtTestsDialogProcessor.kt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,9 @@ import org.utbot.framework.CancellationStrategyType.NONE
4848
import org.utbot.framework.CancellationStrategyType.SAVE_PROCESSED_RESULTS
4949
import org.utbot.framework.UtSettings
5050
import org.utbot.framework.codegen.domain.ProjectType.*
51-
import org.utbot.framework.context.ApplicationContext
52-
import org.utbot.framework.context.SimpleApplicationContext
53-
import org.utbot.framework.context.SpringApplicationContext
54-
import org.utbot.framework.context.mocker.SimpleMockerContext
51+
import org.utbot.framework.context.simple.SimpleApplicationContext
52+
import org.utbot.framework.context.spring.SpringApplicationContext
53+
import org.utbot.framework.context.simple.SimpleMockerContext
5554
import org.utbot.framework.plugin.api.*
5655
import org.utbot.framework.plugin.api.SpringSettings.*
5756
import org.utbot.framework.plugin.api.SpringConfiguration.*

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ import org.utbot.framework.codegen.generator.SpringCodeGenerator
1616
import org.utbot.framework.codegen.services.language.CgLanguageAssistant
1717
import org.utbot.framework.codegen.tree.ututils.UtilClassKind
1818
import org.utbot.framework.codegen.tree.ututils.UtilClassKind.Companion.UT_UTILS_INSTANCE_NAME
19-
import org.utbot.framework.context.SimpleApplicationContext
20-
import org.utbot.framework.context.SpringApplicationContext
21-
import org.utbot.framework.context.mocker.SimpleMockerContext
19+
import org.utbot.framework.context.simple.SimpleApplicationContext
20+
import org.utbot.framework.context.spring.SpringApplicationContext
21+
import org.utbot.framework.context.simple.SimpleMockerContext
2222
import org.utbot.framework.plugin.api.*
2323
import org.utbot.framework.plugin.api.util.UtContext
2424
import org.utbot.framework.plugin.api.util.description

0 commit comments

Comments
 (0)