Skip to content

Commit b2c3b76

Browse files
authored
Prohibit generating integration tests with XML configuration #2336 (#2342)
Prohibit generating integration tests with xml configuration
1 parent 4d1cfc8 commit b2c3b76

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

utbot-intellij/src/main/kotlin/org/utbot/intellij/plugin/ui/GenerateTestsDialogWindow.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1168,7 +1168,10 @@ class GenerateTestsDialogWindow(val model: GenerateTestsModel) : DialogWrapper(m
11681168
staticsMocking.isEnabled = false
11691169
staticsMocking.isSelected = true
11701170

1171-
springTestsType.isEnabled = !isXmlSpringConfigUsed()
1171+
springTestsType.let {
1172+
it.isEnabled = !isXmlSpringConfigUsed()
1173+
if (!it.isEnabled) springTestsType.item = SpringTestsType.defaultItem
1174+
}
11721175
profileNames.isEnabled = true
11731176
} else {
11741177
mockStrategies.item = when (model.projectType) {

0 commit comments

Comments
 (0)