summaryrefslogtreecommitdiff
path: root/plugins/testng/src/com/theoryinpractice/testng/TestNGReferenceContributor.java
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/testng/src/com/theoryinpractice/testng/TestNGReferenceContributor.java')
-rw-r--r--plugins/testng/src/com/theoryinpractice/testng/TestNGReferenceContributor.java2
1 files changed, 1 insertions, 1 deletions
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;
}
}