Skip to content

Commit 715c59b

Browse files
Correct Parametrized tests checkbox functioning #933 (#938)
1 parent 75a8ccf commit 715c59b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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

+5-2
Original file line numberDiff line numberDiff line change
@@ -901,8 +901,11 @@ class GenerateTestsDialogWindow(val model: GenerateTestsModel) : DialogWrapper(m
901901
}
902902

903903
parametrizedTestSources.addActionListener { event ->
904-
val comboBox = event.source as ComboBox<*>
905-
val parametrizedTestSource = comboBox.item as ParametrizedTestSource
904+
val parametrizedTestSource = if (parametrizedTestSources.isSelected) {
905+
ParametrizedTestSource.PARAMETRIZE
906+
} else {
907+
ParametrizedTestSource.DO_NOT_PARAMETRIZE
908+
}
906909

907910
val areMocksSupported = parametrizedTestSource == ParametrizedTestSource.DO_NOT_PARAMETRIZE
908911

0 commit comments

Comments
 (0)