All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.intellij.execution.JUnitRecognizer Maven / Gradle / Ivy

Go to download

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