testng: enable navigation on disabled methods

This commit is contained in:
Anna Kozlova
2014-08-26 16:19:22 +04:00
parent df85632e9d
commit cdb8501d0b
@@ -170,7 +170,7 @@ public class TestNGReferenceContributor extends PsiReferenceContributor {
if (cls != null) {
PsiMethod[] methods = cls.findMethodsByName(methodName, true);
for (PsiMethod method : methods) {
if (TestNGUtil.hasTest(method) || TestNGUtil.hasConfig(method)) {
if (TestNGUtil.hasTest(method, false) || TestNGUtil.hasConfig(method)) {
return method;
}
}