From cede63a3710e88e6334927e8868741a8872f8f11 Mon Sep 17 00:00:00 2001 From: Arkadii Sapozhnikov Date: Sun, 14 Apr 2024 16:41:47 +0100 Subject: [PATCH] fix junit 4 groupId name --- .../org/jetbrains/research/testspark/core/data/JUnitVersion.kt | 2 +- .../org/jetbrains/research/testspark/display/JUnitCombobox.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/kotlin/org/jetbrains/research/testspark/core/data/JUnitVersion.kt b/core/src/main/kotlin/org/jetbrains/research/testspark/core/data/JUnitVersion.kt index 6bcd96ac2..c0afd0c23 100644 --- a/core/src/main/kotlin/org/jetbrains/research/testspark/core/data/JUnitVersion.kt +++ b/core/src/main/kotlin/org/jetbrains/research/testspark/core/data/JUnitVersion.kt @@ -35,7 +35,7 @@ enum class JUnitVersion( RunWithAnnotationMeta("ExtendWith", "import org.junit.jupiter.api.extension.ExtendWith;"), ), JUnit4( - "junit", + "junit:junit", 4, setOf( JarLibraryDescriptor( diff --git a/src/main/kotlin/org/jetbrains/research/testspark/display/JUnitCombobox.kt b/src/main/kotlin/org/jetbrains/research/testspark/display/JUnitCombobox.kt index 2ae3a1c62..cc218f7c8 100644 --- a/src/main/kotlin/org/jetbrains/research/testspark/display/JUnitCombobox.kt +++ b/src/main/kotlin/org/jetbrains/research/testspark/display/JUnitCombobox.kt @@ -61,7 +61,7 @@ class JUnitCombobox(val e: AnActionEvent) : ComboBox(JUnitVersion. for (orderEntry in ModuleRootManager.getInstance(module).orderEntries) { if (orderEntry is LibraryOrderEntry) { val libraryName = orderEntry.library?.name ?: continue - for (junit in JUnitVersion.values()) { + for (junit in JUnitVersion.entries) { if (libraryName.contains(junit.groupId)) { detected.add(junit) }