Skip to content

Commit

Permalink
Merge pull request #112 from mhmyqn/develop
Browse files Browse the repository at this point in the history
Bugfix: fix assertj test engine detect defect.
  • Loading branch information
gejun123456 authored Jul 22, 2024
2 parents a4e9923 + c6df744 commit 4e6ff9d
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@

package com.bruce.intellijplugin.generatesetter.actions;

import java.util.HashSet;
import java.util.Map;
import java.util.Set;

import com.bruce.intellijplugin.generatesetter.CommonConstants;
import com.bruce.intellijplugin.generatesetter.GenerateAllHandlerAdapter;
import com.google.common.collect.ImmutableMap;
Expand All @@ -34,10 +38,6 @@
import com.intellij.psi.search.PsiShortNamesCache;
import org.jetbrains.annotations.NotNull;

import java.util.HashSet;
import java.util.Map;
import java.util.Set;

import static com.bruce.intellijplugin.generatesetter.actions.AssertAllGetterAction.TestEngine.ASSERT;
import static com.bruce.intellijplugin.generatesetter.actions.AssertAllGetterAction.TestEngine.ASSERTJ;
import static com.bruce.intellijplugin.generatesetter.actions.AssertAllGetterAction.TestEngine.JUNIT4;
Expand Down Expand Up @@ -145,14 +145,13 @@ private TestEngine detectCurrentTestEngineInternal(Project project, PsiFile cont
.getClassesByName("Assertions", searchScope);

for (PsiClass psiClass : lists) {
if ("org.assertj.core.api.Assertions".equals(psiClass.getName())) {
if ("org.assertj.core.api.Assertions".equals(psiClass.getQualifiedName())) {
detectImportedEngines(importList);
return ASSERTJ;
}
}
}


if (importList != null) {
detectImportedEngines(importList);

Expand Down

0 comments on commit 4e6ff9d

Please sign in to comment.