Skip navigation links
powermock-core
A B C D E F G H I J K L M N O P R S T U V W 

A

AbstractCommonTestSuiteChunkerImpl - Class in org.powermock.tests.utils.impl
 
AbstractCommonTestSuiteChunkerImpl(Class<?>) - Constructor for class org.powermock.tests.utils.impl.AbstractCommonTestSuiteChunkerImpl
 
AbstractCommonTestSuiteChunkerImpl(Class<?>...) - Constructor for class org.powermock.tests.utils.impl.AbstractCommonTestSuiteChunkerImpl
 
AbstractMainMockTransformer - Class in org.powermock.core.transformers.impl
 
AbstractMainMockTransformer(TransformStrategy) - Constructor for class org.powermock.core.transformers.impl.AbstractMainMockTransformer
 
AbstractMainMockTransformer.PowerMockExpressionEditor - Class in org.powermock.core.transformers.impl
 
AbstractPowerMockTestListenerBase - Class in org.powermock.core.spi.support
An empty implementation of the PowerMockTestListener interface.
AbstractPowerMockTestListenerBase() - Constructor for class org.powermock.core.spi.support.AbstractPowerMockTestListenerBase
 
AbstractTestClassExtractor - Class in org.powermock.tests.utils.impl
Base class for all test class extractors.
AbstractTestClassExtractor() - Constructor for class org.powermock.tests.utils.impl.AbstractTestClassExtractor
 
AbstractTestClassExtractor(boolean) - Constructor for class org.powermock.tests.utils.impl.AbstractTestClassExtractor
 
AbstractTestSuiteChunkerImpl<T> - Class in org.powermock.tests.utils.impl
Abstract base class for test suite chunking, i.e.
AbstractTestSuiteChunkerImpl(Class<?>) - Constructor for class org.powermock.tests.utils.impl.AbstractTestSuiteChunkerImpl
 
AbstractTestSuiteChunkerImpl(Class<?>...) - Constructor for class org.powermock.tests.utils.impl.AbstractTestSuiteChunkerImpl
 
add(E) - Method in class org.powermock.core.IdentityHashSet
 
addAfterMethodRunner(Runnable) - Static method in class org.powermock.core.MockRepository
Add a Runnable that will be executed after each test
addAll(T[], T[]) - Static method in class org.powermock.utils.ArrayUtil
 
addClassesToModify(String...) - Method in class org.powermock.core.classloader.MockClassLoader
Add classes that will be loaded by the mock classloader, i.e.
addClassesToModify(String[]) - Method in class org.powermock.core.classloader.MockClassLoaderBuilder
 
addConstructorToSuppress(Constructor<?>) - Static method in class org.powermock.core.MockRepository
Add a constructor to suppress.
addFieldToSuppress(Field) - Static method in class org.powermock.core.MockRepository
Add a field to suppress.
addFieldToSuppress(Field, Field...) - Method in class org.powermock.mockpolicies.impl.MockPolicyInterceptionSettingsImpl
 
addFieldToSuppress(Field[]) - Method in class org.powermock.mockpolicies.impl.MockPolicyInterceptionSettingsImpl
 
addFieldToSuppress(Field, Field...) - Method in interface org.powermock.mockpolicies.MockPolicyInterceptionSettings
Add specific fields that should be suppressed upon invocation.
addFieldToSuppress(Field[]) - Method in interface org.powermock.mockpolicies.MockPolicyInterceptionSettings
Add specific fields that should be suppressed upon invocation.
addFieldTypesToSuppress(String, String...) - Method in class org.powermock.mockpolicies.impl.MockPolicyInterceptionSettingsImpl
 
addFieldTypesToSuppress(String[]) - Method in class org.powermock.mockpolicies.impl.MockPolicyInterceptionSettingsImpl
 
addFieldTypesToSuppress(String, String...) - Method in interface org.powermock.mockpolicies.MockPolicyInterceptionSettings
Add field types that should be suppressed.
addFieldTypesToSuppress(String[]) - Method in interface org.powermock.mockpolicies.MockPolicyInterceptionSettings
Add field types that should be suppressed.
addFieldTypeToSuppress(String) - Static method in class org.powermock.core.MockRepository
Add a field type to suppress.
addFullyQualifiedNamesOfClassesToLoadByMockClassloader(String, String...) - Method in class org.powermock.mockpolicies.impl.MockPolicyClassLoadingSettingsImpl
 
addFullyQualifiedNamesOfClassesToLoadByMockClassloader(String[]) - Method in class org.powermock.mockpolicies.impl.MockPolicyClassLoadingSettingsImpl
 
addFullyQualifiedNamesOfClassesToLoadByMockClassloader(String, String...) - Method in interface org.powermock.mockpolicies.MockPolicyClassLoadingSettings
Add types that should be loaded (and possibly modified) by the mock classloader.
addFullyQualifiedNamesOfClassesToLoadByMockClassloader(String[]) - Method in interface org.powermock.mockpolicies.MockPolicyClassLoadingSettings
Add types that should be loaded (and possibly modified) by the mock classloader.
addIgnorePackage(String...) - Method in class org.powermock.core.classloader.DeferSupportingClassLoader
Add packages or classes to ignore.
addIgnorePackage(String[]) - Method in class org.powermock.core.classloader.MockClassLoaderBuilder
 
addMethodsToSuppress(Method, Method...) - Method in class org.powermock.mockpolicies.impl.MockPolicyInterceptionSettingsImpl
 
addMethodsToSuppress(Method[]) - Method in class org.powermock.mockpolicies.impl.MockPolicyInterceptionSettingsImpl
 
addMethodsToSuppress(Method, Method...) - Method in interface org.powermock.mockpolicies.MockPolicyInterceptionSettings
Add methods to suppress upon invocation.
addMethodsToSuppress(Method[]) - Method in interface org.powermock.mockpolicies.MockPolicyInterceptionSettings
Add methods to suppress upon invocation.
addMethodToSuppress(Method) - Static method in class org.powermock.core.MockRepository
Add a method to suppress.
addMockTransformerChain(List<MockTransformer>) - Method in class org.powermock.core.classloader.MockClassLoaderBuilder
 
addObjectsToAutomaticallyReplayAndVerify(Object...) - Static method in class org.powermock.core.MockRepository
Add classes that should be automatically replayed or verified.
addStaticInitializersToSuppress(String, String...) - Method in class org.powermock.mockpolicies.impl.MockPolicyClassLoadingSettingsImpl
 
addStaticInitializersToSuppress(String[]) - Method in class org.powermock.mockpolicies.impl.MockPolicyClassLoadingSettingsImpl
 
addStaticInitializersToSuppress(String, String...) - Method in interface org.powermock.mockpolicies.MockPolicyClassLoadingSettings
Add static initializers to suppress.
addStaticInitializersToSuppress(String[]) - Method in interface org.powermock.mockpolicies.MockPolicyClassLoadingSettings
Add static initializers to suppress.
addSubtituteReturnValue(Method, Object) - Method in class org.powermock.mockpolicies.impl.MockPolicyInterceptionSettingsImpl
 
addSubtituteReturnValue(Method, Object) - Method in interface org.powermock.mockpolicies.MockPolicyInterceptionSettings
addSuppressStaticInitializer(String) - Static method in class org.powermock.core.MockRepository
Add a fully qualified class name for a class that should have its static initializers suppressed.
adjustClassPath(ClassPool) - Method in interface org.powermock.core.classloader.ClassPathAdjuster
 
afterTestMethod(Object, Method, Object[], TestMethodResult) - Method in interface org.powermock.core.spi.PowerMockTestListener
Invoked after each test method.
afterTestMethod(Object, Method, Object[], TestMethodResult) - Method in class org.powermock.core.spi.support.AbstractPowerMockTestListenerBase
Provides an empty implementation.
afterTestMethod(Object, Method, Object[], TestMethodResult) - Method in class org.powermock.core.testlisteners.FieldDefaulter
 
