public abstract class AbstractTestClassExtractor extends java.lang.Object implements TestClassesExtractor
Modifier and Type | Field and Description |
---|---|
protected boolean |
includeMethods |
Modifier | Constructor and Description |
---|---|
protected |
AbstractTestClassExtractor() |
protected |
AbstractTestClassExtractor(boolean includeMethods) |
Modifier and Type | Method and Description |
---|---|
protected abstract java.lang.String[] |
getClassesToModify(java.lang.reflect.AnnotatedElement element)
Get the fully qualified names for classes that must should be modified
for this
element . |
java.lang.String[] |
getTestClasses(java.lang.reflect.AnnotatedElement element)
If
element is a class this method traverses the hierarchy
and extracts classes that should be prepared for test in all super
classes. |
boolean |
isPrepared(java.lang.reflect.AnnotatedElement element,
java.lang.String fullyQualifiedClassName) |
protected AbstractTestClassExtractor()
protected AbstractTestClassExtractor(boolean includeMethods)
public final java.lang.String[] getTestClasses(java.lang.reflect.AnnotatedElement element)
element
is a class this method traverses the hierarchy
and extracts classes that should be prepared for test in all super
classes.getTestClasses
in interface TestClassesExtractor
null
if the element was not annotated, an
empty String[] if it is annotated but contains no classes, or a
string-array of all class names if interest.protected abstract java.lang.String[] getClassesToModify(java.lang.reflect.AnnotatedElement element)
element
.element
- The element that may contain info regarding which classes that
must be modified by PowerMock.element
.public boolean isPrepared(java.lang.reflect.AnnotatedElement element, java.lang.String fullyQualifiedClassName)
isPrepared
in interface TestClassesExtractor