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
1107
1107
1108
1108
mockStrategies.addActionListener { _ ->
1109
1109
updateControlsEnabledStatus()
1110
+ if (staticsMocking.isSelected && mockStrategies.item == MockStrategyApi .NO_MOCKS ) {
1111
+ staticsMocking.isSelected = false
1112
+ }
1110
1113
}
1111
1114
1112
1115
testFrameworks.addActionListener { event ->
@@ -1152,6 +1155,11 @@ class GenerateTestsDialogWindow(val model: GenerateTestsModel) : DialogWrapper(m
1152
1155
1153
1156
profileNames.text = " "
1154
1157
}
1158
+
1159
+ if (! staticsMocking.isSelected && isSpringConfigSelected()) {
1160
+ staticsMocking.isSelected = true
1161
+ }
1162
+
1155
1163
updateMockStrategyList()
1156
1164
updateControlsEnabledStatus()
1157
1165
}
@@ -1240,9 +1248,7 @@ class GenerateTestsDialogWindow(val model: GenerateTestsModel) : DialogWrapper(m
1240
1248
1241
1249
private fun updateStaticMockEnabled () {
1242
1250
val mockStrategyIsSupported = mockStrategies.item != MockStrategyApi .NO_MOCKS
1243
-
1244
1251
staticsMocking.isEnabled = mockStrategyIsSupported && ! isSpringConfigSelected()
1245
- staticsMocking.isSelected = mockStrategyIsSupported
1246
1252
}
1247
1253
1248
1254
private fun updateMockStrategyList () {
You can’t perform that action at this time.
0 commit comments