afterTestSuiteEnded(Class<?>, Method[], TestSuiteResult) - Method in interface org.powermock.core.spi.PowerMockTestListener
Invoked after a test suite has ended.
afterTestSuiteEnded(Class<?>, Method[], TestSuiteResult) - Method in class org.powermock.core.spi.support.AbstractPowerMockTestListenerBase
Provides an empty implementation.
allowMockingOfPackagePrivateClasses(CtClass) - Method in class org.powermock.core.transformers.impl.AbstractMainMockTransformer
 
allowMockingOfStaticAndFinalAndNativeMethods(CtClass) - Method in class org.powermock.core.transformers.impl.AbstractMainMockTransformer
 
AnnotationEnablerListener - Interface in org.powermock.core.spi.listener
 
applyClassLoadingPolicy(MockPolicyClassLoadingSettings) - Method in interface org.powermock.core.spi.PowerMockPolicy
Apply all class-loading related policies that must be present before the interception policies can take place.
applyInterceptionPolicy(MockPolicyInterceptionSettings) - Method in interface org.powermock.core.spi.PowerMockPolicy
Apply the interception policies, for example which methods that should be suppressed or which methods that should be intercepted and return some else than their original value.
ArrayMerger - Interface in org.powermock.tests.utils
An array merger concatenates several arrays to one.
ArrayMergerImpl - Class in org.powermock.tests.utils.impl
The default implementation of the ArrayMerger interface.
ArrayMergerImpl() - Constructor for class org.powermock.tests.utils.impl.ArrayMergerImpl
 
ArrayUtil - Class in org.powermock.utils
 
ArrayUtil() - Constructor for class org.powermock.utils.ArrayUtil
 
assertNotNull(Object, String) - Static method in class org.powermock.utils.Asserts
 
Asserts - Class in org.powermock.utils
 
Asserts() - Constructor for class org.powermock.utils.Asserts
 

B

backedMap - Variable in class org.powermock.core.IdentityHashSet
 
beforeTestMethod(Object, Method, Object[]) - Method in interface org.powermock.core.spi.PowerMockTestListener
Invoked before each test method.
beforeTestMethod(Object, Method, Object[]) - Method in class org.powermock.core.spi.support.AbstractPowerMockTestListenerBase
Provides an empty implementation.
beforeTestSuiteStarted(Class<?>, Method[]) - Method in interface org.powermock.core.spi.PowerMockTestListener
Invoked once before the test run has started.
beforeTestSuiteStarted(Class<?>, Method[]) - Method in class org.powermock.core.spi.support.AbstractPowerMockTestListenerBase
Provides an empty implementation.
build() - Method in class org.powermock.configuration.support.ConfigurationReaderBuilder
 
build() - Method in class org.powermock.core.classloader.MockClassLoaderBuilder
 

C

cache(Class<?>) - Method in class org.powermock.core.classloader.DeferSupportingClassLoader
Register a class to the cache of this classloader
chunkClass(Class<?>) - Method in class org.powermock.tests.utils.impl.AbstractCommonTestSuiteChunkerImpl
 
ClassloaderWrapper - Class in org.powermock.core.classloader
 
ClassloaderWrapper() - Constructor for class org.powermock.core.classloader.ClassloaderWrapper
 
ClassLocator - Class in org.powermock.core
 
ClassLocator() - Constructor for class org.powermock.core.ClassLocator
 
ClassMockTransformer - Class in org.powermock.core.transformers.impl
 
ClassMockTransformer() - Constructor for class org.powermock.core.transformers.impl.ClassMockTransformer
 
ClassMockTransformer(TransformStrategy) - Constructor for class org.powermock.core.transformers.impl.ClassMockTransformer
 
classNotPrepared(Class<T>) - Method in interface org.powermock.core.reporter.PowerMockReporter
 
ClassPathAdjuster - Interface in org.powermock.core.classloader
This interface can be used to adjust the classpath used by powermock to locate class files.
ClassReplicaCreator - Class in org.powermock.core
This class takes care of creating a replica of a class.
ClassReplicaCreator() - Constructor for class org.powermock.core.ClassReplicaCreator
 
clear() - Static method in class org.powermock.configuration.GlobalConfiguration
 
clear() - Method in interface org.powermock.core.agent.JavaAgentClassRegister
Remove all registered classes for all class loaders.
clear() - Method in interface org.powermock.core.agent.JavaAgentFrameworkRegister
Remove all links to JavaAgentClassRegister
clear() - Method in class org.powermock.core.IdentityHashSet
 
clear() - Method in class org.powermock.core.ListMap
 
clear() - Static method in class org.powermock.core.MockRepository
Clear all state of the mock repository except for static initializers.
closePendingTestSuites(GlobalNotificationBuildSupport.Callback) - Static method in class org.powermock.core.testlisteners.GlobalNotificationBuildSupport
 
closeTestSuite(Class<?>) - Static method in class org.powermock.core.testlisteners.GlobalNotificationBuildSupport
 
ConcreteClassGenerator - Class in org.powermock.core
This class takes care of creating a concrete sub-class implementing all abstract methods in the parent.
ConcreteClassGenerator() - Constructor for class org.powermock.core.ConcreteClassGenerator
 
Configuration<T extends Configuration> - Interface in org.powermock.configuration
The general interface for all types configurations that could be obtained via GlobalConfiguration.
ConfigurationFactory - Interface in org.powermock.configuration
 
ConfigurationFactoryImpl - Class in org.powermock.configuration.support
 
ConfigurationFactoryImpl() - Constructor for class org.powermock.configuration.support.ConfigurationFactoryImpl
 
ConfigurationReader - Interface in org.powermock.configuration
 
ConfigurationReaderBuilder - Class in org.powermock.configuration.support
 
ConfigurationType - Enum in org.powermock.configuration
 
constructorCall(Class<?>, Object[], Class<?>[]) - Static method in class org.powermock.core.MockGateway
 
contains(Object) - Method in class org.powermock.core.IdentityHashSet
 
containsKey(Object) - Method in class org.powermock.core.ListMap
 
containsValue(Object) - Method in class org.powermock.core.ListMap
 
copyFileUsingStream(File, File) - Static method in class org.powermock.utils.IOUtils
 
create(Class<T>) - Method in interface org.powermock.configuration.ConfigurationFactory
 
create(Class<T>) - Method in class org.powermock.configuration.support.ConfigurationFactoryImpl
 
create() - Static method in class org.powermock.core.agent.JavaAgentFrameworkRegisterFactory
 
createClassMarker(ClassPool) - Static method in class org.powermock.core.classloader.JavaAssistClassMarkerFactory
 
createClassReplica(Class<T>) - Method in class org.powermock.core.ClassReplicaCreator
 
createConcreteSubClass(Class<?>) - Method in class org.powermock.core.ConcreteClassGenerator
 
createDelegatorFromClassloader(ClassLoader, Class<?>, List<Method>) - Method in class org.powermock.tests.utils.impl.AbstractTestSuiteChunkerImpl
 
createInstanceReplica(T) - Method in class org.powermock.core.ClassReplicaCreator
Create a class that is a replica of type T.
createPowerMockReporter() - Method in interface org.powermock.core.reporter.PowerMockReporterFactory
 
createTestDelegators(Class<?>, List<TestChunk>) - Method in class org.powermock.tests.utils.impl.AbstractTestSuiteChunkerImpl
 
createTestDelegators(Class<?>, List<TestChunk>) - Method in interface org.powermock.tests.utils.RunnerTestSuiteChunker
Create the test delegators needed for a whole class.
CURRENT_TEST_INSTANCE - Static variable in class org.powermock.tests.utils.Keys
Key that can be used to set or get the current test instance in the mock repository.
CURRENT_TEST_METHOD - Static variable in class org.powermock.tests.utils.Keys
Key that can be used to set or get the current test method in the mock repository.
CURRENT_TEST_METHOD_ARGUMENTS - Static variable in class org.powermock.tests.utils.Keys
Key that can be used to set or get the current test method arguments in the mock repository.

