org.powermock.tests.utils.impl
Class PrepareForTestExtractorImpl

java.lang.Object
  extended by org.powermock.tests.utils.impl.AbstractTestClassExtractor
      extended by org.powermock.tests.utils.impl.PrepareForTestExtractorImpl
All Implemented Interfaces:
TestClassesExtractor

public class PrepareForTestExtractorImpl
extends AbstractTestClassExtractor

Implementation of the TestClassesExtractor interface that extract classes from the PrepareForTest or PrepareOnlyThisForTest annotations. It also adds the test case to the array of classes that should be modified.


Constructor Summary
PrepareForTestExtractorImpl()
           
 
Method Summary
protected  String[] getClassesToModify(AnnotatedElement element)
          Get the fully qualified names for classes that must should be modified for this element.
 
Methods inherited from class org.powermock.tests.utils.impl.AbstractTestClassExtractor
getTestClasses, isPrepared
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrepareForTestExtractorImpl

public PrepareForTestExtractorImpl()
Method Detail

getClassesToModify

protected String[] getClassesToModify(AnnotatedElement element)
Get the fully qualified names for classes that must should be modified for this element.

Specified by:
getClassesToModify in class AbstractTestClassExtractor
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.


Copyright © 2007-2013. All Rights Reserved.