This commit is contained in:
Anna Kozlova
2012-06-06 18:42:52 +04:00
parent e76b6f8dec
commit 9f5f478acf
@@ -107,8 +107,8 @@ public class TestNGResults extends TestResultsPanel implements TestFrameworkRunn
final String method = ((TestResultMessage)result).getMethod();
if (method != null) {
final PsiMethod[] psiMethods = psiClass.findMethodsByName(method, false);
for (PsiMethod psiMethod : psiMethods) {
psiMethod.navigate(true);
if (psiMethods.length > 0) {
psiMethods[0].navigate(true);
return;
}
}