D

DEFAULT_TEST_LISTENERS_SIZE - Static variable in class org.powermock.tests.utils.impl.AbstractCommonTestSuiteChunkerImpl
 
DefaultBehavior - Interface in org.powermock.core.spi
Interface that provides the replay, verify and reset behavior for mock objects and classes.
DefaultFieldValueGenerator - Class in org.powermock.core
Fills the fields with default not-null values.
DefaultFieldValueGenerator() - Constructor for class org.powermock.core.DefaultFieldValueGenerator
 
DeferSupportingClassLoader - Class in org.powermock.core.classloader
Defers classloading of system classes to a delegate.
delegates - Variable in class org.powermock.tests.utils.impl.AbstractTestSuiteChunkerImpl
 
delegatesCreatedForTheseClasses - Variable in class org.powermock.tests.utils.impl.AbstractTestSuiteChunkerImpl
 
disable() - Method in interface org.powermock.core.reporter.MockingFrameworkReporter
Stop replacing mocking frameworks exception message
DONT_MOCK_NEXT_CALL - Static variable in class org.powermock.core.MockGateway
Used to tell the MockGateway that the next call should not be mocked regardless if a MethodInvocationControl is found in the MockRepository.

E

edit(FieldAccess) - Method in class org.powermock.core.transformers.impl.AbstractMainMockTransformer.PowerMockExpressionEditor
 
edit(MethodCall) - Method in class org.powermock.core.transformers.impl.AbstractMainMockTransformer.PowerMockExpressionEditor
 
edit(ConstructorCall) - Method in class org.powermock.core.transformers.impl.AbstractMainMockTransformer.PowerMockExpressionEditor
 
edit(NewExpr) - Method in class org.powermock.core.transformers.impl.AbstractMainMockTransformer.PowerMockExpressionEditor
 
enable() - Method in interface org.powermock.core.reporter.MockingFrameworkReporter
Start replacing mocking frameworks exception message
ensureJvmMethodSizeLimit(CtClass) - Method in class org.powermock.core.transformers.impl.AbstractMainMockTransformer
According to JVM specification method size must be lower than 65536 bytes.
entrySet() - Method in class org.powermock.core.ListMap
 
expectSubstitutionLogic(Object...) - Method in interface org.powermock.core.spi.NewInvocationControl
Expect a call to the new instance substitution logic.

F

fieldCall(Object, Class<?>, String, Class<?>) - Static method in class org.powermock.core.MockGateway
 
FieldDefaulter - Class in org.powermock.core.testlisteners
A test listener that automatically set all instance fields to their default values after each test method.
FieldDefaulter() - Constructor for class org.powermock.core.testlisteners.FieldDefaulter
 
fillWithDefaultValues(T) - Static method in class org.powermock.core.DefaultFieldValueGenerator
 
findResource(String) - Method in class org.powermock.core.classloader.DeferSupportingClassLoader
Finds the resource with the specified name on the search path.
findResources(String) - Method in class org.powermock.core.classloader.DeferSupportingClassLoader
 
forClass(Class<T>) - Static method in enum org.powermock.configuration.ConfigurationType
 
forConfigurationFile(String) - Method in class org.powermock.configuration.support.ConfigurationReaderBuilder
 
forTestClass(Class<?>) - Static method in class org.powermock.core.transformers.impl.TestClassTransformer
 
fromAllMethodsExcept(Method) - Method in interface org.powermock.core.transformers.impl.TestClassTransformer.ForTestClass.RemovesTestMethodAnnotation
 
fromMethods(Collection<Method>) - Method in interface org.powermock.core.transformers.impl.TestClassTransformer.ForTestClass.RemovesTestMethodAnnotation
 

G

get(Object) - Method in class org.powermock.core.ListMap
 
getAdditionalState(String) - Static method in class org.powermock.core.MockRepository
Retrieve state based on the supplied key.
getCallerClass() - Static method in class org.powermock.core.ClassLocator
 
getChunkSize() - Method in class org.powermock.tests.utils.impl.AbstractCommonTestSuiteChunkerImpl
 
getChunkSize() - Method in interface org.powermock.tests.utils.TestSuiteChunker
Get the number of chunks defined in this suite.
getClassesToModify(AnnotatedElement) - Method in class org.powermock.tests.utils.impl.AbstractTestClassExtractor
Get the fully qualified names for classes that must should be modified for this element.
getClassesToModify(AnnotatedElement) - Method in class org.powermock.tests.utils.impl.PrepareForTestExtractorImpl
 
getClassesToModify(AnnotatedElement) - Method in class org.powermock.tests.utils.impl.StaticConstructorSuppressExtractorImpl
 
getClassIterator(ClassLoader) - Static method in class org.powermock.core.PowerMockUtils
Get an iterator of all classes loaded by the specific classloader.
getClassLoader() - Method in class org.powermock.tests.utils.impl.TestChunkImpl
 
getClassLoader() - Method in interface org.powermock.tests.utils.TestChunk
 
getDelegatorIndex(int) - Method in class org.powermock.tests.utils.impl.AbstractTestSuiteChunkerImpl
Get the junit runner delegate that handles the test at index testIndex.
getFailureCount() - Method in class org.powermock.core.spi.testresult.impl.TestSuiteResultImpl
 
getFailureCount() - Method in interface org.powermock.core.spi.testresult.TestSuiteResult
 
getFieldsToSuppress() - Method in class org.powermock.mockpolicies.impl.MockPolicyInterceptionSettingsImpl
 
getFieldsToSuppress() - Method in interface org.powermock.mockpolicies.MockPolicyInterceptionSettings
 
getFieldTypesToSuppress() - Method in class org.powermock.mockpolicies.impl.MockPolicyInterceptionSettingsImpl
 
getFieldTypesToSuppress() - Method in interface org.powermock.mockpolicies.MockPolicyInterceptionSettings
 
getFullyQualifiedNamesOfClassesToLoadByMockClassloader() - Method in class org.powermock.mockpolicies.impl.MockPolicyClassLoadingSettingsImpl
 
getFullyQualifiedNamesOfClassesToLoadByMockClassloader() - Method in interface org.powermock.mockpolicies.MockPolicyClassLoadingSettings
 
getGlobalIgnore() - Method in class org.powermock.configuration.PowerMockConfiguration
 
getIgnoreCount() - Method in class org.powermock.core.spi.testresult.impl.TestSuiteResultImpl
 
getIgnoreCount() - Method in interface org.powermock.core.spi.testresult.TestSuiteResult
 
getInstanceMethodInvocationControl(Object) - Static method in class org.powermock.core.MockRepository
 
getInternalTestIndex(int) - Method in class org.powermock.tests.utils.impl.AbstractTestSuiteChunkerImpl
Get the internal test index for a junit runner delegate based on the "real" original test index.
getLoggerMethods(String, String, String) - Method in class org.powermock.mockpolicies.support.LogPolicySupport
Get the methods that should be mocked.
getMethodProxy(Method) - Static method in class org.powermock.core.MockRepository
 
getMethodsToSuppress() - Method in class org.powermock.mockpolicies.impl.MockPolicyInterceptionSettingsImpl
 
getMethodsToSuppress() - Method in interface org.powermock.mockpolicies.MockPolicyInterceptionSettings
 
getMethodToStub(Method) - Static method in class org.powermock.core.MockRepository
 
getMockAnnotations() - Method in interface org.powermock.core.spi.listener.AnnotationEnablerListener
 
getMockClassLoaderFactory(Class<?>, String[], String[], MockTransformer[]) - Method in class org.powermock.tests.utils.impl.AbstractCommonTestSuiteChunkerImpl
 
getMockMakerClass() - Method in class org.powermock.configuration.MockitoConfiguration
 
