File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
utbot-intellij/src/main/kotlin/org/utbot/intellij/plugin/ui Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -1107,6 +1107,9 @@ class GenerateTestsDialogWindow(val model: GenerateTestsModel) : DialogWrapper(m
11071107
11081108 mockStrategies.addActionListener { _ ->
11091109 updateControlsEnabledStatus()
1110+ if (staticsMocking.isSelected && mockStrategies.item == MockStrategyApi .NO_MOCKS ) {
1111+ staticsMocking.isSelected = false
1112+ }
11101113 }
11111114
11121115 testFrameworks.addActionListener { event ->
@@ -1152,6 +1155,11 @@ class GenerateTestsDialogWindow(val model: GenerateTestsModel) : DialogWrapper(m
11521155
11531156 profileNames.text = " "
11541157 }
1158+
1159+ if (! staticsMocking.isSelected && isSpringConfigSelected()) {
1160+ staticsMocking.isSelected = true
1161+ }
1162+
11551163 updateMockStrategyList()
11561164 updateControlsEnabledStatus()
11571165 }
@@ -1240,9 +1248,7 @@ class GenerateTestsDialogWindow(val model: GenerateTestsModel) : DialogWrapper(m
12401248
12411249 private fun updateStaticMockEnabled () {
12421250 val mockStrategyIsSupported = mockStrategies.item != MockStrategyApi .NO_MOCKS
1243-
12441251 staticsMocking.isEnabled = mockStrategyIsSupported && ! isSpringConfigSelected()
1245- staticsMocking.isSelected = mockStrategyIsSupported
12461252 }
12471253
12481254 private fun updateMockStrategyList () {
You can’t perform that action at this time.
0 commit comments