![JAR search and dependency download from the Maven repository](/logo.png)
com.intellij.execution.JUnitRecognizer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of execution-openapi Show documentation
Show all versions of execution-openapi Show documentation
A packaging of the IntelliJ Community Edition execution-openapi library.
This is release number 1 of trunk branch 142.
The newest version!
package com.intellij.execution;
import com.intellij.openapi.extensions.ExtensionPointName;
import com.intellij.psi.PsiClass;
import com.intellij.psi.PsiMethod;
import org.jetbrains.annotations.NotNull;
/**
* @author Sergey Evdokimov
*/
public abstract class JUnitRecognizer {
public static final ExtensionPointName EP_NAME = ExtensionPointName.create("com.intellij.junitRecognizer");
public abstract boolean isTestAnnotated(@NotNull PsiMethod method);
public static boolean willBeAnnotatedAfterCompilation(@NotNull PsiMethod method) {
for (JUnitRecognizer jUnitRecognizer : EP_NAME.getExtensions()) {
if (jUnitRecognizer.isTestAnnotated(method)) {
return true;
}
}
return false;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy