Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 3ea574f

Browse files
Fix compilation
1 parent 81e364d commit 3ea574f

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1338,7 +1338,7 @@ class SpringApplicationContext(
13381338
val beanDefinitions: List<BeanDefinitionData> = emptyList(),
13391339
private val shouldUseImplementors: Boolean,
13401340
val typeReplacementApproach: TypeReplacementApproach,
1341-
val testType: SpringTestType
1341+
val testType: SpringTestsType
13421342
): ApplicationContext(mockInstalled, staticsMockingIsConfigured) {
13431343

13441344
companion object {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ open class TestCaseGenerator(
7171
is SpringApplicationContext -> when (val approach = applicationContext.typeReplacementApproach) {
7272
is TypeReplacementApproach.ReplaceIfPossible ->
7373
when (applicationContext.testType) {
74-
SpringTestType.UNIT_TESTS -> UtExecutionInstrumentation
75-
SpringTestType.INTEGRATION_TESTS -> SpringUtExecutionInstrumentation(UtExecutionInstrumentation, approach.config)
74+
SpringTestsType.UNIT_TESTS -> UtExecutionInstrumentation
75+
SpringTestsType.INTEGRATION_TESTS -> SpringUtExecutionInstrumentation(UtExecutionInstrumentation, approach.config)
7676
}
7777
is TypeReplacementApproach.DoNotReplace -> UtExecutionInstrumentation
7878
}

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ import org.utbot.framework.plugin.api.BeanDefinitionData
5353
import org.utbot.framework.plugin.api.ClassId
5454
import org.utbot.framework.plugin.api.JavaDocCommentStyle
5555
import org.utbot.framework.plugin.api.SpringApplicationContext
56-
import org.utbot.framework.plugin.api.SpringTestType
56+
import org.utbot.framework.plugin.api.SpringTestsType
5757
import org.utbot.framework.plugin.api.util.LockFile
5858
import org.utbot.framework.plugin.api.util.withStaticsSubstitutionRequired
5959
import org.utbot.framework.plugin.services.JdkInfoService
@@ -273,7 +273,7 @@ object UtTestsDialogProcessor {
273273
clarifiedBeanDefinitions,
274274
shouldUseImplementors,
275275
model.typeReplacementApproach,
276-
model.springTestType
276+
model.springTestsType
277277
)
278278
}
279279
else -> ApplicationContext(mockFrameworkInstalled, staticMockingConfigured)
@@ -364,19 +364,19 @@ object UtTestsDialogProcessor {
364364
}, 0, 500, TimeUnit.MILLISECONDS)
365365
try {
366366
val useEngine = when (model.projectType) {
367-
Spring -> when (model.springTestType) {
368-
SpringTestType.UNIT_TESTS -> true
369-
SpringTestType.INTEGRATION_TESTS -> false
367+
Spring -> when (model.springTestsType) {
368+
SpringTestsType.UNIT_TESTS -> true
369+
SpringTestsType.INTEGRATION_TESTS -> false
370370
}
371371
else -> true
372372
}
373373
val useFuzzing = when (model.projectType) {
374-
Spring -> when (model.springTestType) {
375-
SpringTestType.UNIT_TESTS -> when (model.typeReplacementApproach) {
374+
Spring -> when (model.springTestsType) {
375+
SpringTestsType.UNIT_TESTS -> when (model.typeReplacementApproach) {
376376
DoNotReplace -> true
377377
is ReplaceIfPossible -> false
378378
}
379-
SpringTestType.INTEGRATION_TESTS -> true
379+
SpringTestsType.INTEGRATION_TESTS -> true
380380
}
381381
else -> UtSettings.useFuzzing
382382
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /