Package org.powermock.tests.utils.impl
Class PrepareForTestExtractorImpl
- java.lang.Object
-
- org.powermock.tests.utils.impl.AbstractTestClassExtractor
-
- org.powermock.tests.utils.impl.PrepareForTestExtractorImpl
-
- All Implemented Interfaces:
TestClassesExtractor
public class PrepareForTestExtractorImpl extends AbstractTestClassExtractor
Implementation of theTestClassesExtractorinterface that extract classes from thePrepareForTestorPrepareOnlyThisForTestannotations. It also adds the test case to the array of classes that should be modified.
-
-
Field Summary
-
Fields inherited from class org.powermock.tests.utils.impl.AbstractTestClassExtractor
includeMethods
-
-
Constructor Summary
Constructors Constructor Description PrepareForTestExtractorImpl()PrepareForTestExtractorImpl(boolean includeMethods)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String[]getClassesToModify(AnnotatedElement element)Get the fully qualified names for classes that must should be modified for thiselement.-
Methods inherited from class org.powermock.tests.utils.impl.AbstractTestClassExtractor
getTestClasses, isPrepared
-
-
-
-
Method Detail
-
getClassesToModify
protected String[] getClassesToModify(AnnotatedElement element)
Get the fully qualified names for classes that must should be modified for thiselement.- Specified by:
getClassesToModifyin classAbstractTestClassExtractor- Parameters:
element- The element that may contain info regarding which classes that must be modified by PowerMock.- Returns:
- An array of fully-qualified names to classes that must be
modified by PowerMock for the specific
element.
-
-