getNewInstanceControl(Class<?>) - Static method in class org.powermock.core.MockRepository
 
getObjectsToAutomaticallyReplayAndVerify() - Static method in class org.powermock.core.MockRepository
 
getPackagesToIgnore(AnnotatedElement) - Method in interface org.powermock.tests.utils.IgnorePackagesExtractor
 
getPackagesToIgnore(AnnotatedElement) - Method in class org.powermock.tests.utils.impl.PowerMockIgnorePackagesExtractorImpl
 
getPowerMockTestListenersLoadedByASpecificClassLoader(Class<?>, ClassLoader) - Method in class org.powermock.tests.utils.impl.AbstractTestSuiteChunkerImpl
 
getPrefix() - Method in enum org.powermock.configuration.ConfigurationType
 
getProxiedMethods() - Method in class org.powermock.mockpolicies.impl.MockPolicyInterceptionSettingsImpl
 
getProxiedMethods() - Method in interface org.powermock.mockpolicies.MockPolicyInterceptionSettings
Get all methods that should be proxied and the invocation handler for each method.
getResource(String) - Method in class org.powermock.core.classloader.DeferSupportingClassLoader
 
getResourceAsStream(String) - Method in class org.powermock.core.classloader.DeferSupportingClassLoader
 
getResources(String) - Method in class org.powermock.core.classloader.DeferSupportingClassLoader
 
getResult() - Method in class org.powermock.core.spi.testresult.impl.TestMethodResultImpl
 
getResult() - Method in class org.powermock.core.spi.testresult.impl.TestSuiteResultImpl
 
getResult() - Method in interface org.powermock.core.spi.testresult.TestMethodResult
 
getResult() - Method in interface org.powermock.core.spi.testresult.TestSuiteResult
 
getStaticInitializersToSuppress() - Method in class org.powermock.mockpolicies.impl.MockPolicyClassLoadingSettingsImpl
 
getStaticInitializersToSuppress() - Method in interface org.powermock.mockpolicies.MockPolicyClassLoadingSettings
 
getStaticMethodInvocationControl(Class<?>) - Static method in class org.powermock.core.MockRepository
 
getStubbedMethods() - Method in class org.powermock.mockpolicies.impl.MockPolicyInterceptionSettingsImpl
 
getStubbedMethods() - Method in interface org.powermock.mockpolicies.MockPolicyInterceptionSettings
Get all substitute return values and also returns an unmodifiable map of all method-object pairs the were initialized.
getSubstituteReturnValues() - Method in class org.powermock.mockpolicies.impl.MockPolicyInterceptionSettingsImpl
 
getSubstituteReturnValues() - Method in interface org.powermock.mockpolicies.MockPolicyInterceptionSettings
getSuccessCount() - Method in class org.powermock.core.spi.testresult.impl.TestSuiteResultImpl
 
getSuccessCount() - Method in interface org.powermock.core.spi.testresult.TestSuiteResult
 
getTestChunk(Method) - Method in class org.powermock.tests.utils.impl.AbstractCommonTestSuiteChunkerImpl
 
getTestChunk(Method) - Method in interface org.powermock.tests.utils.TestSuiteChunker
Get TestChunk for the given method.
getTestChunks() - Method in class org.powermock.tests.utils.impl.AbstractCommonTestSuiteChunkerImpl
 
getTestChunks() - Method in class org.powermock.tests.utils.impl.TestCaseEntry
 
getTestChunks() - Method in interface org.powermock.tests.utils.TestSuiteChunker
Get all chunk entries.
getTestChunksEntries(Class<?>) - Method in class org.powermock.tests.utils.impl.AbstractCommonTestSuiteChunkerImpl
 
getTestChunksEntries(Class<?>) - Method in interface org.powermock.tests.utils.TestSuiteChunker
Get all chunk entries for a specific class.
getTestClass() - Method in class org.powermock.tests.utils.impl.TestCaseEntry
 
getTestClasses(AnnotatedElement) - Method in class org.powermock.tests.utils.impl.AbstractTestClassExtractor
If element is a class this method traverses the hierarchy and extracts classes that should be prepared for test in all super classes.
getTestClasses() - Method in class org.powermock.tests.utils.impl.AbstractTestSuiteChunkerImpl
 
getTestClasses(AnnotatedElement) - Method in interface org.powermock.tests.utils.TestClassesExtractor
 
getTestCount() - Method in class org.powermock.core.spi.testresult.impl.TestSuiteResultImpl
 
getTestCount() - Method in interface org.powermock.core.spi.testresult.TestSuiteResult
 
getTestCount() - Method in interface org.powermock.tests.utils.RunnerTestSuiteChunker
Get the number of total tests defined in the suite (the sum of all tests defined in all chunks for this suite).
getTestMethodsToBeExecutedByThisClassloader() - Method in class org.powermock.tests.utils.impl.TestChunkImpl
 
getTestMethodsToBeExecutedByThisClassloader() - Method in interface org.powermock.tests.utils.TestChunk
 
getType(String, String) - Method in class org.powermock.mockpolicies.support.LogPolicySupport
Get the class type representing the fully-qualified name.
GlobalConfiguration - Class in org.powermock.configuration
The class provides static access to Configuration.
GlobalNotificationBuildSupport - Class in org.powermock.core.testlisteners
Core static utility to help modules, such as PowerMockRunner, that needs to communicate with some 3rd-party framework in order to properly fire events to PowerMockTestListener instances.
GlobalNotificationBuildSupport() - Constructor for class org.powermock.core.testlisteners.GlobalNotificationBuildSupport
 
GlobalNotificationBuildSupport.Callback - Interface in org.powermock.core.testlisteners
 

H

hasMethodProxy(Method) - Static method in class org.powermock.core.MockRepository
 

I

IdentityHashSet<E> - Class in org.powermock.core
 
IdentityHashSet() - Constructor for class org.powermock.core.IdentityHashSet
 
IgnorePackagesExtractor - Interface in org.powermock.tests.utils
 
includeMethods - Variable in class org.powermock.tests.utils.impl.AbstractTestClassExtractor
 
IndicateReloadClass - Class in org.powermock.core
 
IndicateReloadClass() - Constructor for class org.powermock.core.IndicateReloadClass
 
initialize(ClassLoader) - Method in class org.powermock.tests.utils.impl.MockPolicyInitializerImpl
 
initialize(ClassLoader) - Method in interface org.powermock.tests.utils.MockPolicyInitializer
Initializes the mock policies for a given class loader.
InterfaceMockTransformer - Class in org.powermock.core.transformers.impl
 
InterfaceMockTransformer() - Constructor for class org.powermock.core.transformers.impl.InterfaceMockTransformer
 
InterfaceMockTransformer(TransformStrategy) - Constructor for class org.powermock.core.transformers.impl.InterfaceMockTransformer
 
INTERNAL_INDEX_NOT_FOUND - Static variable in class org.powermock.tests.utils.impl.AbstractCommonTestSuiteChunkerImpl
 
InvocationException - Exception in org.powermock.core
 
InvocationException(Throwable) - Constructor for exception org.powermock.core.InvocationException
 
InvocationSubstitute<T> - Interface in org.powermock.core.spi.support
A class that can be used as a substitution instead of mocking a particular class.
invoke(Class<?>, Object[], Class<?>[]) - Method in interface org.powermock.core.spi.NewInvocationControl
Invoke the constructor invocation control
IOUtils - Class in org.powermock.utils
 
IOUtils() - Constructor for class org.powermock.utils.IOUtils
 
isEmpty() - Method in class org.powermock.core.ListMap
 
isMethodToBeExecutedByThisClassloader(Method) - Method in class org.powermock.tests.utils.impl.TestChunkImpl
 
isMethodToBeExecutedByThisClassloader(Method) - Method in interface org.powermock.tests.utils.TestChunk
 
