From cdb8501d0b8b9cee7650ec4fab8280be0ee56173 Mon Sep 17 00:00:00 2001 From: Anna Kozlova Date: Tue, 26 Aug 2014 16:19:22 +0400 Subject: [PATCH] testng: enable navigation on disabled methods --- .../com/theoryinpractice/testng/TestNGReferenceContributor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/testng/src/com/theoryinpractice/testng/TestNGReferenceContributor.java b/plugins/testng/src/com/theoryinpractice/testng/TestNGReferenceContributor.java index 0a9acf231499..6e483fb97c3d 100644 --- a/plugins/testng/src/com/theoryinpractice/testng/TestNGReferenceContributor.java +++ b/plugins/testng/src/com/theoryinpractice/testng/TestNGReferenceContributor.java @@ -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; } }