diff --git a/java/execution/impl/src/com/intellij/execution/testframework/JavaTestLocator.java b/java/execution/impl/src/com/intellij/execution/testframework/JavaTestLocator.java index ac4c581f15e9..a02ef2a4d8fd 100644 --- a/java/execution/impl/src/com/intellij/execution/testframework/JavaTestLocator.java +++ b/java/execution/impl/src/com/intellij/execution/testframework/JavaTestLocator.java @@ -67,7 +67,7 @@ public class JavaTestLocator implements SMTestLocator { PsiClass aClass = ClassUtil.findPsiClass(PsiManager.getInstance(project), className, null, true, scope); if (aClass != null) { results = ContainerUtil.newSmartList(); - PsiMethod[] methods = aClass.findMethodsByName(methodName, true); + PsiMethod[] methods = aClass.findMethodsByName(methodName.trim(), true); if (methods.length > 0) { for (PsiMethod method : methods) { results.add(paramName != null ? new PsiMemberParameterizedLocation(project, method, aClass, paramName)