isMocked(Method) - Method in interface org.powermock.core.spi.MethodInvocationControl
Determine whether a certain method is mocked by this Invocation Control.
isModifiedByAgent(ClassLoader, String) - Method in interface org.powermock.core.agent.JavaAgentClassRegister
Check if class with className has been modified for the given class loader
isPrepared(AnnotatedElement, String) - Method in class org.powermock.tests.utils.impl.AbstractTestClassExtractor
 
isPrepared(String) - Method in class org.powermock.tests.utils.impl.MockPolicyInitializerImpl
 
isPrepared(String) - Method in interface org.powermock.tests.utils.MockPolicyInitializer
 
isPrepared(AnnotatedElement, String) - Method in interface org.powermock.tests.utils.TestClassesExtractor
 
iterator() - Method in class org.powermock.core.IdentityHashSet
 

J

JavaAgentClassRegister - Interface in org.powermock.core.agent
This register contains information about which class has been modified by PowerMock Java Agent.
JavaAgentFrameworkRegister - Interface in org.powermock.core.agent
Instance of class should set/clear an instance of the JavaAgentClassRegister in Mockito Frameworks classes
JavaAgentFrameworkRegisterFactory - Class in org.powermock.core.agent
Factory to create an instance of JavaAgentFrameworkRegister, depends on which mocking framework is loaded in runtime.
JavaAgentFrameworkRegisterFactory() - Constructor for class org.powermock.core.agent.JavaAgentFrameworkRegisterFactory
 
JavaAssistClassMarker - Interface in org.powermock.core.classloader
Instance of this interface can be used to mark CtClass that it was created and loaded by PowerMock
JavaAssistClassMarkerFactory - Class in org.powermock.core.classloader
 
JavaAssistClassMarkerFactory() - Constructor for class org.powermock.core.classloader.JavaAssistClassMarkerFactory
 
join(Object...) - Static method in class org.powermock.utils.StringJoiner
 
join(List<T>) - Static method in class org.powermock.utils.StringJoiner
 
join(String, Object...) - Static method in class org.powermock.utils.StringJoiner
 

K

Keys - Class in org.powermock.tests.utils
Holds various keys that may be put into the MockRepository to store state.
Keys() - Constructor for class org.powermock.tests.utils.Keys
 
keySet() - Method in class org.powermock.core.ListMap
 

L

ListMap<K,V> - Class in org.powermock.core
 
ListMap() - Constructor for class org.powermock.core.ListMap
 
loadClass(String, boolean) - Method in class org.powermock.core.classloader.DeferSupportingClassLoader
 
loadModifiedClass(String) - Method in class org.powermock.core.classloader.DeferSupportingClassLoader
 
loadModifiedClass(String) - Method in class org.powermock.core.classloader.MockClassLoader
 
LogPolicySupport - Class in org.powermock.mockpolicies.support
A support class for mock policies dealing with logging frameworks.
LogPolicySupport() - Constructor for class org.powermock.mockpolicies.support.LogPolicySupport
 

M

mark(CtClass) - Method in interface org.powermock.core.classloader.JavaAssistClassMarker
Mark type as loaded by PowerMock
matches(String, String) - Static method in class org.powermock.core.WildcardMatcher
Performs a wildcard matching for the text and pattern provided.
matchesAny(Collection<String>, String) - Static method in class org.powermock.core.WildcardMatcher
 
matchesAny(Iterable<String>, String) - Static method in class org.powermock.core.WildcardMatcher
 
matchesAny(String[], String) - Static method in class org.powermock.core.WildcardMatcher
 
merge(T) - Method in interface org.powermock.configuration.Configuration
Merge values of the configuration with values of configuration.
merge(MockitoConfiguration) - Method in class org.powermock.configuration.MockitoConfiguration
 
merge(PowerMockConfiguration) - Method in class org.powermock.configuration.PowerMockConfiguration
 
mergeArrays(Class<T>, T[]...) - Method in interface org.powermock.tests.utils.ArrayMerger
Merge arrays of a specific type.
mergeArrays(Class<T>, T[]...) - Method in class org.powermock.tests.utils.impl.ArrayMergerImpl
 
mergeArrays(String[], String[]) - Static method in class org.powermock.utils.ArrayUtil
 
methodCall(Object, String, Object[], Class<?>[], String) - Static method in class org.powermock.core.MockGateway
 
methodCall(Class<?>, String, Object[], Class<?>[], String) - Static method in class org.powermock.core.MockGateway
 
MethodInvocationControl - Interface in org.powermock.core.spi
The purpose of a method invocation control is to invoke a proxy to simulate a method call.
MOCK_ANNOTATION_METHODS - Static variable in class org.powermock.core.MockGateway
Tells PowerMock whether or not to mock Class.isAnnotationPresent(Class) and Class.getAnnotation(Class).
MOCK_GET_CLASS_METHOD - Static variable in class org.powermock.core.MockGateway
Tells PowerMock whether or not to mock Object.getClass().
MOCK_STANDARD_METHODS - Static variable in class org.powermock.core.MockGateway
Tells PowerMock to mock standard methods.
MockClassLoader - Class in org.powermock.core.classloader
The classloader loads and modified all classes except:
MockClassLoader(String[], String[], UseClassPathAdjuster) - Constructor for class org.powermock.core.classloader.MockClassLoader
Creates a new instance of the based on the following parameters:
MockClassLoader(String[], String[]) - Constructor for class org.powermock.core.classloader.MockClassLoader
Creates a new instance of the based on the following parameters:
MockClassLoader(String[], UseClassPathAdjuster) - Constructor for class org.powermock.core.classloader.MockClassLoader
Creates a new instance of the based on the following parameters:
MockClassLoader(String[]) - Constructor for class org.powermock.core.classloader.MockClassLoader
Creates a new instance of the based on the following parameters:
MockClassLoaderBuilder - Class in org.powermock.core.classloader
MockClassLoader builder.
mockClassLoaderBuilder() - Static method in class org.powermock.core.classloader.MockClassLoaderBuilders
 
MockClassLoaderBuilders - Class in org.powermock.core.classloader
Factory class for MockClassLoaderBuilder
MockClassLoaderBuilders() - Constructor for class org.powermock.core.classloader.MockClassLoaderBuilders
 
MockGateway - Class in org.powermock.core
All mock invocations are routed through this gateway.
MockGateway() - Constructor for class org.powermock.core.MockGateway
 
MockingFrameworkReporter - Interface in org.powermock.core.reporter
The instance of the interface is used to replace default mocking frameworks exception message via message specific for PowerMock use-cases.
mockitoConfiguration() - Static method in class org.powermock.configuration.GlobalConfiguration
 
MockitoConfiguration - Class in org.powermock.configuration
 
MockitoConfiguration() - Constructor for class org.powermock.configuration.MockitoConfiguration
 
MockPolicy - Annotation Type in org.powermock.core.classloader.annotations
A Mock Policy can be used to make it easier to unit test some code with PowerMock in isolation from a certain framework.
MockPolicyClassLoadingSettings - Interface in org.powermock.mockpolicies
Contains class-loading related settings.
MockPolicyClassLoadingSettingsImpl - Class in org.powermock.mockpolicies.impl
The default implementation of the MockPolicyClassLoadingSettings interface.
MockPolicyClassLoadingSettingsImpl() - Constructor for class org.powermock.mockpolicies.impl.MockPolicyClassLoadingSettingsImpl
 
MockPolicyInitializer - Interface in org.powermock.tests.utils
A Mock Policy initializer takes care of initializing the behavior defined by the mock policies.
MockPolicyInitializerImpl - Class in org.powermock.tests.utils.impl
The default implementation of the MockPolicyInitializer interface for mock policies.
MockPolicyInitializerImpl(Class<? extends PowerMockPolicy>[]) - Constructor for class org.powermock.tests.utils.impl.MockPolicyInitializerImpl
 
MockPolicyInitializerImpl(Class<?>) - Constructor for class org.powermock.tests.utils.impl.MockPolicyInitializerImpl
 
