You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: java-extension/com.microsoft.java.test.plugin/src/main/java/com/microsoft/java/test/plugin/searcher/BaseFrameworkSearcher.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,7 @@ public String[] getTestClassAnnotations() {
44
44
@Override
45
45
publicbooleanisTestClass(ITypetype) {
46
46
for (finalStringannotation : this.getTestClassAnnotations()) {
47
-
if (TestFrameworkUtils.hasAnnotation(type, annotation)) {
47
+
if (TestFrameworkUtils.hasAnnotation(type, annotation, false/*checkHierarchy*/)) {
Copy file name to clipboardExpand all lines: java-extension/com.microsoft.java.test.plugin/src/main/java/com/microsoft/java/test/plugin/searcher/JUnit4TestSearcher.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,7 @@ public boolean isTestMethod(IMethod method) {
45
45
returnfalse;
46
46
}
47
47
for (finalStringannotation : this.testMethodAnnotations) {
48
-
if (TestFrameworkUtils.hasAnnotation(method, annotation)) {
48
+
if (TestFrameworkUtils.hasAnnotation(method, annotation, false/*checkHierarchy*/)) {
Copy file name to clipboardExpand all lines: java-extension/com.microsoft.java.test.plugin/src/main/java/com/microsoft/java/test/plugin/searcher/JUnit5TestSearcher.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -61,7 +61,7 @@ public boolean isTestMethod(IMethod method) {
61
61
returnfalse;
62
62
}
63
63
for (finalStringannotation : this.testMethodAnnotations) {
64
-
if (TestFrameworkUtils.hasAnnotation(method, annotation)) {
64
+
if (TestFrameworkUtils.hasAnnotation(method, annotation, true/*checkHierarchy*/)) {
65
65
if ("org.junit.jupiter.api.TestFactory".equals(annotation)) {
Copy file name to clipboardExpand all lines: java-extension/com.microsoft.java.test.plugin/src/main/java/com/microsoft/java/test/plugin/searcher/TestNGTestSearcher.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@ public boolean isTestMethod(IMethod method) {
43
43
returnfalse;
44
44
}
45
45
for (finalStringannotation : this.testMethodAnnotations) {
46
-
if (TestFrameworkUtils.hasAnnotation(method, annotation)) {
46
+
if (TestFrameworkUtils.hasAnnotation(method, annotation, false/*checkHierarchy*/)) {
Copy file name to clipboardExpand all lines: java-extension/com.microsoft.java.test.plugin/src/main/java/com/microsoft/java/test/plugin/util/TestFrameworkUtils.java
Copy file name to clipboardExpand all lines: java-extension/com.microsoft.java.test.plugin/src/main/java/com/microsoft/java/test/plugin/util/TestSearchUtils.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -111,7 +111,7 @@ public static List<TestItem> searchCodeLens(List<Object> arguments, IProgressMon
111
111
continue;
112
112
}
113
113
// Class annotated by @RunWith should be considered as a Suite even it has no test method children
114
-
if (TestFrameworkUtils.hasAnnotation(type, JUnit4TestSearcher.RUN_WITH)) {
114
+
if (TestFrameworkUtils.hasAnnotation(type, JUnit4TestSearcher.RUN_WITH, false/*checkHierarchy*/)) {
0 commit comments