Skip to content

Commit

Permalink
Merge pull request #164 from JetBrains-Research/arksap2002/bugs/junit…
Browse files Browse the repository at this point in the history
…4-detector-fix

Fix junit 4 decetion
pderakhshanfar authored Apr 15, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
2 parents ea9a5d6 + cede63a commit 5682e67
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -35,7 +35,7 @@ enum class JUnitVersion(
RunWithAnnotationMeta("ExtendWith", "import org.junit.jupiter.api.extension.ExtendWith;"),
),
JUnit4(
"junit",
"junit:junit",
4,
setOf(
JarLibraryDescriptor(
Original file line number Diff line number Diff line change
@@ -61,7 +61,7 @@ class JUnitCombobox(val e: AnActionEvent) : ComboBox<JUnitVersion>(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)
}

0 comments on commit 5682e67

Please sign in to comment.