MockPolicyInterceptionSettings - Interface in org.powermock.mockpolicies
Contains interception related settings.
MockPolicyInterceptionSettingsImpl - Class in org.powermock.mockpolicies.impl
 
MockPolicyInterceptionSettingsImpl() - Constructor for class org.powermock.mockpolicies.impl.MockPolicyInterceptionSettingsImpl
 
MockRepository - Class in org.powermock.core
Hold mock objects that should be used instead of the concrete implementation.
MockRepository() - Constructor for class org.powermock.core.MockRepository
 
MockTransformer - Interface in org.powermock.core.transformers
Interface that all mock transformers must implement.
MODIFY_ALL_CLASSES - Static variable in class org.powermock.core.classloader.MockClassLoader
Pass this string to the constructor to indicate that all classes should be modified.

N

needsInitialization() - Method in class org.powermock.tests.utils.impl.MockPolicyInitializerImpl
 
needsInitialization() - Method in interface org.powermock.tests.utils.MockPolicyInitializer
 
newBuilder() - Static method in class org.powermock.configuration.support.ConfigurationReaderBuilder
 
newInstanceCall(Class<?>, Object[], Class<?>[]) - Static method in class org.powermock.core.MockGateway
 
NewInvocationControl<T> - Interface in org.powermock.core.spi
A new invocation control pairs up a InvocationSubstitute with the mock object created when invoking InvocationSubstitute.performSubstitutionLogic(Object...) object.
NOT_INITIALIZED - Static variable in class org.powermock.tests.utils.impl.AbstractCommonTestSuiteChunkerImpl
 
notifyAfterTestMethod(Object, Method, Object[], TestMethodResult) - Method in class org.powermock.tests.utils.impl.PowerMockTestNotifierImpl
 
notifyAfterTestMethod(boolean) - Method in class org.powermock.tests.utils.impl.PowerMockTestNotifierImpl
 
notifyAfterTestMethod(Object, Method, Object[], TestMethodResult) - Method in interface org.powermock.tests.utils.PowerMockTestNotifier
Notifies all listeners with the "after test method ended" event.
notifyAfterTestMethod(boolean) - Method in interface org.powermock.tests.utils.PowerMockTestNotifier
Notifies all listeners with the "after test method ended" event.
notifyAfterTestSuiteEnded(Class<?>, Method[], TestSuiteResult) - Method in class org.powermock.tests.utils.impl.PowerMockTestNotifierImpl
 
notifyAfterTestSuiteEnded(Class<?>, Method[], TestSuiteResult) - Method in interface org.powermock.tests.utils.PowerMockTestNotifier
Notifies all listeners with the "after test suite ended" event.
notifyBeforeTestMethod(Object, Method, Object[]) - Method in class org.powermock.tests.utils.impl.PowerMockTestNotifierImpl
 
notifyBeforeTestMethod(Object, Method, Object[]) - Method in interface org.powermock.tests.utils.PowerMockTestNotifier
Notifies all listeners with the "before test method started" event.
notifyBeforeTestSuiteStarted(Class<?>, Method[]) - Method in class org.powermock.tests.utils.impl.PowerMockTestNotifierImpl
 
notifyBeforeTestSuiteStarted(Class<?>, Method[]) - Method in interface org.powermock.tests.utils.PowerMockTestNotifier
Notifies all listeners with the "before test suite started" event.

O

org.powermock.configuration - package org.powermock.configuration
 
org.powermock.configuration.support - package org.powermock.configuration.support
 
org.powermock.core - package org.powermock.core
 
org.powermock.core.agent - package org.powermock.core.agent
 
org.powermock.core.classloader - package org.powermock.core.classloader
 
org.powermock.core.classloader.annotations - package org.powermock.core.classloader.annotations
 
org.powermock.core.reporter - package org.powermock.core.reporter
 
org.powermock.core.spi - package org.powermock.core.spi
 
org.powermock.core.spi.listener - package org.powermock.core.spi.listener
 
org.powermock.core.spi.support - package org.powermock.core.spi.support
 
org.powermock.core.spi.testresult - package org.powermock.core.spi.testresult
 
org.powermock.core.spi.testresult.impl - package org.powermock.core.spi.testresult.impl
 
org.powermock.core.testlisteners - package org.powermock.core.testlisteners
 
org.powermock.core.transformers - package org.powermock.core.transformers
 
org.powermock.core.transformers.impl - package org.powermock.core.transformers.impl
 
org.powermock.mockpolicies - package org.powermock.mockpolicies
 
org.powermock.mockpolicies.impl - package org.powermock.mockpolicies.impl
 
org.powermock.mockpolicies.support - package org.powermock.mockpolicies.support
 
org.powermock.tests.utils - package org.powermock.tests.utils
 
org.powermock.tests.utils.impl - package org.powermock.tests.utils.impl
 
org.powermock.utils - package org.powermock.utils
 

P

performSubstitutionLogic(Object...) - Method in interface org.powermock.core.spi.support.InvocationSubstitute
 
powerMockConfiguration() - Static method in class org.powermock.configuration.GlobalConfiguration
 
PowerMockConfiguration - Class in org.powermock.configuration
The class provides list of setting for PowerMock.
PowerMockConfiguration() - Constructor for class org.powermock.configuration.PowerMockConfiguration
 
PowerMockExpressionEditor(CtClass) - Constructor for class org.powermock.core.transformers.impl.AbstractMainMockTransformer.PowerMockExpressionEditor
 
PowerMockIgnore - Annotation Type in org.powermock.core.classloader.annotations
This annotation tells PowerMock to defer the loading of classes with the names supplied to PowerMockIgnore.value() to the system classloader.
PowerMockIgnorePackagesExtractorImpl - Class in org.powermock.tests.utils.impl
 
PowerMockIgnorePackagesExtractorImpl() - Constructor for class org.powermock.tests.utils.impl.PowerMockIgnorePackagesExtractorImpl
 
PowerMockInternalException - Exception in org.powermock.core
 
PowerMockInternalException(Throwable) - Constructor for exception org.powermock.core.PowerMockInternalException
 
PowerMockListener - Annotation Type in org.powermock.core.classloader.annotations
The PowerMock listener annotation can be used to tell PowerMock which listeners should be instantiated and invoked during a test.
PowerMockModified - Interface in org.powermock.core.classloader
Interface marker.
PowerMockPolicy - Interface in org.powermock.core.spi
This interface can be implemented to create policies for certain frameworks to make it easier for users to test their code in isolation from these frameworks.
PowerMockReporter - Interface in org.powermock.core.reporter
The interface is used to provide a user well-defined exception description.
PowerMockReporterFactory - Interface in org.powermock.core.reporter
 
PowerMockTestListener - Interface in org.powermock.core.spi
This interface should be implemented by all PowerMock test listeners.
PowerMockTestNotifier - Interface in org.powermock.tests.utils
Implementors of this interface that must provide the ability to notify PowerMock test listeners with the events as specified by the methods declared in this interface.
PowerMockTestNotifierImpl - Class in org.powermock.tests.utils.impl
Utility class that may be used by PowerMock test runners to notify listeners.
PowerMockTestNotifierImpl(PowerMockTestListener[]) - Constructor for class org.powermock.tests.utils.impl.PowerMockTestNotifierImpl
Create a new instance with the following parameters.
PowerMockUtils - Class in org.powermock.core
 
PowerMockUtils() - Constructor for class org.powermock.core.PowerMockUtils
 
PrepareEverythingForTest - Annotation Type in org.powermock.core.classloader.annotations
This annotation tells PowerMock to prepare all classes (except certain system and test related classes) for test.
PrepareForTest - Annotation Type in org.powermock.core.classloader.annotations
This annotation tells PowerMock to prepare certain classes for testing.
PrepareForTestExtractorImpl - Class in org.powermock.tests.utils.impl
Implementation of the TestClassesExtractor interface that extract classes from the PrepareForTest or PrepareOnlyThisForTest annotations.
PrepareForTestExtractorImpl() - Constructor for class org.powermock.tests.utils.impl.PrepareForTestExtractorImpl
 
