We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 75a8ccf commit 715c59bCopy full SHA for 715c59b
utbot-intellij/src/main/kotlin/org/utbot/intellij/plugin/ui/GenerateTestsDialogWindow.kt
@@ -901,8 +901,11 @@ class GenerateTestsDialogWindow(val model: GenerateTestsModel) : DialogWrapper(m
901
}
902
903
parametrizedTestSources.addActionListener { event ->
904
- val comboBox = event.source as ComboBox<*>
905
- val parametrizedTestSource = comboBox.item as ParametrizedTestSource
+ val parametrizedTestSource = if (parametrizedTestSources.isSelected) {
+ ParametrizedTestSource.PARAMETRIZE
906
+ } else {
907
+ ParametrizedTestSource.DO_NOT_PARAMETRIZE
908
+ }
909
910
val areMocksSupported = parametrizedTestSource == ParametrizedTestSource.DO_NOT_PARAMETRIZE
911
0 commit comments