public interface TestFinder
com.intellij.testFinder
.Modifier and Type | Field and Description |
---|---|
static ExtensionPointName<TestFinder> |
EP_NAME |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<PsiElement> |
findClassesForTest(PsiElement element)
Finds classes for given test.
|
PsiElement |
findSourceElement(PsiElement from)
Retrieve the source element (PsiFile) to handle some UI elements, like the name displayed in "Choose Test for {file name}".
|
java.util.Collection<PsiElement> |
findTestsForClass(PsiElement element)
Finds tests for given class.
|
boolean |
isTest(PsiElement element) |
static final ExtensionPointName<TestFinder> EP_NAME
PsiElement findSourceElement(PsiElement from)
from
- PsiElement where the cursor was when "Navigate to test" was triggeredjava.util.Collection<PsiElement> findTestsForClass(PsiElement element)
element
- may by of any language but not specific to a current test finder domain languagejava.util.Collection<PsiElement> findClassesForTest(PsiElement element)
element
- may by of any language but not specific to a current test finder domain languageboolean isTest(PsiElement element)