PrepareForTestExtractorImpl(boolean) - Constructor for class org.powermock.tests.utils.impl.PrepareForTestExtractorImpl
 
PrepareOnlyThisForTest - Annotation Type in org.powermock.core.classloader.annotations
This annotation tells PowerMock to prepare certain classes for testing.
prepareTestSuite(String, GlobalNotificationBuildSupport.Callback) - Static method in class org.powermock.core.testlisteners.GlobalNotificationBuildSupport
 
printClassesLoadedByClassloader(ClassLoader, boolean) - Static method in class org.powermock.core.PowerMockUtils
 
PROCEED - Static variable in class org.powermock.core.MockGateway
 
proxyMethod(Method, InvocationHandler) - Method in class org.powermock.mockpolicies.impl.MockPolicyInterceptionSettingsImpl
 
proxyMethod(Method, InvocationHandler) - Method in interface org.powermock.mockpolicies.MockPolicyInterceptionSettings
Proxy a method with the given invocation handler.
put(K, V) - Method in class org.powermock.core.ListMap
 
putAdditionalState(String, Object) - Static method in class org.powermock.core.MockRepository
When a mock framework API needs to store additional state not applicable for the other methods, it may use this method to do so.
putAll(Map<? extends K, ? extends V>) - Method in class org.powermock.core.ListMap
 
putInstanceMethodInvocationControl(Object, MethodInvocationControl) - Static method in class org.powermock.core.MockRepository
 
putMethodProxy(Method, InvocationHandler) - Static method in class org.powermock.core.MockRepository
Set a proxy for a method.
putMethodToStub(Method, Object) - Static method in class org.powermock.core.MockRepository
Set a substitute return value for a method.
putNewInstanceControl(Class<?>, NewInvocationControl<?>) - Static method in class org.powermock.core.MockRepository
 
putStaticMethodInvocationControl(Class<?>, MethodInvocationControl) - Static method in class org.powermock.core.MockRepository
 

R

read(Class<T>) - Method in interface org.powermock.configuration.ConfigurationReader
 
refreshPolicies(ClassLoader) - Method in class org.powermock.tests.utils.impl.MockPolicyInitializerImpl
 
refreshPolicies(ClassLoader) - Method in interface org.powermock.tests.utils.MockPolicyInitializer
Re executes the MockPolicy of all the policies for a given class loader.
registerClass(ClassLoader, String) - Method in interface org.powermock.core.agent.JavaAgentClassRegister
Register that the class with name className has been modified for the given class loader.
remove(Object) - Method in class org.powermock.core.IdentityHashSet
 
remove(Object) - Method in class org.powermock.core.ListMap
 
remove(Object) - Static method in class org.powermock.core.MockRepository
Removes an object from the MockRepository if it exists.
removeAdditionalState(String) - Static method in class org.powermock.core.MockRepository
 
removeClassMethodInvocationControl(Class<?>) - Static method in class org.powermock.core.MockRepository
 
removeFinalModifierFromAllStaticFinalFields(CtClass) - Method in class org.powermock.core.transformers.impl.AbstractMainMockTransformer
 
removeFinalModifierFromClass(CtClass) - Method in class org.powermock.core.transformers.impl.AbstractMainMockTransformer
 
removeInstanceMethodInvocationControl(Class<?>) - Static method in class org.powermock.core.MockRepository
 
removeMethodProxy(Method) - Static method in class org.powermock.core.MockRepository
 
removesTestMethodAnnotation(Class<? extends Annotation>) - Method in interface org.powermock.core.transformers.impl.TestClassTransformer.ForTestClass
 
removeSuppressStaticInitializer(String) - Static method in class org.powermock.core.MockRepository
Remove a fully qualified class name for a class that should no longer have its static initializers suppressed.
replay(Object...) - Method in interface org.powermock.core.spi.DefaultBehavior
Replay the given objects or classes.
reset(Object...) - Method in interface org.powermock.core.spi.DefaultBehavior
Reset the given objects or classes.
Result - Enum in org.powermock.core.spi.testresult
 
RunnerTestSuiteChunker - Interface in org.powermock.tests.utils
An interface that should be implemented by classes that performs test suite chunking.
runWithClass(Runnable) - Static method in class org.powermock.core.classloader.ClassloaderWrapper
 
runWithClass(Callable<V>) - Static method in class org.powermock.core.classloader.ClassloaderWrapper
 
runWithClassClassLoader(ClassLoader, Runnable) - Static method in class org.powermock.core.classloader.ClassloaderWrapper
 
runWithClassClassLoader(ClassLoader, Callable<V>) - Static method in class org.powermock.core.classloader.ClassloaderWrapper
 

S

set(JavaAgentClassRegister) - Method in interface org.powermock.core.agent.JavaAgentFrameworkRegister
Set the javaAgentClassRegister to current loaded mocking framework.
setAllConstructorsToPublic(CtClass) - Method in class org.powermock.core.transformers.impl.AbstractMainMockTransformer
 
setConfigurationFactory(ConfigurationFactory) - Static method in class org.powermock.configuration.GlobalConfiguration
 
setFieldsSuppress(Field[]) - Method in class org.powermock.mockpolicies.impl.MockPolicyInterceptionSettingsImpl
 
setFieldsSuppress(Field[]) - Method in interface org.powermock.mockpolicies.MockPolicyInterceptionSettings
Set specific fields that should be suppressed upon invocation.
setFieldTypesToSuppress(String[]) - Method in class org.powermock.mockpolicies.impl.MockPolicyInterceptionSettingsImpl
 
setFieldTypesToSuppress(String[]) - Method in interface org.powermock.mockpolicies.MockPolicyInterceptionSettings
Set which field types that should be suppressed.
setFullyQualifiedNamesOfClassesToLoadByMockClassloader(String[]) - Method in class org.powermock.mockpolicies.impl.MockPolicyClassLoadingSettingsImpl
 
setFullyQualifiedNamesOfClassesToLoadByMockClassloader(String[]) - Method in interface org.powermock.mockpolicies.MockPolicyClassLoadingSettings
Set which types that should be loaded (and possibly modified) by the mock classloader.
setGlobalIgnore(String[]) - Method in class org.powermock.configuration.PowerMockConfiguration
 
setMethodsToProxy(Map<Method, InvocationHandler>) - Method in class org.powermock.mockpolicies.impl.MockPolicyInterceptionSettingsImpl
 
setMethodsToProxy(Map<Method, InvocationHandler>) - Method in interface org.powermock.mockpolicies.MockPolicyInterceptionSettings
Set the methods to proxy.
setMethodsToStub(Map<Method, Object>) - Method in class org.powermock.mockpolicies.impl.MockPolicyInterceptionSettingsImpl
 
setMethodsToStub(Map<Method, Object>) - Method in interface org.powermock.mockpolicies.MockPolicyInterceptionSettings
Set the substitute return values.
setMethodsToSuppress(Method[]) - Method in class org.powermock.mockpolicies.impl.MockPolicyInterceptionSettingsImpl
 
setMethodsToSuppress(Method[]) - Method in interface org.powermock.mockpolicies.MockPolicyInterceptionSettings
Set which methods to suppress.
setMockMakerClass(String) - Method in class org.powermock.configuration.MockitoConfiguration
 
setMockTransformerChain(List<MockTransformer>) - Method in class org.powermock.core.classloader.MockClassLoader
 
setStaticInitializersToSuppress(String[]) - Method in class org.powermock.mockpolicies.impl.MockPolicyClassLoadingSettingsImpl
 
setStaticInitializersToSuppress(String[]) - Method in interface org.powermock.mockpolicies.MockPolicyClassLoadingSettings
Set which static initializers to suppress.
setSubtituteReturnValues(Map<Method, Object>) - Method in class org.powermock.mockpolicies.impl.MockPolicyInterceptionSettingsImpl
 
