Skip to content

Commit f9c3f98

Browse files
Already created test source root is not found in Idea project #497 (#568)
1 parent c28c4f0 commit f9c3f98

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

utbot-framework-api/src/main/kotlin/org/utbot/framework/plugin/api/Api.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1081,7 +1081,7 @@ enum class CodegenLanguage(
10811081
@Suppress("unused") override val description: String = "Generate unit tests in $displayName"
10821082
) : CodeGenerationSettingItem {
10831083
JAVA(displayName = "Java"),
1084-
KOTLIN(displayName = "Kotlin");
1084+
KOTLIN(displayName = "Kotlin (experimental)");
10851085

10861086
enum class OperatingSystem {
10871087
WINDOWS,

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import java.io.File
1414
import javax.swing.DefaultComboBoxModel
1515
import javax.swing.JList
1616
import org.utbot.common.PathUtil
17-
import org.utbot.framework.plugin.api.CodegenLanguage
1817
import org.utbot.intellij.plugin.models.GenerateTestsModel
1918
import org.utbot.intellij.plugin.ui.utils.addDedicatedTestRoot
2019
import org.utbot.intellij.plugin.ui.utils.suitableTestSourceRoots
@@ -46,7 +45,7 @@ class TestFolderComboWithBrowseButton(private val model: GenerateTestsModel) : C
4645
}
4746
}
4847

49-
val testRoots = model.testModule.suitableTestSourceRoots(CodegenLanguage.JAVA).toMutableList()
48+
val testRoots = model.testModule.suitableTestSourceRoots().toMutableList()
5049
model.testModule.addDedicatedTestRoot(testRoots)
5150
if (testRoots.isNotEmpty()) {
5251
configureRootsCombo(testRoots)

0 commit comments

Comments
 (0)