mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
extend test framework: isTestMethodOrConfig
This commit is contained in:
@@ -60,4 +60,13 @@ public class TestUtil {
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static boolean isTestMethodOrConfig(PsiMethod psiMethod) {
|
||||
for (TestFramework framework : Extensions.getExtensions(TEST_FRAMEWORK)) {
|
||||
if (framework.isTestMethodOrConfig(psiMethod)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user