setSubtituteReturnValues(Map<Method, Object>) - Method in interface org.powermock.mockpolicies.MockPolicyInterceptionSettings
shouldExecuteTestForMethod(Class<?>, Method) - Method in interface org.powermock.tests.utils.TestSuiteChunker
Should reflect whether or not this method is eligible for testing.
shouldLoadUnmodifiedClass(String) - Method in class org.powermock.core.classloader.DeferSupportingClassLoader
 
shouldLoadUnmodifiedClass(String) - Method in class org.powermock.core.classloader.MockClassLoader
 
shouldModify(Iterable<String>, String) - Method in class org.powermock.core.classloader.DeferSupportingClassLoader
 
shouldModifyClass(String) - Method in class org.powermock.core.classloader.DeferSupportingClassLoader
 
shouldModifyClass(String) - Method in class org.powermock.core.classloader.MockClassLoader
 
shouldStubMethod(Method) - Static method in class org.powermock.core.MockRepository
 
shouldSuppressConstructor(Constructor<?>) - Static method in class org.powermock.core.MockRepository
 
shouldSuppressField(Field) - Static method in class org.powermock.core.MockRepository
 
shouldSuppressMethod(Method, Class<?>) - Static method in class org.powermock.core.MockRepository
 
shouldSuppressStaticInitializerFor(String) - Static method in class org.powermock.core.MockRepository
Check whether or not a class with the fully qualified name should have its static initializers suppressed.
size() - Method in class org.powermock.core.IdentityHashSet
 
size() - Method in class org.powermock.core.ListMap
 
staticConstructorCall(String) - Static method in class org.powermock.core.MockGateway
 
StaticConstructorSuppressExtractorImpl - Class in org.powermock.tests.utils.impl
Implementation of the TestClassesExtractor interface for classes that should have their static initializers suppressed.
StaticConstructorSuppressExtractorImpl() - Constructor for class org.powermock.tests.utils.impl.StaticConstructorSuppressExtractorImpl
 
strategy - Variable in class org.powermock.core.transformers.impl.AbstractMainMockTransformer
 
StringJoiner - Class in org.powermock.utils
 
StringJoiner() - Constructor for class org.powermock.utils.StringJoiner
 
stubMethod(Method, Object) - Method in class org.powermock.mockpolicies.impl.MockPolicyInterceptionSettingsImpl
 
stubMethod(Method, Object) - Method in interface org.powermock.mockpolicies.MockPolicyInterceptionSettings
Add a method that should be intercepted and return another value ( returnObject) (i.e.
suiteClassInitiated(Class<?>) - Method in interface org.powermock.core.testlisteners.GlobalNotificationBuildSupport.Callback
 
SUPPRESS - Static variable in class org.powermock.core.MockGateway
 
SuppressStaticInitializationFor - Annotation Type in org.powermock.core.classloader.annotations
Use this annotation to suppress static initializers (constructors) for one or more classes.
suppressStaticInitializerIfRequested(CtClass, String) - Method in class org.powermock.core.transformers.impl.AbstractMainMockTransformer
 

T

testAtDelegateMapper - Variable in class org.powermock.tests.utils.impl.AbstractCommonTestSuiteChunkerImpl
 
TestCaseEntry - Class in org.powermock.tests.utils.impl
A test case entry consists of a test class and a list of test chunks that should be executed for this entry.
TestCaseEntry(Class<?>, List<TestChunk>) - Constructor for class org.powermock.tests.utils.impl.TestCaseEntry
 
TestChunk - Interface in org.powermock.tests.utils
A test chunk consists of a list of methods that should be executed by a particular classloader.
TestChunkImpl - Class in org.powermock.tests.utils.impl
A test chunk consists of a list of methods that should be executed by a particular classloader.
TestChunkImpl(ClassLoader, List<Method>) - Constructor for class org.powermock.tests.utils.impl.TestChunkImpl
 
testClasses - Variable in class org.powermock.tests.utils.impl.AbstractCommonTestSuiteChunkerImpl
 
TestClassesExtractor - Interface in org.powermock.tests.utils
 
testClassInitiated(Class<?>) - Static method in class org.powermock.core.testlisteners.GlobalNotificationBuildSupport
 
TestClassTransformer - Class in org.powermock.core.transformers.impl
MockTransformer implementation that will make PowerMock test-class enhancements for four purposes...
TestClassTransformer.ForTestClass - Interface in org.powermock.core.transformers.impl
 
TestClassTransformer.ForTestClass.RemovesTestMethodAnnotation - Interface in org.powermock.core.transformers.impl
 
testCount - Variable in class org.powermock.tests.utils.impl.AbstractTestSuiteChunkerImpl
 
testInstanceCreated(Object) - Method in interface org.powermock.core.testlisteners.GlobalNotificationBuildSupport.Callback
 
testInstanceCreated(Object) - Static method in class org.powermock.core.testlisteners.GlobalNotificationBuildSupport
 
testMethodAnnotation() - Method in class org.powermock.tests.utils.impl.AbstractCommonTestSuiteChunkerImpl
 
TestMethodResult - Interface in org.powermock.core.spi.testresult
 
TestMethodResultImpl - Class in org.powermock.core.spi.testresult.impl
 
TestMethodResultImpl(Result) - Constructor for class org.powermock.core.spi.testresult.impl.TestMethodResultImpl
 
TestSuiteChunker - Interface in org.powermock.tests.utils
 
TestSuiteResult - Interface in org.powermock.core.spi.testresult
 
TestSuiteResultImpl - Class in org.powermock.core.spi.testresult.impl
 
TestSuiteResultImpl() - Constructor for class org.powermock.core.spi.testresult.impl.TestSuiteResultImpl
 
TestSuiteResultImpl(int, int, int, int) - Constructor for class org.powermock.core.spi.testresult.impl.TestSuiteResultImpl
 
toString() - Method in class org.powermock.core.spi.testresult.impl.TestMethodResultImpl
 
toString() - Method in class org.powermock.core.spi.testresult.impl.TestSuiteResultImpl
 
toString() - Method in class org.powermock.tests.utils.impl.TestChunkImpl
 
transform(CtClass) - Method in class org.powermock.core.transformers.impl.AbstractMainMockTransformer
 
transform(CtClass) - Method in class org.powermock.core.transformers.impl.TestClassTransformer
 
transform(CtClass) - Method in interface org.powermock.core.transformers.MockTransformer
Transforms the clazz.
transformMockClass(CtClass) - Method in class org.powermock.core.transformers.impl.AbstractMainMockTransformer
 
transformMockClass(CtClass) - Method in class org.powermock.core.transformers.impl.ClassMockTransformer
 
transformMockClass(CtClass) - Method in class org.powermock.core.transformers.impl.InterfaceMockTransformer
 
TransformStrategy - Enum in org.powermock.core.transformers
 

U

UseClassPathAdjuster - Annotation Type in org.powermock.core.classloader.annotations
Use this annotation to enable adjusting of the class path used by powermock to locate class files.

V

valueOf(String) - Static method in enum org.powermock.configuration.ConfigurationType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.powermock.core.spi.testresult.Result
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.powermock.core.transformers.TransformStrategy
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.powermock.configuration.ConfigurationType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Method in class org.powermock.core.ListMap
 
values() - Static method in enum org.powermock.core.spi.testresult.Result
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.powermock.core.transformers.TransformStrategy
Returns an array containing the constants of this enum type, in the order they are declared.

W

WildcardMatcher - Class in org.powermock.core
Wildcard matcher.
WildcardMatcher() - Constructor for class org.powermock.core.WildcardMatcher
 
withValueAlias(String, String) - Method in class org.powermock.configuration.support.ConfigurationReaderBuilder
 
A B C D E F G H I J K L M N O P R S T U V W 
Skip navigation links
powermock-core