From 9a03b53248ca7e53f60bbee8259c80ff7deb22f1 Mon Sep 17 00:00:00 2001 From: anna Date: Wed, 27 Jan 2010 19:01:52 +0300 Subject: [PATCH] extend test framework: isTestMethodOrConfig --- java/openapi/src/com/intellij/codeInsight/TestUtil.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/java/openapi/src/com/intellij/codeInsight/TestUtil.java b/java/openapi/src/com/intellij/codeInsight/TestUtil.java index 45e980e1aa32..b22d4f2f211f 100644 --- a/java/openapi/src/com/intellij/codeInsight/TestUtil.java +++ b/java/openapi/src/com/intellij/codeInsight/TestUtil.java @@ -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; + } } \ No newline at end of file