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

A

a() - Static method in class samples.stress.ClassWithStatic
 
a1() - Method in class samples.stress.StressSample
 
AbstractClassloaderExecutor - Class in org.powermock.classloading
 
AbstractClassloaderExecutor() - Constructor for class org.powermock.classloading.AbstractClassloaderExecutor
 
AbstractClassTransformer - Class in org.powermock.modules.agent
 
AbstractClassTransformer() - Constructor for class org.powermock.modules.agent.AbstractClassTransformer
 
AbstractCommonPowerMockRunner - Class in org.powermock.modules.junit4.common.internal.impl
 
AbstractCommonPowerMockRunner(Class<?>, Class<? extends PowerMockJUnitRunnerDelegate>) - Constructor for class org.powermock.modules.junit4.common.internal.impl.AbstractCommonPowerMockRunner
 
AbstractCommonTestSuiteChunkerImpl - Class in org.powermock.tests.utils.impl
 
AbstractCommonTestSuiteChunkerImpl(Class<?>) - Constructor for class org.powermock.tests.utils.impl.AbstractCommonTestSuiteChunkerImpl
 
AbstractJavaAssistMockTransformer - Class in org.powermock.core.transformers.javassist
 
AbstractJavaAssistMockTransformer(TransformStrategy) - Constructor for class org.powermock.core.transformers.javassist.AbstractJavaAssistMockTransformer
 
AbstractMethodMocking - Class in samples.abstractmocking
Demonstrates that PowerMock can mock abstract methods.
AbstractMethodMocking() - Constructor for class samples.abstractmocking.AbstractMethodMocking
 
AbstractMockCreator - Class in org.powermock.api.mockito.internal.mockcreation
 
AbstractMockCreator() - Constructor for class org.powermock.api.mockito.internal.mockcreation.AbstractMockCreator
 
AbstractMockStrategyBase - Class in org.powermock.api.easymock.internal.mockstrategy.impl
Base class that should be used by all mock strategies.
AbstractMockStrategyBase(MockType) - Constructor for class org.powermock.api.easymock.internal.mockstrategy.impl.AbstractMockStrategyBase
 
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
 
AbstractStaticInitializerExample - Class in samples.staticinitializer
 
AbstractStaticInitializerExample() - Constructor for class samples.staticinitializer.AbstractStaticInitializerExample
 
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(String, String, int) - Method in class org.powermock.core.bytebuddy.MethodMaxLocals
 
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.MockClassLoaderBuilder
 
addClassesToModify(String...) - Method in class org.powermock.core.classloader.MockClassLoaderConfiguration
Add classes that will be loaded by the mock classloader, i.e.
addClassPathAdjuster(UseClassPathAdjuster) - Method in class org.powermock.core.classloader.MockClassLoaderBuilder
 
addConstructorToSuppress(Constructor<?>) - Static method in class org.powermock.core.MockRepository
Add a constructor to suppress.
addExtraMockTransformers(MockTransformer...) - Method in class org.powermock.core.classloader.MockClassLoaderBuilder
 
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.MockClassLoaderBuilder
 
addIgnorePackage(String...) - Method in class org.powermock.core.classloader.MockClassLoaderConfiguration
Add packages or classes to ignore.
addItem(String, String) - Method in class samples.suppressfield.ItemRepository
 
addLocalVariable(Frame.LocalVariable) - Method in class org.powermock.core.bytebuddy.Frame
 
addLocalVariables(ParameterList<ParameterDescription.InDefinedShape>) - Method in class org.powermock.core.bytebuddy.Frame
 
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.
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.
addTopToLocals(int) - Method in class org.powermock.core.bytebuddy.Frame
 
adjustClassPath(ClassPool) - Method in interface org.powermock.core.classloader.javassist.ClassPathAdjuster
 
afterPowerMockTestClass() - Method in class org.powermock.modules.testng.PowerMockTestCase
 
afterPowerMockTestMethod() - Method in class org.powermock.modules.testng.PowerMockTestCase
Must be executed after each test method.
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.
AgentInitializationException - Exception in com.sun.tools.attach
The exception thrown when an agent fails to initialize in the target Java virtual machine.
AgentInitializationException() - Constructor for exception com.sun.tools.attach.AgentInitializationException
Constructs an AgentInitializationException with no detail message.
AgentInitializationException(String) - Constructor for exception com.sun.tools.attach.AgentInitializationException
Constructs an AgentInitializationException with the specified detail message.
AgentInitializationException(String, int) - Constructor for exception com.sun.tools.attach.AgentInitializationException
Constructs an AgentInitializationException with the specified detail message and the return value from the execution of the agent's Agent_OnAttach function.
AgentLoadException - Exception in com.sun.tools.attach
The exception thrown when an agent cannot be loaded into the target Java virtual machine.
AgentLoadException() - Constructor for exception com.sun.tools.attach.AgentLoadException
Constructs an AgentLoadException with no detail message.
AgentLoadException(String) - Constructor for exception com.sun.tools.attach.AgentLoadException
Constructs an AgentLoadException with the specified detail message.
agentmain(String, Instrumentation) - Static method in class org.powermock.modules.agent.PowerMockAgent
 
AllFieldsMatcherStrategy - Class in org.powermock.reflect.internal.matcherstrategies
 
AllFieldsMatcherStrategy() - Constructor for class org.powermock.reflect.internal.matcherstrategies.AllFieldsMatcherStrategy
 
alternativePath() - Method in class samples.expectnew.ExpectNewDemo
 
aMethod() - Method in class samples.constructor.PublicConstructorWithDependencyDemo
 
aMethod() - Method in class samples.partialmocking.MockSelfDemo
 
aMethod() - Method in class samples.partialmocking.MockSelfWithNoDefaultConstructorDemo
 
aMethod2() - Method in class samples.partialmocking.MockSelfDemo
 
aMethod2() - Method in class samples.partialmocking.MockSelfWithNoDefaultConstructorDemo
 
aMethod2(String) - Static method in class samples.staticandinstance.StaticAndInstanceDemo
 
andReturn(T) - Method in class org.powermock.api.support.membermodification.strategy.impl.MethodStubStrategyImpl
Deprecated.
andReturn(T) - Method in interface org.powermock.api.support.membermodification.strategy.MethodStubStrategy
Deprecated.
Since version 1.4.1, use MethodStubStrategy.toReturn(Object) instead.
AnnotatedClassDemo - Class in samples.annotationbased
 
AnnotatedClassDemo() - Constructor for class samples.annotationbased.AnnotatedClassDemo
 
AnnotationDemo - Class in samples.annotationbased
 
AnnotationDemo(Service) - Constructor for class samples.annotationbased.AnnotationDemo
 
AnnotationDemo() - Constructor for class samples.annotationbased.AnnotationDemo
 
AnnotationEnabler - Class in org.powermock.api.easymock.powermocklistener
Deprecated.
Test Runners uses an annotation enabling listener per default since version 1.3. You should just remove this listener.
AnnotationEnabler() - Constructor for class org.powermock.api.easymock.powermocklistener.AnnotationEnabler
Deprecated.
 
AnnotationEnabler - Class in org.powermock.api.extension.listener
Before each test method all fields annotated with Mock, Mock or Mock have mock objects created for them and injected to the fields.
AnnotationEnabler() - Constructor for class org.powermock.api.extension.listener.AnnotationEnabler
 
AnnotationEnabler - Class in org.powermock.api.mockito.powermocklistener
Deprecated.
Test Runners uses an annotation enabling listener per default since version 1.3. You should just remove this listener.
AnnotationEnabler() - Constructor for class org.powermock.api.mockito.powermocklistener.AnnotationEnabler
Deprecated.
 
AnnotationEnablerListener - Interface in org.powermock.core.spi.listener
 
AnnotationMockMetadata - Class in org.powermock.api.extension.listener
 
AnnotationMockMetadata(Class<? extends Annotation>, Field) - Constructor for class org.powermock.api.extension.listener.AnnotationMockMetadata
 
AnotherSomeObjectInterfaceImpl - Class in samples.enummocking
 
AnotherSomeObjectInterfaceImpl() - Constructor for class samples.enummocking.AnotherSomeObjectInterfaceImpl
 
answer(InvocationOnMock) - Method in class org.powermock.api.mockito.internal.stubbing.PowerMockCallRealMethod
 
AppaleList - Class in samples.suppressconstructor
 
AppaleList() - Constructor for class samples.suppressconstructor.AppaleList
 
AppaleList(String) - Constructor for class samples.suppressconstructor.AppaleList
 
append(MockTransformer) - Method in class org.powermock.core.transformers.support.DefaultMockTransformerChain.MockTransformerChainBuilder
 
append(List<MockTransformer>) - Method in class org.powermock.core.transformers.support.DefaultMockTransformerChain.MockTransformerChainBuilder
 
apply(MethodVisitor, Implementation.Context) - Method in class org.powermock.core.bytebuddy.ConditionalStateStackManipulation
 
apply(MethodVisitor, Implementation.Context) - Method in enum org.powermock.core.bytebuddy.PrimitiveBoxing
 
apply(Statement, FrameworkMethod, Object) - Method in class org.powermock.modules.junit4.rule.PowerMockRule
 
applyClassLoadingPolicy(MockPolicyClassLoadingSettings) - Method in class org.powermock.api.mockito.mockpolicies.Slf4jMockPolicy
 
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 class org.powermock.api.mockito.mockpolicies.Slf4jMockPolicy
 
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.
applyRuleToLastStatement(Method, Object, Field, Statement) - Method in class org.powermock.modules.junit4.internal.impl.PowerMockJUnit47RunnerDelegateImpl.PowerMockJUnit47MethodRunner
 
applyRuleToLastStatement(Method, Object, Field, Statement) - Method in class org.powermock.modules.junit4.internal.impl.PowerMockJUnit49RunnerDelegateImpl.PowerMockJUnit49MethodRunner
 
areAllMethodsStatic(Method...) - Static method in class org.powermock.reflect.internal.WhiteboxImpl
Are all methods static.
ArgumentMatcherDemo - Class in samples.argumentmatcher
 
ArgumentMatcherDemo() - Constructor for class samples.argumentmatcher.ArgumentMatcherDemo
 
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
 
assertThatVerifyWorksForMultipleMocks() - Static method in class samples.singleton.StaticService
 
AssignableFromFieldTypeMatcherStrategy - Class in org.powermock.reflect.internal.matcherstrategies
 
AssignableFromFieldTypeMatcherStrategy(Class<?>) - Constructor for class org.powermock.reflect.internal.matcherstrategies.AssignableFromFieldTypeMatcherStrategy
 
AssignableToFieldTypeMatcherStrategy - Class in org.powermock.reflect.internal.matcherstrategies
 
AssignableToFieldTypeMatcherStrategy(Class<?>) - Constructor for class org.powermock.reflect.internal.matcherstrategies.AssignableToFieldTypeMatcherStrategy
 
Assumes - Class in org.powermock.modules.testng.internal
 
Assumes() - Constructor for class org.powermock.modules.testng.internal.Assumes
 
assumeTrue(String, boolean) - Static method in class org.powermock.modules.testng.internal.Assumes
 
attach(String) - Static method in class com.sun.tools.attach.VirtualMachine
Attaches to a Java virtual machine.
attach(VirtualMachineDescriptor) - Static method in class com.sun.tools.attach.VirtualMachine
Attaches to a Java virtual machine.
AttachNotSupportedException - Exception in com.sun.tools.attach
Thrown by VirtalMachine.attach when attempting to attach to a Java virtual machine for which a compatible AttachProvider does not exist.
AttachNotSupportedException() - Constructor for exception com.sun.tools.attach.AttachNotSupportedException
Constructs an AttachNotSupportedException with no detail message.
AttachNotSupportedException(String) - Constructor for exception com.sun.tools.attach.AttachNotSupportedException
Constructs an AttachNotSupportedException with the specified detail message.
AttachProvider - Class in com.sun.tools.attach.spi
Attach provider class for attaching to a Java virtual machine.
AttachProvider() - Constructor for class com.sun.tools.attach.spi.AttachProvider
Initializes a new instance of this class.
attachVirtualMachine(String) - Method in class com.sun.tools.attach.spi.AttachProvider
Attaches to a Java virtual machine.
attachVirtualMachine(VirtualMachineDescriptor) - Method in class com.sun.tools.attach.spi.AttachProvider
Attaches to a Java virtual machine.
aVoidMethod() - Static method in class samples.staticandinstance.StaticAndInstanceDemo
 

B

b() - Static method in class samples.stress.ClassWithStatic
 
b1() - Method in class samples.stress.StressSample
 
backedMap - Variable in class org.powermock.core.IdentityHashSet
 
beforeConstructorCall(Iterable<? extends ParameterDescription>) - Static method in class org.powermock.core.bytebuddy.Frame
 
beforePowerMockTestClass() - Method in class org.powermock.modules.testng.PowerMockTestCase
 
beforePowerMockTestMethod() - Method in class org.powermock.modules.testng.PowerMockTestCase
Must be executed before each test method.
beforeTestMethod(Object, Method, Object[]) - Method in class org.powermock.api.extension.listener.AnnotationEnabler
 
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.
BoxedWrapper - Class in org.powermock.reflect.internal.primitivesupport
The purpose of the Primitive Wrapper is to provide methods that deals with translating wrapper types to its related primitive type.
BoxedWrapper() - Constructor for class org.powermock.reflect.internal.primitivesupport.BoxedWrapper
 
BsdVirtualMachine - Class in sun.tools.attach
 
BsdVirtualMachine(AttachProvider, String) - Constructor for class sun.tools.attach.BsdVirtualMachine
Attaches to the target VM
build() - Method in class org.powermock.core.classloader.MockClassLoaderBuilder
 
build() - Method in class org.powermock.core.transformers.support.DefaultMockTransformerChain.MockTransformerChainBuilder
 
ByteCodeFramework - Enum in org.powermock.core.classloader
 
bytecodeFrameworkClue(Method) - Method in class org.powermock.core.transformers.TestClassTransformerBuilder
 

C

c() - Static method in class samples.stress.ClassWithStatic
 
c1() - Method in class samples.stress.StressSample
 
calculate() - Method in class samples.mockpolicy.ResultCalculator
 
calculate() - Method in class samples.simplemix.SimpleMix
 
calculate(int, int) - Static method in class samples.singleton.StaticService
 
calculateWithinHierarchy() - Static method in class samples.staticinitializer.InterfaceComputation
 
calculateWithReference() - Static method in class samples.staticinitializer.InterfaceComputation
 
callAThenB() - Method in class samples.nice.NiceDemo
 
callAThenB() - Method in class samples.strict.StrictDemo
 
CGLIB_ENHANCER - Static variable in class org.powermock.core.classloader.javassist.JavassistMockClassLoader
 
CGLIB_METHOD_WRAPPER - Static variable in class org.powermock.core.classloader.javassist.JavassistMockClassLoader
 
checkIfParameterTypesAreSame(boolean, Class<?>[], Class<?>[]) - Static method in class org.powermock.reflect.internal.WhiteboxImpl
Check if parameter types are same.
ChildA - Class in samples.classhierarchy
 
ChildA() - Constructor for class samples.classhierarchy.ChildA
 
ChildB - Class in samples.classhierarchy
 
ChildB() - Constructor for class samples.classhierarchy.ChildB
 
classAnnotations() - Method in class org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl
 
ClassFinalModifierMockTransformer - Class in org.powermock.core.transformers.javassist
 
ClassFinalModifierMockTransformer(TransformStrategy) - Constructor for class org.powermock.core.transformers.javassist.ClassFinalModifierMockTransformer
 
ClassInsideJavaPackage - Class in samples.java
 
ClassInsideJavaPackage() - Constructor for class samples.java.ClassInsideJavaPackage
 
ClassloaderExecutor - Interface in org.powermock.classloading
A ClassLoaderExecutor can run any code in any classloader.
ClassLoaderUtil - Class in org.powermock.api.support
 
ClassLoaderUtil() - Constructor for class org.powermock.api.support.ClassLoaderUtil
 
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
 
ClassMarker - Interface in org.powermock.core.classloader
Instance of this interface can be used to mark a class that it was created and loaded by PowerMock
classMarker - Variable in class org.powermock.core.classloader.MockClassLoader
 
classNotPrepared(Class<T>) - Method in class org.powermock.api.mockito.expectation.reporter.MockitoPowerMockReporter
 
classNotPrepared(Class<T>) - Method in interface org.powermock.core.reporter.PowerMockReporter
 
ClassNotPreparedException - Exception in org.powermock.api.mockito
The exception is thrown when a user tries to mock class which is't prepared, but should be.
ClassNotPreparedException(String) - Constructor for exception org.powermock.api.mockito.ClassNotPreparedException
 
ClassPathAdjuster - Interface in org.powermock.core.classloader.javassist
This interface can be used to adjust the classpath used by powermock to locate class files.
ClassReplaceStrategy - Interface in org.powermock.api.support.membermodification.strategy
Specifies the replace strategy for a class.
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
 
ClassWithInnerMembers - Class in samples.classwithinnermembers
Class that is used to test that local and member class works with PowerMock.
ClassWithInnerMembers() - Constructor for class samples.classwithinnermembers.ClassWithInnerMembers
 
ClassWithInnerMembers.MyInnerClassWithPackageConstructorWithMultArgs - Class in samples.classwithinnermembers
 
ClassWithInnerMembers.MyInnerClassWithPrivateConstructorWithDiffMultArgs - Class in samples.classwithinnermembers
 
ClassWithInnerMembers.MyInnerClassWithPrivateConstructorWithMultArgs - Class in samples.classwithinnermembers
 
ClassWithInnerMembers.MyInnerClassWithProtectedConstructorWithMultArgs - Class in samples.classwithinnermembers
 
ClassWithInnerMembers.MyInnerClassWithPublicConstructorWithMultArgs - Class in samples.classwithinnermembers
 
ClassWithNonPrivateInnerClass - Class in samples.innerclassmocking
Demonstrates the ability to mock an inner class (if the inner class is not private).
ClassWithNonPrivateInnerClass() - Constructor for class samples.innerclassmocking.ClassWithNonPrivateInnerClass
 
ClassWithNonPrivateInnerClass.InnerClass - Class in samples.innerclassmocking
 
ClassWithPowerMockGeneratedConstructor - Class in samples.whitebox
Class that simulates a PowerMock generated constructor.
ClassWithPowerMockGeneratedConstructor(String) - Constructor for class samples.whitebox.ClassWithPowerMockGeneratedConstructor
 
ClassWithPowerMockGeneratedConstructor(IndicateReloadClass) - Constructor for class samples.whitebox.ClassWithPowerMockGeneratedConstructor
Simulates a PowerMock generated constructor.
ClassWithPrivateInnerClass - Class in samples.innerclassmocking
Used for demonstration of the ability to mock methods from a private inner class.
ClassWithPrivateInnerClass() - Constructor for class samples.innerclassmocking.ClassWithPrivateInnerClass
 
ClassWithStatic - Class in samples.stress
 
ClassWithStatic() - Constructor for class samples.stress.ClassWithStatic
 
ClassWrapper<T> - Interface in org.powermock.core.transformers
An interface represents an abstraction of the class to be able to pass class to different byte-code instrumentation frameworks.
classWrapperFactory - Variable in class org.powermock.core.classloader.MockClassLoader
 
ClassWrapperFactory<T> - Interface in org.powermock.core.transformers
An implementation should wrap original instance.
clear() - Method in class org.powermock.api.extension.agent.JavaAgentFrameworkRegisterImpl
 
clear() - Method in class org.powermock.api.mockito.ConfigurationTestUtils
 
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.
clear() - Method in class org.powermock.modules.agent.support.JavaAgentClassRegisterImpl
 
clone(T) - Method in class org.powermock.classloading.DeepCloner
Clones an object.
clone(T, boolean) - Method in class org.powermock.classloading.DeepCloner
 
clone(T) - Method in interface org.powermock.classloading.spi.DeepClonerSPI
 
clone(T[]) - Static method in class org.powermock.utils.ArrayUtil
 
closePendingTestSuites(GlobalNotificationBuildSupport.Callback) - Static method in class org.powermock.core.testlisteners.GlobalNotificationBuildSupport
 
closeTestSuite(Class<?>) - Static method in class org.powermock.core.testlisteners.GlobalNotificationBuildSupport
 
com.sun.tools.attach - package com.sun.tools.attach
 
com.sun.tools.attach.spi - package com.sun.tools.attach.spi
 
ComparatorFactory - Class in org.powermock.reflect.internal.comparator
This comparator factory is used to create Comparators for Whitebox which are used to find best candidates for constructor and method invocation.
ComparatorFactory.ConstructorComparator - Class in org.powermock.reflect.internal.comparator
 
ComparatorFactory.MethodComparator - Class in org.powermock.reflect.internal.comparator
 
compare(Constructor, Constructor) - Method in class org.powermock.reflect.internal.comparator.ComparatorFactory.ConstructorComparator
 
compare(Method, Method) - Method in class org.powermock.reflect.internal.comparator.ComparatorFactory.MethodComparator
 
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
 
ConditionalStateStackManipulation - Class in org.powermock.core.bytebuddy
 
ConditionalStateStackManipulation(StackManipulation, StackManipulation, StackManipulation, Frame) - Constructor for class org.powermock.core.bytebuddy.ConditionalStateStackManipulation
 
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
 
ConfigurationTestUtils - Class in org.powermock.api.mockito
 
ConfigurationTestUtils() - Constructor for class org.powermock.api.mockito.ConfigurationTestUtils
 
ConfigurationType - Enum in org.powermock.configuration
 
constructor(Class<T>, Class<?>...) - Static method in class org.powermock.api.support.membermodification.MemberMatcher
Returns a constructor specified in declaringClass.
constructor(Class<T>) - Static method in class org.powermock.api.support.membermodification.MemberMatcher
Returns any one constructor specified in declaringClass.
ConstructorArgsDemo - Class in samples.constructorargs
 
ConstructorArgsDemo(String) - Constructor for class samples.constructorargs.ConstructorArgsDemo
 
ConstructorArgsDemo() - Constructor for class samples.constructorargs.ConstructorArgsDemo
 
ConstructorArgumentsVerification - Interface in org.powermock.api.mockito.verification
 
ConstructorAwareExpectationSetup<T> - Class in org.powermock.api.mockito.expectation
 
ConstructorAwareExpectationSetup(Constructor<T>) - Constructor for class org.powermock.api.mockito.expectation.ConstructorAwareExpectationSetup
 
constructorCall(Class<?>, Object[], Class<?>[]) - Static method in class org.powermock.core.MockGateway
 
ConstructorExpectationSetup<T> - Interface in org.powermock.api.mockito.expectation
 
ConstructorNotFoundException - Exception in org.powermock.reflect.exceptions
A run-time exception that may be thrown to indicate that a constructor was not found.
ConstructorNotFoundException(String) - Constructor for exception org.powermock.reflect.exceptions.ConstructorNotFoundException
Constructs a new exception with the specified detail message.
ConstructorNotFoundException(String, Throwable) - Constructor for exception org.powermock.reflect.exceptions.ConstructorNotFoundException
Constructs a new runtime exception with the specified detail message and cause.
constructors(Constructor<?>, Constructor<?>...) - Static method in class org.powermock.api.support.membermodification.MemberMatcher
Convenience method to get a constructor from a class.
constructorsDeclaredIn(Class<?>, Class<?>...) - Static method in class org.powermock.api.support.membermodification.MemberMatcher
Get all constructors in the supplied class(es).
ConstructorsMockTransformer - Class in org.powermock.core.transformers.javassist
Convert all constructors to public
ConstructorsMockTransformer(TransformStrategy) - Constructor for class org.powermock.core.transformers.javassist.ConstructorsMockTransformer
 
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
 
copyProperty(String, String) - Method in class samples.system.SystemClassUser
 
copyTemplateToPropertiesFile() - Method in class org.powermock.api.mockito.ConfigurationTestUtils
 
copyToMock(T, T) - Static method in class org.powermock.reflect.internal.WhiteboxImpl
 
copyToRealObject(T, T) - Static method in class org.powermock.reflect.internal.WhiteboxImpl
 
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
 
create(ByteCodeFramework) - Static method in class org.powermock.core.classloader.MockClassLoaderBuilder
 
create(ITestContext) - Method in class org.powermock.modules.testng.PowerMockTestCase
 
create() - Method in enum samples.enummocking.EnumWithConstructor
 
createClassReplica(Class<T>) - Method in class org.powermock.core.ClassReplicaCreator
 
createConcreteSubClass(Class<?>) - Method in class org.powermock.core.ConcreteClassGenerator
 
createConstructorComparator() - Static method in class org.powermock.reflect.internal.comparator.ComparatorFactory
 
createDefaultChain() - Method in class org.powermock.core.transformers.javassist.JavassistMockTransformerChainFactory
 
createDefaultChain(TransformStrategy) - Method in class org.powermock.core.transformers.javassist.JavassistMockTransformerChainFactory
 
createDefaultChain(List<MockTransformer>) - Method in class org.powermock.core.transformers.javassist.JavassistMockTransformerChainFactory
 
createDefaultChain() - Method in interface org.powermock.core.transformers.MockTransformerChainFactory
Create an MockTransformerChain with using default strategy TransformStrategy.CLASSLOADER
createDefaultChain(TransformStrategy) - Method in interface org.powermock.core.transformers.MockTransformerChainFactory
Create an MockTransformerChain with using the given transformStrategy
createDefaultChain(List<MockTransformer>) - Method in interface org.powermock.core.transformers.MockTransformerChainFactory
Create an MockTransformerChain with using default strategy TransformStrategy.CLASSLOADER and with the given extraMockTransformers
createDelegatorFromClassloader(ClassLoader, Class<?>, List<Method>) - Method in class org.powermock.modules.junit4.common.internal.impl.JUnit4TestSuiteChunkerImpl
 
createDelegatorFromClassloader(ClassLoader, Class<?>, List<Method>) - Method in class org.powermock.tests.utils.impl.AbstractTestSuiteChunkerImpl
 
createDirectoryStructure(String) - Method in class samples.expectnew.NewFileExample
 
createForClass(MockTransformer...) - Method in class org.powermock.core.classloader.MockClassLoaderFactory
 
createForMethod(Method, MockTransformer...) - Method in class org.powermock.core.classloader.MockClassLoaderFactory
 
createInstanceReplica(T) - Method in class org.powermock.core.ClassReplicaCreator
Create a class that is a replica of type T.
createMethodComparator() - Static method in class org.powermock.reflect.internal.comparator.ComparatorFactory
 
createMock(Class<T>, Method...) - Static method in class org.powermock.api.easymock.PowerMock
Creates a mock object that supports mocking of final and native methods.
createMock(Class<T>) - Static method in class org.powermock.api.easymock.PowerMock
Creates a mock object that supports mocking of final and native methods.
createMock(Class<T>, ConstructorArgs, Method...) - Static method in class org.powermock.api.easymock.PowerMock
Creates a mock object that supports mocking of final and native methods and invokes a specific constructor.
createMock(Class<T>, Object...) - Static method in class org.powermock.api.easymock.PowerMock
Creates a mock object that supports mocking of final and native methods and invokes a specific constructor based on the supplied argument values.
createMock(AnnotationMockCreator, MockMetadata) - Method in class org.powermock.api.extension.listener.EasyMockAnnotationSupport
 
createMock(Class<T>, boolean, boolean, Object, MockSettings, Method...) - Method in class org.powermock.api.mockito.internal.mockcreation.DefaultMockCreator
 
createMock(Class<T>, boolean, boolean, Object, MockSettings, Method...) - Method in interface org.powermock.api.mockito.internal.mockcreation.MockCreator
 
createMock(MockCreationSettings<T>, MockHandler) - Method in class org.powermock.api.mockito.mockmaker.PowerMockMaker
 
createMockAndExpectNew(Class<T>, Object...) - Static method in class org.powermock.api.easymock.PowerMock
Convenience method for createMock followed by expectNew.
createMockAndExpectNew(Class<T>, Class<?>[], Object...) - Static method in class org.powermock.api.easymock.PowerMock
Convenience method for createMock followed by expectNew when PowerMock cannot determine which constructor to use automatically.
createMockControl(Class<?>) - Method in class org.powermock.api.easymock.internal.mockstrategy.impl.AbstractMockStrategyBase
 
createMockControl(Class<?>) - Method in interface org.powermock.api.easymock.internal.mockstrategy.MockStrategy
 
createNiceMock(Class<T>, Method...) - Static method in class org.powermock.api.easymock.PowerMock
Creates a nice mock object that supports mocking of final and native methods.
createNiceMock(Class<T>) - Static method in class org.powermock.api.easymock.PowerMock
Creates a nice mock object that supports mocking of final and native methods.
createNiceMock(Class<T>, ConstructorArgs, Method...) - Static method in class org.powermock.api.easymock.PowerMock
Creates a nice mock object that supports mocking of final and native methods and invokes a specific constructor.
createNiceMock(Class<T>, Object...) - Static method in class org.powermock.api.easymock.PowerMock
Creates a nice mock object that supports mocking of final and native methods and invokes a specific constructor based on the supplied argument values.
createNiceMockAndExpectNew(Class<T>, Object...) - Static method in class org.powermock.api.easymock.PowerMock
Convenience method for createNiceMock followed by expectNew.
createNiceMockAndExpectNew(Class<T>, Class<?>[], Object...) - Static method in class org.powermock.api.easymock.PowerMock
Convenience method for createNiceMock followed by expectNew when PowerMock cannot determine which constructor to use automatically.
createNicePartialMock(Class<T>, String, Class<?>, Class<?>...) - Static method in class org.powermock.api.easymock.PowerMock
Nicely mock a single specific method.
createNicePartialMock(Class<T>, String...) - Static method in class org.powermock.api.easymock.PowerMock
A utility method that may be used to nicely mock several methods in an easy way (by just passing in the method names of the method you wish to mock).
createNicePartialMock(Class<T>, Class<? super T>, String...) - Static method in class org.powermock.api.easymock.PowerMock
A utility method that may be used to nicely mock several methods in an easy way (by just passing in the method names of the method you wish to mock).
createNicePartialMock(Class<T>, String[], Object...) - Static method in class org.powermock.api.easymock.PowerMock
* A utility method that may be used to nicely mock several methods in an easy way (by just passing in the method names of the method you wish to mock).
createNicePartialMock(Class<T>, String, Class<?>[], Object...) - Static method in class org.powermock.api.easymock.PowerMock
A utility method that may be used to nicely mock several methods in an easy way (by just passing in the method names of the method you wish to mock).
createNicePartialMock(Class<T>, String, Class<?>[], Object[], Class<?>[]) - Static method in class org.powermock.api.easymock.PowerMock
A utility method that may be used to nicely mock several methods in an easy way (by just passing in the method names of the method you wish to mock).
createNicePartialMockAndInvokeDefaultConstructor(Class<T>, String...) - Static method in class org.powermock.api.easymock.PowerMock
A utility method that may be used to nicely mock several methods in an easy way (by just passing in the method names of the method you wish to mock).
createNicePartialMockForAllMethodsExcept(Class<T>, String...) - Static method in class org.powermock.api.easymock.PowerMock
A utility method that may be used to specify several methods that should not be nicely mocked in an easy manner (by just passing in the method names of the method you wish not to mock).
createNicePartialMockForAllMethodsExcept(Class<T>, String, Class<?>, Class<?>...) - Static method in class org.powermock.api.easymock.PowerMock
Mock all methods of a class except for a specific one nicely.
createPartialMock(Class<T>, String, Class<?>, Class<?>...) - Static method in class org.powermock.api.easymock.PowerMock
Mock a single specific method.
createPartialMock(Class<T>, String...) - Static method in class org.powermock.api.easymock.PowerMock
A utility method that may be used to mock several methods in an easy way (by just passing in the method names of the method you wish to mock).
createPartialMock(Class<T>, Class<? super T>, String...) - Static method in class org.powermock.api.easymock.PowerMock
A utility method that may be used to mock several methods in an easy way (by just passing in the method names of the method you wish to mock).
createPartialMock(Class<T>, String[], Object...) - Static method in class org.powermock.api.easymock.PowerMock
A utility method that may be used to mock several methods in an easy way (by just passing in the method names of the method you wish to mock).
createPartialMock(Class<T>, String, Class<?>[], Object...) - Static method in class org.powermock.api.easymock.PowerMock
A utility method that may be used to mock several methods in an easy way (by just passing in the method names of the method you wish to mock).
createPartialMock(Class<T>, String, Class<?>[], Object[], Class<?>[]) - Static method in class org.powermock.api.easymock.PowerMock
A utility method that may be used to mock several methods in an easy way (by just passing in the method names of the method you wish to mock).
createPartialMockAndInvokeDefaultConstructor(Class<T>, String...) - Static method in class org.powermock.api.easymock.PowerMock
A utility method that may be used to mock several methods in an easy way (by just passing in the method names of the method you wish to mock).
createPartialMockForAllMethodsExcept(Class<T>, String...) - Static method in class org.powermock.api.easymock.PowerMock
A utility method that may be used to specify several methods that should not be mocked in an easy manner (by just passing in the method names of the method you wish not to mock).
createPartialMockForAllMethodsExcept(Class<T>, String, Class<?>, Class<?>...) - Static method in class org.powermock.api.easymock.PowerMock
Mock all methods of a class except for a specific one.
createPowerMockReporter() - Method in interface org.powermock.core.reporter.PowerMockReporterFactory
 
createPowerMockRunner(Object, TestMethod, RunNotifier, Description, boolean) - Method in class org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl
 
createPowerMockRunner(Object, TestMethod, RunNotifier, Description, boolean) - Method in class org.powermock.modules.junit4.internal.impl.PowerMockJUnit47RunnerDelegateImpl
 
createPowerMockRunner(Object, TestMethod, RunNotifier, Description, boolean) - Method in class org.powermock.modules.junit4.internal.impl.PowerMockJUnit49RunnerDelegateImpl
 
createSimpleThing() - Static method in class samples.rule.SimpleThingCreator
 
createStrictMock(Class<T>, Method...) - Static method in class org.powermock.api.easymock.PowerMock
Creates a strict mock object that supports mocking of final and native methods.
createStrictMock(Class<T>) - Static method in class org.powermock.api.easymock.PowerMock
Creates a strict mock object that supports mocking of final and native methods.
createStrictMock(Class<T>, ConstructorArgs, Method...) - Static method in class org.powermock.api.easymock.PowerMock
Creates a strict mock object that supports mocking of final and native methods and invokes a specific constructor.
createStrictMock(Class<T>, Object...) - Static method in class org.powermock.api.easymock.PowerMock
Creates a strict mock object that supports mocking of final and native methods and invokes a specific constructor based on the supplied argument values.
createStrictMockAndExpectNew(Class<T>, Object...) - Static method in class org.powermock.api.easymock.PowerMock
Convenience method for createStrictMock followed by expectNew.
createStrictMockAndExpectNew(Class<T>, Class<?>[], Object...) - Static method in class org.powermock.api.easymock.PowerMock
Convenience method for createStrictMock followed by expectNew when PowerMock cannot determine which constructor to use automatically.
createStrictPartialMock(Class<T>, String, Class<?>, Class<?>...) - Static method in class org.powermock.api.easymock.PowerMock
Strictly mock a single specific method.
createStrictPartialMock(Class<T>, String...) - Static method in class org.powermock.api.easymock.PowerMock
A utility method that may be used to strictly mock several methods in an easy way (by just passing in the method names of the method you wish to mock).
createStrictPartialMock(Class<T>, Class<? super T>, String...) - Static method in class org.powermock.api.easymock.PowerMock
A utility method that may be used to strictly mock several methods in an easy way (by just passing in the method names of the method you wish to mock).
createStrictPartialMock(Class<T>, String[], Object...) - Static method in class org.powermock.api.easymock.PowerMock
* A utility method that may be used to strictly mock several methods in an easy way (by just passing in the method names of the method you wish to mock).
createStrictPartialMock(Class<T>, String, Class<?>[], Object...) - Static method in class org.powermock.api.easymock.PowerMock
A utility method that may be used to strictly mock several methods in an easy way (by just passing in the method names of the method you wish to mock).
createStrictPartialMock(Class<T>, String, Class<?>[], Object[], Class<?>[]) - Static method in class org.powermock.api.easymock.PowerMock
A utility method that may be used to strictly mock several methods in an easy way (by just passing in the method names of the method you wish to mock).
createStrictPartialMockAndInvokeDefaultConstructor(Class<T>, String...) - Static method in class org.powermock.api.easymock.PowerMock
A utility method that may be used to strictly mock several methods in an easy way (by just passing in the method names of the method you wish to mock).
createStrictPartialMockForAllMethodsExcept(Class<T>, String...) - Static method in class org.powermock.api.easymock.PowerMock
A utility method that may be used to specify several methods that should not be strictly mocked in an easy manner (by just passing in the method names of the method you wish not to mock).
createStrictPartialMockForAllMethodsExcept(Class<T>, String, Class<?>, Class<?>...) - Static method in class org.powermock.api.easymock.PowerMock
Mock all methods of a class except for a specific one strictly.
createTarget(ITarget) - Method in class samples.expectnew.ExpectNewDemo
 
createTest() - Method in class org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl
 
createTestClassChain(MockTransformer) - Method in class org.powermock.core.transformers.javassist.JavassistMockTransformerChainFactory
 
createTestClassChain(MockTransformer) - Method in interface org.powermock.core.transformers.MockTransformerChainFactory
Create an MockTransformerChain with using the given testClassTransformer as transformer for test class.
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.
createValidator(Class<T>, boolean, boolean, JavaAgentClassRegister) - Static method in class org.powermock.api.mockito.internal.mockcreation.MockTypeValidatorFactory
 
CreationException - Exception in samples.expectnew
 
CreationException() - Constructor for exception samples.expectnew.CreationException
 
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

d() - Static method in class samples.stress.ClassWithStatic
 
d1() - Method in class samples.stress.StressSample
 
DeepCloner - Class in org.powermock.classloading
The purpose of the deep cloner is to create a deep clone of an object.
DeepCloner(ClassLoader) - Constructor for class org.powermock.classloading.DeepCloner
Clone using the supplied ClassLoader.
DeepCloner() - Constructor for class org.powermock.classloading.DeepCloner
Clone using the current ContextClassLoader.
DeepClonerSPI - Interface in org.powermock.classloading.spi
A deep-cloner must implement this interface.
DefaultBehavior - Interface in org.powermock.core.spi
Interface that provides the replay, verify and reset behavior for mock objects and classes.
DefaultConstructorArgumentsVerification<T> - Class in org.powermock.api.mockito.internal.verification
 
DefaultConstructorArgumentsVerification(NewInvocationControl<T>, Class<?>) - Constructor for class org.powermock.api.mockito.internal.verification.DefaultConstructorArgumentsVerification
 
DefaultConstructorExpectationSetup<T> - Class in org.powermock.api.mockito.expectation
 
DefaultConstructorExpectationSetup(Class<T>) - Constructor for class org.powermock.api.mockito.expectation.DefaultConstructorExpectationSetup
 
defaultConstructorIn(Class<T>) - Static method in class org.powermock.api.support.membermodification.MemberMatcher
Returns the default constructor in declaringClass
DefaultFieldValueGenerator - Class in org.powermock.core
Fills the fields with default not-null values.
DefaultFieldValueGenerator() - Constructor for class org.powermock.core.DefaultFieldValueGenerator
 
DefaultJUnitRunner(Class<?>) - Constructor for class org.powermock.modules.junit4.PowerMockRunnerDelegate.DefaultJUnitRunner
 
DefaultMethodExpectationSetup<T> - Class in org.powermock.api.mockito.internal.expectation
 
DefaultMethodExpectationSetup(Object, Method) - Constructor for class org.powermock.api.mockito.internal.expectation.DefaultMethodExpectationSetup
 
DefaultMockCreator - Class in org.powermock.api.mockito.internal.mockcreation
 
DefaultMockCreator() - Constructor for class org.powermock.api.mockito.internal.mockcreation.DefaultMockCreator
 
DefaultMockStrategy - Class in org.powermock.api.easymock.internal.mockstrategy.impl
 
DefaultMockStrategy() - Constructor for class org.powermock.api.easymock.internal.mockstrategy.impl.DefaultMockStrategy
 
DefaultMockTransformerChain - Class in org.powermock.core.transformers.support
 
DefaultMockTransformerChain.MockTransformerChainBuilder - Class in org.powermock.core.transformers.support
 
DefaultPrivatelyExpectedArguments - Class in org.powermock.api.mockito.internal.expectation
 
DefaultPrivatelyExpectedArguments(Object, Method) - Constructor for class org.powermock.api.mockito.internal.expectation.DefaultPrivatelyExpectedArguments
 
DefaultPrivateMethodVerification - Class in org.powermock.api.mockito.internal.verification
 
DefaultPrivateMethodVerification(Object) - Constructor for class org.powermock.api.mockito.internal.verification.DefaultPrivateMethodVerification
 
DefinalizingClassTransformer - Class in org.powermock.modules.agent
 
DefinalizingClassTransformer() - Constructor for class org.powermock.modules.agent.DefinalizingClassTransformer
 
defineAndTransformClass(String, ProtectionDomain) - Method in class org.powermock.core.classloader.javassist.JavassistMockClassLoader
 
defineAndTransformClass(String, ProtectionDomain) - Method in class org.powermock.core.classloader.MockClassLoader
 
defineClass(String, ProtectionDomain, byte[]) - Method in class org.powermock.core.classloader.MockClassLoader
 
delegates - Variable in class org.powermock.tests.utils.impl.AbstractTestSuiteChunkerImpl
 
delegatesCreatedForTheseClasses - Variable in class org.powermock.tests.utils.impl.AbstractTestSuiteChunkerImpl
 
DelegatingPowerMockRunner - Class in org.powermock.modules.junit4.internal.impl
 
DelegatingPowerMockRunner(Class<?>) - Constructor for class org.powermock.modules.junit4.internal.impl.DelegatingPowerMockRunner
 
DelegatingPowerMockRunner(Class<?>, String[]) - Constructor for class org.powermock.modules.junit4.internal.impl.DelegatingPowerMockRunner
 
DelegatingPowerMockRunner(Class<?>, String[], PowerMockTestListener[]) - Constructor for class org.powermock.modules.junit4.internal.impl.DelegatingPowerMockRunner
 
DelegatingToConstructorsOngoingStubbing<T> - Class in org.powermock.api.mockito.internal.expectation
Implementation of OngoingStubbing that delegates invocations to all supplied ctors
DelegatingToConstructorsOngoingStubbing(Constructor<?>[], OngoingStubbing<T>) - Constructor for class org.powermock.api.mockito.internal.expectation.DelegatingToConstructorsOngoingStubbing
 
delItem(String) - Method in class samples.suppressfield.ItemRepository
 
DependencyHolder - Class in samples.injectmocks
Simple class used to demonstrate setter injection..
DependencyHolder() - Constructor for class samples.injectmocks.DependencyHolder
 
DependencyHolderQualifier - Class in samples.injectmocks
Simple class used to demonstrate setter injection..
DependencyHolderQualifier() - Constructor for class samples.injectmocks.DependencyHolderQualifier
 
detach() - Method in class com.sun.tools.attach.VirtualMachine
Detach from the virtual machine.
detach() - Method in class sun.tools.attach.BsdVirtualMachine
Detach from the target VM
detach() - Method in class sun.tools.attach.LinuxVirtualMachine
Detach from the target VM
detach() - Method in class sun.tools.attach.SolarisVirtualMachine
Detach from the target VM
detach() - Method in class sun.tools.attach.WindowsVirtualMachine
 
disable() - Method in interface org.powermock.core.reporter.MockingFrameworkReporter
Stop replacing mocking frameworks exception message
displayMessage(String) - Method in class samples.swing.ReallySimpleSwingDemo
 
displayName() - Method in class com.sun.tools.attach.VirtualMachineDescriptor
Return the display name component of this descriptor.
doAnswer(Answer) - Method in class org.powermock.api.mockito.internal.expectation.PowerMockitoStubberImpl
 
doAnswer(Answer) - Method in class org.powermock.api.mockito.internal.PowerMockitoCore
 
doAnswer(Object, Object...) - Method in class org.powermock.api.mockito.internal.PowerMockitoCore
 
doAnswer(Answer<?>) - Static method in class org.powermock.api.mockito.PowerMockito
Use doAnswer() when you want to stub a void method with generic Answer.
doArrayStuff(String) - Method in class samples.privatemocking.PrivateMethodDemo
 
doCallRealMethod() - Method in class org.powermock.api.mockito.internal.expectation.PowerMockitoStubberImpl
 
doCallRealMethod() - Method in class org.powermock.api.mockito.internal.PowerMockitoCore
 
doCallRealMethod() - Static method in class org.powermock.api.mockito.PowerMockito
Use doCallRealMethod() when you want to call the real implementation of a method.
doGet(HttpServletRequest, HttpServletResponse) - Method in class samples.servletmocking.SampleServlet
 
DomainObject - Class in samples.suppressfield
 
DomainObject() - Constructor for class samples.suppressfield.DomainObject
 
doMoreComplicatedStuff() - Method in class samples.system.SystemClassUser
 
doNativeStuff(String) - Method in class samples.mockpolicy.frameworkexample.SimpleFramework
 
DoNotClone - Annotation Type in org.powermock.classloading.spi
Fields annotated with this annotation are not allowed to be cloned by a Deep Cloner implementation.
doNothing() - Method in class org.powermock.api.mockito.internal.expectation.PowerMockitoStubberImpl
 
doNothing() - Method in class org.powermock.api.mockito.internal.PowerMockitoCore
 
doNothing() - Static method in class org.powermock.api.mockito.PowerMockito
Use doNothing() for setting void methods to do nothing.
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.
doObjectStuff(Object) - Method in class samples.privatemocking.PrivateMethodDemo
 
doReturn(Object) - Method in class org.powermock.api.mockito.internal.expectation.PowerMockitoStubberImpl
 
doReturn(Object, Object...) - Method in class org.powermock.api.mockito.internal.expectation.PowerMockitoStubberImpl
 
doReturn(Object) - Method in class org.powermock.api.mockito.internal.PowerMockitoCore
 
doReturn(Object) - Static method in class org.powermock.api.mockito.PowerMockito
Use doReturn() in those rare occasions when you cannot use PowerMockito.when(Object).
doReturn(Object, Object...) - Static method in class org.powermock.api.mockito.PowerMockito
Same as PowerMockito.doReturn(Object) but sets consecutive values to be returned.
doSomeNativeStuffUsingTheLoadedSystemLibrary() - Method in class samples.staticinitializer.EvilStaticInitializerExample
 
doStatic(int) - Static method in class samples.singleton.StaticService
 
doStuff(String) - Method in class samples.suppressconstructor.InvokeConstructor
 
doThrow(Throwable...) - Method in class org.powermock.api.mockito.internal.expectation.PowerMockitoStubberImpl
 
doThrow(Class<? extends Throwable>) - Method in class org.powermock.api.mockito.internal.expectation.PowerMockitoStubberImpl
 
doThrow(Class<? extends Throwable>, Class<? extends Throwable>[]) - Method in class org.powermock.api.mockito.internal.expectation.PowerMockitoStubberImpl
 
doThrow(Throwable) - Method in class org.powermock.api.mockito.internal.PowerMockitoCore
 
doThrow(Throwable) - Static method in class org.powermock.api.mockito.PowerMockito
Use doThrow() when you want to stub the void method with an exception.
DOUBLE - Static variable in class org.powermock.core.bytebuddy.Frame.LocalVariable
 
dumpHeap(Object...) - Method in class sun.tools.attach.HotSpotVirtualMachine
 

E

e() - Static method in class samples.stress.ClassWithStatic
 
e1() - Method in class samples.stress.StressSample
 
EasyMockAnnotationSupport - Class in org.powermock.api.extension.listener
This class works like as EasyMockSupport and is used to create and inject mocks to annotated fields of an instance of test class.
EasyMockAnnotationSupport(Object) - Constructor for class org.powermock.api.extension.listener.EasyMockAnnotationSupport
 
EasyMockConfiguration - Class in org.powermock.api.easymock
Configuration information about EasyMock framework and which feature is supported by version of EasyMock in runtime.
EasyMockMethodInvocationControl<T> - Class in org.powermock.api.easymock.internal.invocationcontrol
The default implementation of the MethodInvocationControl interface.
EasyMockMethodInvocationControl(MockInvocationHandler, Set<Method>, T) - Constructor for class org.powermock.api.easymock.internal.invocationcontrol.EasyMockMethodInvocationControl
Initializes internal state.
EasyMockMethodInvocationControl(MockInvocationHandler, Set<Method>) - Constructor for class org.powermock.api.easymock.internal.invocationcontrol.EasyMockMethodInvocationControl
Initializes internal state.
EasyMockNewInvocationControl<T> - Class in org.powermock.api.easymock.internal.invocationcontrol
 
EasyMockNewInvocationControl(InvocationSubstitute<T>, Class<T>) - Constructor for class org.powermock.api.easymock.internal.invocationcontrol.EasyMockNewInvocationControl
 
edit(NewExpr) - Method in class org.powermock.core.transformers.javassist.support.PowerMockExpressionEditor
 
edit(MethodCall) - Method in class org.powermock.core.transformers.javassist.support.PowerMockExpressionEditor
 
edit(ConstructorCall) - Method in class org.powermock.core.transformers.javassist.support.PowerMockExpressionEditor
 
edit(FieldAccess) - Method in class org.powermock.core.transformers.javassist.support.PowerMockExpressionEditor
 
enable() - Method in interface org.powermock.core.reporter.MockingFrameworkReporter
Start replacing mocking frameworks exception message
enhancedSay(String, String) - Method in class samples.privatemocking.PrivateMethodDemo
 
entrySet() - Method in class org.powermock.core.ListMap
 
EnumWithConstructor - Enum in samples.enummocking
 
equals(Object) - Method in class com.sun.tools.attach.VirtualMachine
Tests this VirtualMachine for equality with another object.
equals(Object) - Method in class com.sun.tools.attach.VirtualMachineDescriptor
Tests this VirtualMachineDescriptor for equality with another object.
equals(Object) - Method in class org.powermock.api.extension.listener.AnnotationMockMetadata
 
equals(Object) - Method in class samples.equalswithgetclass.EqualsWithGetClass
 
equals(Object) - Method in class samples.expectnew.ExpectNewDemo
 
equals(Object) - Method in class samples.partialmocking.MockSelfDemo
 
EqualsWithGetClass - Class in samples.equalswithgetclass
Class that implements an equals method that contains a call to getClass();
EqualsWithGetClass(String) - Constructor for class samples.equalswithgetclass.EqualsWithGetClass
 
establishConnection(Connection) - Method in class samples.partialmocking.MockSelfDemo
 
everythingDeclaredIn(Class<?>, Class<?>...) - Static method in class org.powermock.api.support.membermodification.MemberMatcher
Get all constructors and methods in the supplied class(es).
EvilStaticInitializerExample - Class in samples.staticinitializer
Simple example of a class with a static initializer.
EvilStaticInitializerExample() - Constructor for class samples.staticinitializer.EvilStaticInitializerExample
 
execute(Callable<T>) - Method in class org.powermock.classloading.AbstractClassloaderExecutor
 
execute(Runnable) - Method in class org.powermock.classloading.AbstractClassloaderExecutor
 
execute(Object, Method, Object...) - Method in class org.powermock.classloading.AbstractClassloaderExecutor
 
execute(Callable<T>) - Method in interface org.powermock.classloading.ClassloaderExecutor
 
execute(Runnable) - Method in interface org.powermock.classloading.ClassloaderExecutor
 
execute(Object, Method, Object...) - Method in class org.powermock.classloading.SingleClassloaderExecutor
 
executeCommand() - Method in class samples.system.SystemClassUser
 
executeJCmd(String) - Method in class sun.tools.attach.HotSpotVirtualMachine
 
executeTest(Method, Object, Runnable) - Method in class org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.PowerMockJUnit44MethodRunner
 
executeTest(Method, Object, Runnable) - Method in class org.powermock.modules.junit4.internal.impl.PowerMockJUnit47RunnerDelegateImpl.PowerMockJUnit47MethodRunner
 
expectLastCall() - Static method in class org.powermock.api.easymock.PowerMock
This method just delegates to EasyMock class extensions EasyMock.expectLastCall() method.
expectNew(Class<T>, Class<?>[], Object...) - Static method in class org.powermock.api.easymock.PowerMock
Allows specifying expectations on new invocations.
expectNew(Class<T>, Object...) - Static method in class org.powermock.api.easymock.PowerMock
Allows specifying expectations on new invocations.
expectNew(String, Object...) - Static method in class org.powermock.api.easymock.PowerMock
Allows specifying expectations on new invocations for private member (inner) classes, local or anonymous classes.
ExpectNewDemo - Class in samples.expectnew
 
ExpectNewDemo() - Constructor for class samples.expectnew.ExpectNewDemo
 
ExpectNewOfFinalSystemClassDemo - Class in samples.expectnew
 
ExpectNewOfFinalSystemClassDemo() - Constructor for class samples.expectnew.ExpectNewOfFinalSystemClassDemo
 
ExpectNewServiceUser - Class in samples.expectnew
 
ExpectNewWithMultipleCtorDemo - Class in samples.expectnew
 
ExpectNewWithMultipleCtorDemo(Service) - Constructor for class samples.expectnew.ExpectNewWithMultipleCtorDemo
 
ExpectNewWithMultipleCtorDemo(Service, int) - Constructor for class samples.expectnew.ExpectNewWithMultipleCtorDemo
 
expectNiceNew(Class<T>, Object...) - Static method in class org.powermock.api.easymock.PowerMock
Allows specifying expectations on new invocations.
expectNiceNew(Class<T>, Class<?>[], Object...) - Static method in class org.powermock.api.easymock.PowerMock
Allows specifying expectations on new invocations.
expectPrivate(Class<?>, Method, Object...) - Static method in class org.powermock.api.easymock.PowerMock
Used to specify expectations on private static methods.
expectPrivate(Object, Method, Object...) - Static method in class org.powermock.api.easymock.PowerMock
Used to specify expectations on private methods.
expectPrivate(Object, String, Class<?>[], Object...) - Static method in class org.powermock.api.easymock.PowerMock
Used to specify expectations on private methods.
expectPrivate(Object, String, Object...) - Static method in class org.powermock.api.easymock.PowerMock
Used to specify expectations on methods using the method name.
expectPrivate(Object, Object...) - Static method in class org.powermock.api.easymock.PowerMock
Used to specify expectations on methods without specifying a method name.
expectPrivate(Object, String, Class<?>, Class<?>[], Object...) - Static method in class org.powermock.api.easymock.PowerMock
Used to specify expectations on methods using the method name at a specific place in the class hierarchy (specified by the where parameter).
expectPrivate(Object, String, Class<?>, Object...) - Static method in class org.powermock.api.easymock.PowerMock
Used to specify expectations on methods using the method name at a specific place in the class hierarchy (specified by the where parameter).
expectStrictNew(Class<T>, Object...) - Static method in class org.powermock.api.easymock.PowerMock
Allows specifying expectations on new invocations.
expectStrictNew(Class<T>, Class<?>[], Object...) - Static method in class org.powermock.api.easymock.PowerMock
Allows specifying expectations on new invocations.
expectSubstitutionLogic(Object...) - Method in class org.powermock.api.easymock.internal.invocationcontrol.EasyMockNewInvocationControl
 
expectSubstitutionLogic(Object...) - Method in class org.powermock.api.mockito.internal.invocation.MockitoNewInvocationControl
 
expectSubstitutionLogic(Object...) - Method in interface org.powermock.core.spi.NewInvocationControl
Expect a call to the new instance substitution logic.
ExpectVoidDemo - Class in samples.expectvoid
 
ExpectVoidDemo() - Constructor for class samples.expectvoid.ExpectVoidDemo
 

F

f() - Static method in class samples.stress.ClassWithStatic
 
f1() - Method in class samples.stress.StressSample
 
FAILED_TO_LOAD_LIBRARY_MESSAGE - Static variable in class samples.staticinitializer.EvilStaticInitializerExample
 
field(Class<?>, String) - Static method in class org.powermock.api.support.membermodification.MemberMatcher
Get a field from a class.
FieldAnnotationMatcherStrategy - Class in org.powermock.reflect.internal.matcherstrategies
 
FieldAnnotationMatcherStrategy(Class<? extends Annotation>[]) - Constructor for class org.powermock.reflect.internal.matcherstrategies.FieldAnnotationMatcherStrategy
 
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
 
FieldInitializerDemo - Class in samples.fieldmock
 
FieldInitializerDemo() - Constructor for class samples.fieldmock.FieldInitializerDemo
 
FieldMatcherStrategy - Class in org.powermock.reflect.internal.matcherstrategies
Class that should be implemented by field matching strategies.
FieldMatcherStrategy() - Constructor for class org.powermock.reflect.internal.matcherstrategies.FieldMatcherStrategy
 
FieldMatchingStrategy - Enum in org.powermock.reflect.matching
Defines strategies for field matching.
FieldNameMatcherStrategy - Class in org.powermock.reflect.internal.matcherstrategies
 
FieldNameMatcherStrategy(String) - Constructor for class org.powermock.reflect.internal.matcherstrategies.FieldNameMatcherStrategy
 
FieldNotFoundException - Exception in org.powermock.reflect.exceptions
A run-time exception that may be thrown to indicate that a field was not found.
FieldNotFoundException(String) - Constructor for exception org.powermock.reflect.exceptions.FieldNotFoundException
Constructs a new exception with the specified detail message.
fields(Class<?>, String, String...) - Static method in class org.powermock.api.support.membermodification.MemberMatcher
Get an array of Field's that matches the supplied list of field names.
fields(Class<?>) - Static method in class org.powermock.api.support.membermodification.MemberMatcher
Get all fields in a class hierarchy.
fields(Field, Field...) - Static method in class org.powermock.api.support.membermodification.MemberMatcher
Get an array of Field's.
fields(Class<?>, String[]) - Static method in class org.powermock.api.support.membermodification.MemberMatcher
Get an array of Field's that matches the supplied list of field names.
FieldTypeMatcherStrategy - Class in org.powermock.reflect.internal.matcherstrategies
 
FieldTypeMatcherStrategy(Class<?>) - Constructor for class org.powermock.reflect.internal.matcherstrategies.FieldTypeMatcherStrategy
 
fileExists(String) - Method in class samples.expectnew.ExpectNewDemo
 
fileWriter(String, String) - Method in class samples.expectnew.ExpectNewDemo
 
fileWriterPrint(String, String) - Method in class samples.expectnew.ExpectNewDemo
 
fillWithDefaultValues(T) - Static method in class org.powermock.core.DefaultFieldValueGenerator
 
filter(MockTransformerChain.FilterPredicate) - Method in interface org.powermock.core.transformers.MockTransformerChain
Filter and return collection of MockTransformer which fit the predicate.
filter(MockTransformerChain.FilterPredicate) - Method in class org.powermock.core.transformers.support.DefaultMockTransformerChain
 
filter(Filter) - Method in class org.powermock.modules.junit4.common.internal.impl.AbstractCommonPowerMockRunner
 
filter(Filter) - Method in class org.powermock.modules.junit4.common.internal.impl.JUnit4TestSuiteChunkerImpl
 
filter(Filter) - Method in class org.powermock.modules.junit4.internal.impl.DelegatingPowerMockRunner
 
filter(Filter) - Method in class org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl
 
FilterPredicates - Class in org.powermock.core.transformers.support
 
FilterPredicates() - Constructor for class org.powermock.core.transformers.support.FilterPredicates
 
FinalDemo - Class in samples.finalmocking
 
FinalDemo() - Constructor for class samples.finalmocking.FinalDemo
 
finalVoidCallee() - Method in class samples.finalmocking.FinalDemo
 
finalVoidCaller() - Method in class samples.finalmocking.FinalDemo
 
findByNamedQuery(String, List<String>) - Method in class samples.argumentmatcher.ArgumentMatcherDemo
 
findConstructorOrThrowException(Class<?>) - Static method in class org.powermock.reflect.internal.WhiteboxImpl
Finds and returns any constructor.
findDefaultConstructorOrThrowException(Class<?>) - Static method in class org.powermock.reflect.internal.WhiteboxImpl
Finds and returns the default constructor.
findField(Object, MockMetadata) - Method in interface org.powermock.api.extension.InjectFieldSearcher
 
findMethod(Class<T>, String, Class<?>...) - Static method in class org.powermock.reflect.internal.WhiteboxImpl
Finds and returns a method based on the input parameters.
findMethodOrThrowException(Object, Class<?>, String, Object[]) - Static method in class org.powermock.reflect.internal.WhiteboxImpl
Finds and returns a certain method.
findMethodOrThrowException(Class<?>, String, Class<?>...) - Static method in class org.powermock.reflect.internal.WhiteboxImpl
Find method or throw exception.
findUniqueConstructorOrThrowException(Class<?>, Object...) - Static method in class org.powermock.reflect.internal.WhiteboxImpl
Finds and returns a certain constructor.
forClass(Class<T>) - Static method in enum org.powermock.configuration.ConfigurationType
 
format(String, String) - Method in class samples.system.SystemClassUser
 
ForMethodsJavaAssistTestClassTransformer - Class in org.powermock.core.transformers.javassist.testclass
 
ForMethodsJavaAssistTestClassTransformer(Class<?>, Class<? extends Annotation>, MethodSignatureWriter<CtMethod>, Collection<Method>) - Constructor for class org.powermock.core.transformers.javassist.testclass.ForMethodsJavaAssistTestClassTransformer
 
forPrimitive(TypeDefinition) - Static method in enum org.powermock.core.bytebuddy.PrimitiveBoxing
 
forTestClass(Class<?>) - Method in class org.powermock.core.classloader.MockClassLoaderBuilder
 
forTestClass(Class<?>) - Static method in class org.powermock.core.transformers.TestClassTransformerBuilder
 
forType(TypeDescription) - Method in class org.powermock.core.bytebuddy.MockGetawayCall
 
Frame - Class in org.powermock.core.bytebuddy
 
Frame(List<Frame.LocalVariable>) - Constructor for class org.powermock.core.bytebuddy.Frame
 
Frame.LocalVariable - Class in org.powermock.core.bytebuddy
 
from(TypeDescription.Generic) - Static method in class org.powermock.core.bytebuddy.Frame.LocalVariable
 
fromAllMethodsExcept(Method) - Method in class org.powermock.core.transformers.TestClassTransformerBuilder.RemovesTestMethodAnnotation
 
FromAllMethodsExceptJavaAssistTestClassTransformer - Class in org.powermock.core.transformers.javassist.testclass
 
FromAllMethodsExceptJavaAssistTestClassTransformer(Class<?>, Class<? extends Annotation>, MethodSignatureWriter<CtMethod>, Method) - Constructor for class org.powermock.core.transformers.javassist.testclass.FromAllMethodsExceptJavaAssistTestClassTransformer
 
fromMethods(Collection<Method>) - Method in class org.powermock.core.transformers.TestClassTransformerBuilder.RemovesTestMethodAnnotation
 

G

g() - Static method in class samples.stress.ClassWithStatic
 
g1() - Method in class samples.stress.StressSample
 
generatePerishableToken() - Method in class samples.system.SystemClassUser
 
get(Object) - Method in class org.powermock.core.ListMap
 
get() - Method in class samples.mockpolicy.frameworkexample.NativeResult
 
getAdditionalState(String) - Static method in class org.powermock.core.MockRepository
Retrieve state based on the supplied key.
getAgentProperties() - Method in class com.sun.tools.attach.VirtualMachine
Returns the current agent properties in the target virtual machine.
getAgentProperties() - Method in class sun.tools.attach.HotSpotVirtualMachine
 
getAll() - Method in class samples.suppressconstructor.AppaleList
 
getAllConstructors(Class<?>) - Static method in class org.powermock.reflect.internal.WhiteboxImpl
Get all declared constructors in the class and set accessible to true.
getAllFields(Class<?>) - Static method in class org.powermock.reflect.internal.WhiteboxImpl
Get all fields in a class hierarchy! Both declared an non-declared (no duplicates).
getAllInstanceFields(Object) - Static method in class org.powermock.reflect.internal.WhiteboxImpl
Get all instance fields for a particular object.
getAllInstanceFields(Object) - Static method in class org.powermock.reflect.Whitebox
Get all instance fields for a particular object.
getAllMessages() - Method in class samples.expectnew.VarArgsConstructorDemo
 
getAllMethodExcept(Class<T>, String...) - Static method in class org.powermock.reflect.internal.WhiteboxImpl
Gets the all method except.
getAllMethods(Class<?>) - Static method in class org.powermock.reflect.internal.WhiteboxImpl
Get all methods in a class hierarchy! Both declared an non-declared (no duplicates).
getAllMethodsExcept(Class<T>, String, Class<?>[]) - Static method in class org.powermock.reflect.internal.WhiteboxImpl
Gets the all metods except.
getAllServices() - Method in class samples.expectnew.VarArgsConstructorDemo
 
getAllStaticFields(Class<?>) - Static method in class org.powermock.reflect.internal.WhiteboxImpl
Get all static fields for a particular type.
getAllStaticFields(Class<?>) - Static method in class org.powermock.reflect.Whitebox
Get all static fields for a particular type.
getAMessage() - Method in class samples.partialmocking.MockSelfDemoSubClass
 
getAnnotation() - Method in class org.powermock.api.extension.listener.AnnotationMockMetadata
 
getAnnotation() - Method in interface org.powermock.api.extension.listener.MockMetadata
 
getAnonymousInnerClassType(Class<?>, int) - Static method in class org.powermock.reflect.internal.WhiteboxImpl
Get the type of an anonymous inner class.
getAnonymousInnerClassType(Class<?>, int) - Static method in class org.powermock.reflect.Whitebox
Get the type of an anonymous inner class.
getAProtectedMessage() - Method in class samples.partialmocking.MockSelfDemoSubClass
 
getBestMethodCandidate(Class<?>, String, Class<?>[], boolean) - Static method in class org.powermock.reflect.internal.WhiteboxImpl
Gets the best method candidate.
getBoolean() - Method in class samples.suppressmethod.SuppressMethod
 
getBoxedFromPrimitiveType(Class<?>) - Static method in class org.powermock.reflect.internal.primitivesupport.BoxedWrapper
Get the wrapped counter part from a primitive type.
getByte() - Method in class samples.suppressmethod.SuppressMethod
 
getByteArrays() - Method in class samples.expectnew.SimpleVarArgsConstructorDemo
 
getByteArrays() - Method in class samples.expectnew.VarArgsConstructorDemo
 
getByteCodeFramework() - Method in class org.powermock.configuration.PowerMockConfiguration
 
getByteCodeFrameworkForMethod(Class<?>, Method) - Static method in enum org.powermock.core.classloader.ByteCodeFramework
 
getByteCodeFrameworkForTestClass(Class<?>) - Static method in enum org.powermock.core.classloader.ByteCodeFramework
 
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
 
getClassFor(CtPrimitiveType) - Static method in class org.powermock.core.transformers.javassist.support.Primitives
 
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
 
getClasstransformer() - Static method in class org.powermock.modules.agent.PowerMockAgent
 
getCompositeMessage() - Method in class samples.privatefield.MockSelfPrivateFieldServiceClass
 
getConcatenatedString(String) - Method in class samples.staticinitializer.SimpleStaticInitializerExample
 
getConfiguration() - Static method in class org.powermock.api.easymock.EasyMockConfiguration
 
getConnection() - Static method in class samples.interfacemethodfinding.WsUtil
 
getConstructor(Class<?>, Class<?>...) - Static method in class org.powermock.reflect.internal.WhiteboxImpl
Convenience method to get a (declared) constructor from a class type without having to catch the checked exceptions otherwise required.
getConstructor(Class<?>, Class<?>...) - Static method in class org.powermock.reflect.Whitebox
Convenience method to get a (declared) constructor from a class type without having to catch the checked exceptions otherwise required.
getConstructorResult() - Method in class samples.constructor.PrivateConstructorDemo
 
getConstructorResult() - Method in class samples.constructor.PublicConstructorDemo
 
getConstructorValue() - Method in class samples.partialmocking.MockSelfDemo
 
getCorrectReturnValueType(CtClass) - Static method in class org.powermock.core.transformers.javassist.support.TransformerHelper
 
getDefaultValue(Class<?>) - Static method in class org.powermock.reflect.internal.TypeUtils
Get the default value for a type.
getDefaultValue(String) - Static method in class org.powermock.reflect.internal.TypeUtils
Get the default value of a type with based on its fully-qualified name.
getDefaultValueAsString(String) - Static method in class org.powermock.reflect.internal.TypeUtils
Get the default value of a type with based on its fully-qualified name.
getDelegatorIndex(int) - Method in class org.powermock.tests.utils.impl.AbstractTestSuiteChunkerImpl
Get the junit runner delegate that handles the test at index testIndex.
getDescription() - Method in class org.powermock.modules.junit4.common.internal.impl.AbstractCommonPowerMockRunner
 
getDescription() - Method in class org.powermock.modules.junit4.common.internal.impl.JUnit4TestSuiteChunkerImpl
 
getDescription() - Method in interface org.powermock.modules.junit4.common.internal.JUnit4TestSuiteChunker
 
getDescription() - Method in interface org.powermock.modules.junit4.common.internal.PowerMockJUnitRunnerDelegate
 
getDescription() - Method in class org.powermock.modules.junit4.internal.impl.DelegatingPowerMockRunner
 
getDescription() - Method in class org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl
 
getDescription() - Method in class org.powermock.modules.junit4.PowerMockRunnerDelegate.DefaultJUnitRunner
 
getDomainObject() - Method in class samples.suppressfield.SuppressField
 
getDouble() - Method in class samples.suppressmethod.SuppressMethod
 
getDouble(double) - Method in class samples.suppressmethod.SuppressMethod
 
getFailureCount() - Method in class org.powermock.core.spi.testresult.impl.TestSuiteResultImpl
 
getFailureCount() - Method in interface org.powermock.core.spi.testresult.TestSuiteResult
 
getFailureCount() - Method in class org.powermock.modules.junit4.common.internal.impl.PowerMockJUnit4RunListener
 
getField(Class<?>, String) - Static method in class org.powermock.reflect.internal.WhiteboxImpl
Convenience method to get a field from a class type.
getField(Class<?>, String) - Static method in class org.powermock.reflect.Whitebox
Convenience method to get a field from a class type.
getFieldName() - Method in class org.powermock.api.extension.listener.AnnotationMockMetadata
 
getFieldName() - Method in interface org.powermock.api.extension.listener.MockMetadata
 
getFields(Class<?>, String...) - Static method in class org.powermock.reflect.internal.WhiteboxImpl
Get an array of Field's that matches the supplied list of field names.
getFields(Class<?>, String...) - Static method in class org.powermock.reflect.Whitebox
Get an array of Field's that matches the supplied list of field names.
getFieldsAnnotatedWith(Object, Class<? extends Annotation>, Class<? extends Annotation>...) - Static method in class org.powermock.reflect.internal.WhiteboxImpl
Get all fields annotated with a particular annotation.
getFieldsAnnotatedWith(Object, Class<? extends Annotation>[]) - Static method in class org.powermock.reflect.internal.WhiteboxImpl
Get all fields annotated with a particular annotation.
getFieldsAnnotatedWith(Object, Class<? extends Annotation>, Class<? extends Annotation>...) - Static method in class org.powermock.reflect.Whitebox
Get all fields annotated with a particular annotation.
getFieldsAnnotatedWith(Object, Class<? extends Annotation>[]) - Static method in class org.powermock.reflect.Whitebox
Get all fields annotated with a particular annotation.
getFieldsOfType(Object, Class<?>) - Static method in class org.powermock.reflect.internal.WhiteboxImpl
Get all fields assignable from a particular type.
getFieldsOfType(Object, Class<?>) - Static method in class org.powermock.reflect.Whitebox
Get all fields assignable from a particular type.
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
 
getFinalDemo() - Method in class samples.finalmocking.HoldingFinalDemo
 
getFinalDemo() - Static method in class samples.finalmocking.StaticHoldingFinalDemo
 
getFinalDemo() - Method in class samples.injectmocks.DependencyHolder
 
getFinalDemo() - Method in class samples.injectmocks.DependencyHolderQualifier
 
getFinalDemoQualifier() - Method in class samples.injectmocks.DependencyHolderQualifier
 
getFirst() - Method in class samples.expectnew.MultiConstructor
 
getFirstChar() - Method in class samples.expectnew.ExpectNewOfFinalSystemClassDemo
 
getFirstParentConstructor(Class<?>) - Static method in class org.powermock.reflect.internal.WhiteboxImpl
Get the first parent constructor defined in a super class of klass.
getFirstParentConstructor(Class<?>) - Static method in class org.powermock.reflect.Whitebox
Get the first parent constructor defined in a super class of klass.
getFloat() - Method in class samples.suppressmethod.SuppressMethod
 
getFromMap(int) - Method in class samples.fieldmock.FieldInitializerDemo
 
getFullyQualifiedNamesOfClassesToLoadByMockClassloader() - Method in class org.powermock.api.easymock.mockpolicies.JclMockPolicy
Loads all log4j classes with the mock classloader.
getFullyQualifiedNamesOfClassesToLoadByMockClassloader() - Method in class org.powermock.api.easymock.mockpolicies.Log4jMockPolicy
Loads all log4j classes with the mock classloader.
getFullyQualifiedNamesOfClassesToLoadByMockClassloader() - Method in class org.powermock.api.easymock.mockpolicies.Slf4jMockPolicy
 
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
 
getHandler(Object) - Method in class org.powermock.api.mockito.mockmaker.PowerMockMaker
 
getHello() - Method in class samples.suppressconstructor.SuppressNonParentConstructorDemo
 
getHello() - Method in class samples.suppressconstructor.SuppressSpecificConstructorDemo
 
getId() - Method in interface samples.expectnew.ITarget
 
getId() - Method in class samples.expectnew.Target
 
getIgnoreCount() - Method in class org.powermock.core.spi.testresult.impl.TestSuiteResultImpl
 
getIgnoreCount() - Method in interface org.powermock.core.spi.testresult.TestSuiteResult
 
getIgnoreCount() - Method in class org.powermock.modules.junit4.common.internal.impl.PowerMockJUnit4RunListener
 
getInjectDemo() - Method in class samples.injectmocks.InjectDependencyHolder
 
getInjectDemo() - Method in class samples.injectmocks.InjectDependencyHolderQualifier
 
getInjectDemoQualifier() - Method in class samples.injectmocks.InjectDependencyHolderQualifier
 
getInnerClassType(Class<?>, String) - Static method in class org.powermock.reflect.internal.WhiteboxImpl
Get an inner class type.
getInnerClassType(Class<?>, String) - Static method in class org.powermock.reflect.Whitebox
Get an inner class type
getInnerMessage() - Method in class samples.innerclassmocking.ClassWithNonPrivateInnerClass.InnerClass
 
getInstanceMethodInvocationControl(Object) - Static method in class org.powermock.core.MockRepository
 
getInt() - Method in class samples.suppressmethod.SuppressMethod
 
getInterfaces() - Method in interface org.powermock.reflect.internal.proxy.UnproxiedType
 
getInternalState(Object, String) - Static method in class org.powermock.reflect.internal.WhiteboxImpl
Get the value of a field using reflection.
getInternalState(Object, Class<T>) - Static method in class org.powermock.reflect.internal.WhiteboxImpl
Get the value of a field using reflection.
getInternalState(Object, Class<T>, Class<?>) - Static method in class org.powermock.reflect.internal.WhiteboxImpl
Get the value of a field using reflection.
getInternalState(Object, String, Class<?>) - Static method in class org.powermock.reflect.internal.WhiteboxImpl
Get the value of a field using reflection.
getInternalState(Object, String) - Static method in class org.powermock.reflect.Whitebox
Get the value of a field using reflection.
getInternalState(Object, String, Class<?>) - Static method in class org.powermock.reflect.Whitebox
Get the value of a field using reflection.
getInternalState(Object, String, Class<?>, Class<T>) - Static method in class org.powermock.reflect.Whitebox
getInternalState(Object, Class<T>) - Static method in class org.powermock.reflect.Whitebox
Get the value of a field using reflection based on the fields type.
getInternalState(Object, Class<T>, Class<?>) - Static method in class org.powermock.reflect.Whitebox
Get the value of a field using reflection based on the field type.
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.
getInts() - Method in class samples.expectnew.VarArgsConstructorDemo
 
getIt() - Method in class samples.abstractmocking.AbstractMethodMocking
 
getJUnitVersion() - Static method in class org.powermock.modules.junit4.common.internal.impl.JUnitVersion
 
getLocalClassType(Class<?>, int, String) - Static method in class org.powermock.reflect.internal.WhiteboxImpl
Get the type of a local inner class.
getLocalClassType(Class<?>, int, String) - Static method in class org.powermock.reflect.Whitebox
Get the type of a local inner class.
getLocalClassValue() - Method in class samples.classwithinnermembers.ClassWithInnerMembers
 
getLocalClassValueWithArgument() - Method in class samples.classwithinnermembers.ClassWithInnerMembers
 
getLocalHost() - Method in class samples.system.SystemClassUser
 
getLogFrameworkName() - Method in class org.powermock.api.easymock.mockpolicies.JclMockPolicy
 
getLogFrameworkName() - Method in class org.powermock.api.easymock.mockpolicies.Log4jMockPolicy
 
getLogFrameworkName() - Method in class org.powermock.api.easymock.mockpolicies.Slf4jMockPolicy
 
getLoggerClassToMock() - Method in class org.powermock.api.easymock.mockpolicies.JclMockPolicy
 
getLoggerClassToMock() - Method in class org.powermock.api.easymock.mockpolicies.Log4jMockPolicy
 
getLoggerClassToMock() - Method in class org.powermock.api.easymock.mockpolicies.Slf4jMockPolicy
 
getLoggerFactoryClassName() - Method in class org.powermock.api.easymock.mockpolicies.JclMockPolicy
 
getLoggerFactoryClassName() - Method in class org.powermock.api.easymock.mockpolicies.Log4jMockPolicy
 
getLoggerFactoryClassName() - Method in class org.powermock.api.easymock.mockpolicies.Slf4jMockPolicy
 
getLoggerMethodName() - Method in class org.powermock.api.easymock.mockpolicies.JclMockPolicy
 
getLoggerMethodName() - Method in class org.powermock.api.easymock.mockpolicies.Log4jMockPolicy
 
getLoggerMethodName() - Method in class org.powermock.api.easymock.mockpolicies.Slf4jMockPolicy
 
getLoggerMethods(String, String, String) - Method in class org.powermock.mockpolicies.support.LogPolicySupport
Get the methods that should be mocked.
getLong() - Method in class samples.suppressmethod.SuppressMethod
 
getMessage() - Method in class samples.anonymousmocking.MyAbstractClass
 
getMessage() - Method in class samples.expectnew.ExpectNewDemo
 
getMessage() - Method in class samples.injectmocks.InjectDemo
 
getMessage() - Method in class samples.innerclassmocking.ClassWithNonPrivateInnerClass
 
getMessage() - Method in class samples.innerclassmocking.ClassWithPrivateInnerClass
 
getMessage() - Method in class samples.newmocking.MyClass
 
getMessage(String) - Method in class samples.newmocking.MyClass
 
getMessage() - Method in class samples.newmocking.StupidNew
 
getMessage() - Method in class samples.partialmocking.MockSelfDemoWithSubClass
 
getMessage() - Method in class samples.staticandinstance.StaticAndInstanceDemo
 
getMessage() - Method in class samples.staticandinstance.StaticAndInstanceWithConstructorCodeDemo
 
getMessage() - Method in class samples.suppressconstructor.SuppressConstructorHierarchyParent
 
getMessage() - Method in class samples.suppressconstructor.SuppressConstructorSubclassDemo
 
getMessageFromMyClass() - Method in class samples.anonymousmocking.StupidAnonymous
 
getMessageFromOtherMethodInInnerClass() - Method in class samples.anonymousmocking.StupidAnonymous
 
getMessagesFromSeveralInnerClasses() - Method in class samples.anonymousmocking.StupidAnonymous
 
getMessageWithArgument() - Method in class samples.expectnew.ExpectNewDemo
 
getMessageWithArgument() - Method in class samples.newmocking.StupidNew
 
getMethod(Class<?>, Class<?>...) - Static method in class org.powermock.reflect.internal.WhiteboxImpl
Convenience method to get a method from a class type without having to catch the checked exceptions otherwise required.
getMethod(Class<?>, String, Class<?>...) - Static method in class org.powermock.reflect.internal.WhiteboxImpl
Convenience method to get a method from a class type without having to catch the checked exceptions otherwise required.
getMethod(Class<?>, String, Class<?>...) - Static method in class org.powermock.reflect.Whitebox
Convenience method to get a method from a class type without having to catch the checked exceptions otherwise required.
getMethod(Class<?>, Class<?>...) - Static method in class org.powermock.reflect.Whitebox
Convenience method to get a method from a class type without having to catch the checked exceptions otherwise required.
getMethodMaxLocal(MethodDescription) - Method in class org.powermock.core.bytebuddy.MethodMaxLocals
 
getMethodProxy(Method) - Static method in class org.powermock.core.MockRepository
 
getMethods() - Method in class org.powermock.api.extension.listener.AnnotationMockMetadata
 
getMethods() - Method in interface org.powermock.api.extension.listener.MockMetadata
 
getMethods() - Method in class org.powermock.core.bytebuddy.MaxLocalsExtractor
 
getMethods(Class<?>, String...) - Static method in class org.powermock.reflect.internal.WhiteboxImpl
Get an array of Method's that matches the supplied list of method names.
getMethods(Class<?>, String, Class<?>[], boolean) - Static method in class org.powermock.reflect.internal.WhiteboxImpl
Get an array of Method's that matches the method name and whose argument types are assignable from expectedTypes.
getMethods(Class<?>, String...) - Static method in class org.powermock.reflect.Whitebox
Get an array of Method's that matches the supplied list of method names.
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
 
getMock() - Method in class org.powermock.api.extension.listener.AnnotationMockMetadata
 
getMock() - Method in interface org.powermock.api.extension.listener.MockMetadata
 
getMock() - Method in class org.powermock.api.mockito.internal.expectation.DelegatingToConstructorsOngoingStubbing
 
getMock() - Method in class org.powermock.api.mockito.invocation.MockHandlerAdaptor
 
getMockAnnotations() - Method in class org.powermock.api.extension.listener.AnnotationEnabler
 
getMockAnnotations() - Method in interface org.powermock.core.spi.listener.AnnotationEnablerListener
 
getMockHandlerAdaptor() - Method in class org.powermock.api.mockito.invocation.MockitoMethodInvocationControl
 
getMockMakerClass() - Method in class org.powermock.configuration.MockitoConfiguration
 
getMockSettings() - Method in class org.powermock.api.mockito.invocation.MockHandlerAdaptor
 
getMockTransformerChain() - Method in class org.powermock.core.classloader.MockClassLoader
 
getMockType() - Method in class org.powermock.api.easymock.internal.invocationcontrol.EasyMockMethodInvocationControl
 
getMyChar() - Method in class samples.suppressfield.SuppressField
 
getMyInt() - Method in class samples.expectnew.PrimitiveAndWrapperDemo
 
getMyObject() - Static method in class samples.suppressfield.SuppressField
 
getMyOwnMessage() - Method in class samples.suppressconstructor.SuppressConstructorDemo
 
getMySecondValue() - Method in class samples.suppressfield.SuppressField
 
getMySet() - Static method in class samples.staticinitializer.StaticInitializerExample
 
getMyString() - Method in class samples.spy.SpyObject
 
getMyValue() - Method in class samples.simplemix.SimpleMixConstruction
 
getMyValue() - Static method in class samples.suppressfield.SuppressField
 
getMyWrappedBoolean() - Method in class samples.suppressfield.SuppressField
 
getName() - Method in class org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl
 
getName() - Method in interface samples.expectnew.ITarget
 
getName() - Method in class samples.expectnew.Target
 
getName() - Method in class samples.rule.ThingToTest
 
getNewInstanceControl(Class<?>) - Static method in class org.powermock.core.MockRepository
 
getNumber() - Method in class samples.suppressconstructor.SuppressConstructorHierarchy
This method is just here to check if it works to execute several tests with the same test suite class loader.
getNumberFromInner() - Static method in class samples.singleton.StaticService
 
getNumberFromInnerInstance() - Static method in class samples.singleton.StaticService
 
getObject() - Method in class samples.suppressmethod.SuppressMethod
 
getObject() - Method in class samples.suppressmethod.SuppressMethodExample
 
getObjectStatic() - Static method in class samples.suppressmethod.SuppressMethod
 
getObjectsToAutomaticallyReplayAndVerify() - Static method in class org.powermock.core.MockRepository
 
getObjectWithArgument(String) - Method in class samples.suppressmethod.SuppressMethod
 
getOriginalType() - Method in interface org.powermock.reflect.internal.proxy.UnproxiedType
 
getOriginalUnmockedType(Class<T>) - Static method in class org.powermock.reflect.internal.WhiteboxImpl
Gets the unmocked type.
getPackagesToIgnore(AnnotatedElement) - Method in class org.powermock.modules.testng.internal.PowerMockExpectedExceptionsExtractorImpl
 
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
 
getPrimitiveFromWrapperType(Class<?>) - Static method in class org.powermock.reflect.internal.primitivesupport.PrimitiveWrapper
Get the primitive counter part from a wrapped type.
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.
getQualifier() - Method in class org.powermock.api.extension.listener.AnnotationMockMetadata
 
getQualifier() - Method in interface org.powermock.api.extension.listener.MockMetadata
 
getRandomInteger() - Method in class samples.simplemix.SimpleMixCollaborator
 
getRandomInteger() - Static method in class samples.simplemix.SimpleMixUtilities
 
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
 
getResult() - Method in class samples.mockpolicy.SimpleClassWithADependency
 
getResult() - Method in class samples.mockpolicy.SomeClassWithAMethod
 
getResult() - Method in class samples.mockpolicy.SomeClassWithAMethodParent
 
getReturnTypeAsString(CtMethod) - Static method in class org.powermock.core.transformers.javassist.support.TransformerHelper
 
getSecondMessage() - Method in class samples.partialmocking.MockSelfDemoWithSubClass
 
getService() - Method in class samples.constructor.PublicConstructorWithDependencyDemo
 
getServiceMessage() - Method in class samples.annotationbased.AnnotationDemo
 
getServiceMessage() - Method in interface samples.Service
 
getServiceMessageFromInnerClass() - Method in class samples.anonymousmocking.StupidAnonymous
 
getShort() - Method in class samples.suppressmethod.SuppressMethod
 
getSomething() - Static method in class samples.partialmocking.MockSelfDemo
 
getStackSize() - Method in class org.powermock.core.bytebuddy.Frame.LocalVariable
 
getStackTraceCleaner(StackTraceCleaner) - Method in class org.powermock.api.mockito.internal.exceptions.StackTraceCleanerProvider
 
getState() - Method in class samples.constructor.PrivateConstructorInstantiationDemo
 
getState() - Static method in class samples.partialmocking.MockWithStaticStateDemo
 
getStaticInitializersToSuppress() - Method in class org.powermock.mockpolicies.impl.MockPolicyClassLoadingSettingsImpl
 
getStaticInitializersToSuppress() - Method in interface org.powermock.mockpolicies.MockPolicyClassLoadingSettings
 
getStaticMessage() - Static method in class samples.staticandinstance.StaticAndInstanceDemo
 
getStaticMethodInvocationControl(Class<?>) - Static method in class org.powermock.core.MockRepository
 
getStaticString() - Static method in class samples.staticinitializer.AbstractStaticInitializerExample
 
getStrategy() - Method in class org.powermock.core.transformers.javassist.AbstractJavaAssistMockTransformer
 
getString() - Static method in enum samples.enummocking.MyEnum
 
getString(String) - Method in class samples.partialmocking.MockSelfDemo
 
getString() - Method in class samples.staticinitializer.AbstractStaticInitializerExample
 
getString() - Method in class samples.staticinitializer.SimpleStaticInitializerExample
 
getString2(String) - Method in class samples.partialmocking.MockSelfDemo
 
getString2() - Method in class samples.partialmocking.MockSelfDemo
 
getStringObject() - Method in class samples.suppressmethod.SuppressMethodExample
 
getStringObjectStatic() - Static method in class samples.suppressmethod.SuppressMethodExample
 
getStringTwo() - Method in class samples.spy.SpyObject
 
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.
getSubstitute() - Method in class org.powermock.api.mockito.internal.invocation.MockitoNewInvocationControl
 
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
 
getSystemProperties() - Method in class com.sun.tools.attach.VirtualMachine
Returns the current system properties in the target virtual machine.
getSystemProperties() - Method in class sun.tools.attach.HotSpotVirtualMachine
 
getSystemProperty() - Method in class samples.system.SystemClassUser
 
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.core.transformers.TestClassTransformer
 
getTestClass() - Method in interface org.powermock.modules.junit4.common.internal.PowerMockJUnitRunnerDelegate
 
getTestClass() - Method in class org.powermock.modules.junit4.internal.impl.DelegatingPowerMockRunner
 
getTestClass() - Method in class org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl
 
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 class org.powermock.modules.junit4.common.internal.impl.JUnit4TestSuiteChunkerImpl
 
getTestCount() - Method in interface org.powermock.modules.junit4.common.internal.PowerMockJUnitRunnerDelegate
 
getTestCount() - Method in class org.powermock.modules.junit4.internal.impl.DelegatingPowerMockRunner
 
getTestCount() - Method in class org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl
 
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).
getTestMethodAnnotationType() - Method in class org.powermock.core.transformers.TestClassTransformer
 
getTestMethods(Class<?>, String[]) - Method in class org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl
 
getTestMethodsToBeExecutedByThisClassloader() - Method in class org.powermock.tests.utils.impl.TestChunkImpl
 
getTestMethodsToBeExecutedByThisClassloader() - Method in interface org.powermock.tests.utils.TestChunk
 
getTestWrappedClass() - Method in class org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl
 
getTheSecret() - Method in class samples.constructorargs.ConstructorArgsDemo
 
getTheString() - Method in class samples.methodhierarchy.MethodInvocationDemoGrandParent
 
getTheString() - Method in class samples.methodhierarchy.MethodInvocationDemoParent
 
getThingName() - Method in interface samples.rule.SimpleThing
 
getThingName() - Method in class samples.rule.SimpleThingImpl
 
getTwoStrings() - Method in class samples.partialmocking.MockSelfDemo
 
getType() - Method in class org.powermock.api.extension.listener.AnnotationMockMetadata
 
getType() - Method in interface org.powermock.api.extension.listener.MockMetadata
 
getType() - Method in class org.powermock.core.bytebuddy.Frame.LocalVariable
 
getType(String, String) - Method in class org.powermock.mockpolicies.support.LogPolicySupport
Get the class type representing the fully-qualified name.
getType(Object) - Static method in class org.powermock.reflect.internal.WhiteboxImpl
Gets the type.
getType(Object) - Static method in class org.powermock.reflect.Whitebox
 
getUnproxiedType(Class<?>) - Method in class org.powermock.reflect.internal.proxy.ProxyFrameworks
 
getUnproxiedType(Object) - Method in class org.powermock.reflect.internal.proxy.ProxyFrameworks
 
getUnproxiedType(Class<T>) - Static method in class org.powermock.reflect.internal.WhiteboxImpl
 
getUnproxyType(Object) - Static method in class org.powermock.reflect.internal.WhiteboxImpl
Gets the type.
getUnproxyType(Object) - Static method in class org.powermock.reflect.Whitebox
Gets the type.
getValue() - Method in class samples.abstractmocking.AbstractMethodMocking
 
getValue() - Method in class samples.classhierarchy.Parent
 
getValue() - Method in class samples.classwithinnermembers.ClassWithInnerMembers
 
getValueForAnonymousInnerClass() - Method in class samples.classwithinnermembers.ClassWithInnerMembers
 
getValueForInnerClassWithConstructorArgument() - Method in class samples.classwithinnermembers.ClassWithInnerMembers
 
getValueForStaticInnerClassWithConstructorArgument() - Method in class samples.classwithinnermembers.ClassWithInnerMembers
 
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

h() - Static method in class samples.stress.ClassWithStatic
 
h1() - Method in class samples.stress.StressSample
 
handleException(TestMethod, Throwable) - Method in class org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.PowerMockJUnit44MethodRunner
 
handleException(TestMethod, Throwable) - Method in class org.powermock.modules.junit4.internal.impl.PowerMockJUnit47RunnerDelegateImpl.PowerMockJUnit47MethodRunner
Since a JUnit 4.7 rule may potentially deal with "unexpected" exceptions we cannot handle the exception before the rule has been completely evaluated.
hasBoxedCounterPart(Class<?>) - Static method in class org.powermock.reflect.internal.primitivesupport.BoxedWrapper
Returns true if type has a primitive counter-part.
hasClass(Class<T>, ClassLoader) - Static method in class org.powermock.api.support.ClassLoaderUtil
Check whether a classloader can load the given class.
hashCode() - Method in class com.sun.tools.attach.VirtualMachine
Returns a hash-code value for this VirtualMachine.
hashCode() - Method in class com.sun.tools.attach.VirtualMachineDescriptor
Returns a hash-code value for this VirtualMachineDescriptor.
hashCode() - Method in class org.powermock.api.extension.listener.AnnotationMockMetadata
 
hashCode() - Method in class samples.equalswithgetclass.EqualsWithGetClass
 
hashCode() - Method in class samples.expectnew.ExpectNewDemo
 
hashCode() - Method in class samples.hashcode.HashCodeInitializedInCtor
 
hashCode() - Method in class samples.partialmocking.MockSelfDemo
 
HashCodeInitializedInCtor - Class in samples.hashcode
 
HashCodeInitializedInCtor() - Constructor for class samples.hashcode.HashCodeInitializedInCtor
 
hasMethodProxy(Method) - Static method in class org.powermock.core.MockRepository
 
hasPrimitiveCounterPart(Class<?>) - Static method in class org.powermock.reflect.internal.primitivesupport.PrimitiveWrapper
Returns true if type has a primitive counter-part.
hasRules - Variable in class org.powermock.modules.junit4.internal.impl.PowerMockJUnit47RunnerDelegateImpl
 
heapHisto(Object...) - Method in class sun.tools.attach.HotSpotVirtualMachine
 
HoldingFinalDemo - Class in samples.finalmocking
 
HoldingFinalDemo() - Constructor for class samples.finalmocking.HoldingFinalDemo
 
HotSpotVirtualMachine - Class in sun.tools.attach
 

I

id() - Method in class com.sun.tools.attach.VirtualMachine
Returns the identifier for this Java virtual machine.
id() - Method in class com.sun.tools.attach.VirtualMachineDescriptor
Return the identifier component of this descriptor.
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
 
init(Object) - Method in class org.powermock.modules.junit4.rule.PowerMockRule
 
init() - Static method in class samples.largemethod.MethodExceedingJvmLimit
Method size after instrumentation is equal to 91265.
initialize(Class<?>, JavaAgentClassRegister) - Static method in class org.powermock.modules.agent.support.PowerMockAgentTestInitializer
 
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.
initialize() - Method in class samples.partialmocking.PartialMockingWithConstructor
 
initializeIfNeeded() - Static method in class org.powermock.modules.agent.PowerMockAgent
 
initializeIfPossible() - Static method in class org.powermock.modules.agent.PowerMockAgent
 
inject(Object, Class<? extends Annotation>, AnnotationMockCreator) - Method in class org.powermock.api.extension.listener.EasyMockAnnotationSupport
 
injectDefaultMocks() - Method in class org.powermock.api.extension.listener.EasyMockAnnotationSupport
 
InjectDemo - Class in samples.injectmocks
 
InjectDemo() - Constructor for class samples.injectmocks.InjectDemo
 
InjectDependencyHolder - Class in samples.injectmocks
Simple class used to demonstrate setter injection..
InjectDependencyHolder() - Constructor for class samples.injectmocks.InjectDependencyHolder
 
InjectDependencyHolderQualifier - Class in samples.injectmocks
Simple class used to demonstrate setter injection..
InjectDependencyHolderQualifier() - Constructor for class samples.injectmocks.InjectDependencyHolderQualifier
 
InjectFieldSearcher - Interface in org.powermock.api.extension
 
injectMock(Object, MockMetadata, AnnotationMockCreator, InjectFieldSearcher) - Method in class org.powermock.api.extension.listener.EasyMockAnnotationSupport
 
injectMocks() - Method in class org.powermock.api.extension.listener.EasyMockAnnotationSupport
 
injectNiceMocks() - Method in class org.powermock.api.extension.listener.EasyMockAnnotationSupport
 
injectStrictMocks() - Method in class org.powermock.api.extension.listener.EasyMockAnnotationSupport
 
injectTestSubjectMocks() - Method in class org.powermock.api.extension.listener.EasyMockAnnotationSupport
 
InnerClass() - Constructor for class samples.innerclassmocking.ClassWithNonPrivateInnerClass.InnerClass
 
instantiateUseMe() - Method in class samples.reflection.ReflectionInstantiator
 
instrumentation() - Static method in class org.powermock.modules.agent.PowerMockAgent
 
InstrumentMockTransformer - Class in org.powermock.core.transformers.javassist
 
InstrumentMockTransformer(TransformStrategy) - Constructor for class org.powermock.core.transformers.javassist.InstrumentMockTransformer
 
InterfaceComputation - Class in samples.staticinitializer
 
InterfaceComputation() - Constructor for class samples.staticinitializer.InterfaceComputation
 
InterfaceMethodHierarchyUsage - Class in samples.interfacemethodfinding
There was a bug in PowerMock 1.2 and its predecessors that made PowerMock WhiteboxImpl.getMethod(Class, Class...) fail when invoking proxified interface methods declared in extended interfaces.
InterfaceMethodHierarchyUsage() - Constructor for class samples.interfacemethodfinding.InterfaceMethodHierarchyUsage
 
InterfaceWithStaticFinalField - Interface in samples.interfacefieldchange
The purpose of the simple class is to demonstrate PowerMocks (possibly future) ability to change static final fields in an interface.
internalAssertNotNull(Object, String) - Static method in class org.powermock.utils.Asserts
 
internalGetNumberFromInnerInstance() - Method in class samples.singleton.StaticService
 
InvocationControlAssertionError - Class in org.powermock.api.mockito.internal.invocation
 
InvocationControlAssertionError() - Constructor for class org.powermock.api.mockito.internal.invocation.InvocationControlAssertionError
 
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(Object, Method, Object[]) - Method in class org.powermock.api.easymock.internal.invocationcontrol.EasyMockMethodInvocationControl
 
invoke(Class<?>, Object[], Class<?>[]) - Method in class org.powermock.api.easymock.internal.invocationcontrol.EasyMockNewInvocationControl
 
invoke(Class<?>, Object[], Class<?>[]) - Method in class org.powermock.api.mockito.internal.invocation.MockitoNewInvocationControl
 
invoke(Object...) - Method in class org.powermock.api.mockito.internal.verification.DefaultPrivateMethodVerification
 
invoke(String, Object...) - Method in class org.powermock.api.mockito.internal.verification.DefaultPrivateMethodVerification
 
invoke(Method) - Method in class org.powermock.api.mockito.internal.verification.DefaultPrivateMethodVerification
 
invoke(Object, Method, Object[]) - Method in class org.powermock.api.mockito.invocation.MockitoMethodInvocationControl
 
invoke(Object...) - Method in interface org.powermock.api.mockito.verification.PrivateMethodVerification
Deprecated.
Use PrivateMethodVerification.invoke(String, Object...) instead. Will be remove in PowerMock 3.0
invoke(Method) - Method in interface org.powermock.api.mockito.verification.PrivateMethodVerification
Verify calls to the specific method.
invoke(String, Object...) - Method in interface org.powermock.api.mockito.verification.PrivateMethodVerification
Verify a private method call by specifying the method name of the method to verify.
invoke(Class<?>, Object[], Class<?>[]) - Method in interface org.powermock.core.spi.NewInvocationControl
Invoke the constructor invocation control
invoke(Object, Method, Method, Object[]) - Method in class org.powermock.modules.testng.internal.PowerMockTestNGMethodHandler
 
invokeAPrivateVoidMethod(int) - Method in class samples.expectvoid.ExpectVoidDemo
 
invokeConstructor(Class<T>, Class<?>[], Object[]) - Static method in class org.powermock.reflect.internal.WhiteboxImpl
Invoke a constructor.
invokeConstructor(Class<T>, Object...) - Static method in class org.powermock.reflect.internal.WhiteboxImpl
Invoke a constructor.
invokeConstructor(Class<T>, Class<?>[], Object[]) - Static method in class org.powermock.reflect.Whitebox
Invoke a constructor.
invokeConstructor(Class<T>, Object...) - Static method in class org.powermock.reflect.Whitebox
Invoke a constructor.
InvokeConstructor - Class in samples.suppressconstructor
 
InvokeConstructor() - Constructor for class samples.suppressconstructor.InvokeConstructor
 
invokeMethod(Object, Object...) - Static method in class org.powermock.reflect.internal.WhiteboxImpl
Invoke a private or inner class method without the need to specify the method name.
invokeMethod(Class<?>, Object...) - Static method in class org.powermock.reflect.internal.WhiteboxImpl
Invoke a private or inner class method without the need to specify the method name.
invokeMethod(Object, String, Object...) - Static method in class org.powermock.reflect.internal.WhiteboxImpl
Invoke a private or inner class method.
invokeMethod(Object, String, Class<?>[], Object...) - Static method in class org.powermock.reflect.internal.WhiteboxImpl
Invoke a private or inner class method in cases where power mock cannot automatically determine the type of the parameters, for example when mixing primitive types and wrapper types in the same method.
invokeMethod(Object, String, Class<?>, Class<?>[], Object...) - Static method in class org.powermock.reflect.internal.WhiteboxImpl
Invoke a private or inner class method in a subclass (defined by definedIn) in cases where power mock cannot automatically determine the type of the parameters, for example when mixing primitive types and wrapper types in the same method.
invokeMethod(Object, Class<?>, String, Object...) - Static method in class org.powermock.reflect.internal.WhiteboxImpl
Invoke a private or inner class method in that is located in a subclass of the tested instance.
invokeMethod(Object, Class<?>, String, Class<?>[], Object...) - Static method in class org.powermock.reflect.internal.WhiteboxImpl
Invoke a private method in that is located in a subclass of an instance.
invokeMethod(Class<?>, String, Object...) - Static method in class org.powermock.reflect.internal.WhiteboxImpl
Invoke a private or inner class method.
invokeMethod(Object, Object...) - Static method in class org.powermock.reflect.Whitebox
Invoke a private or inner class method without the need to specify the method name.
invokeMethod(Class<?>, Object...) - Static method in class org.powermock.reflect.Whitebox
Invoke a private or inner class static method without the need to specify the method name.
invokeMethod(Object, String, Object...) - Static method in class org.powermock.reflect.Whitebox
Invoke a private or inner class method.
invokeMethod(Object, String, Class<?>[], Object...) - Static method in class org.powermock.reflect.Whitebox
Invoke a private or inner class method in cases where PowerMock cannot automatically determine the type of the parameters, for example when mixing primitive types and wrapper types in the same method.
invokeMethod(Object, String, Class<?>, Class<?>[], Object...) - Static method in class org.powermock.reflect.Whitebox
Invoke a private or inner class method in a subclass (defined by definedIn) in cases where PowerMock cannot automatically determine the type of the parameters, for example when mixing primitive types and wrapper types in the same method.
invokeMethod(Object, Class<?>, String, Object...) - Static method in class org.powermock.reflect.Whitebox
Invoke a private or inner class method in that is located in a subclass of the instance.
invokeMethod(Object, Class<?>, String, Class<?>[], Object...) - Static method in class org.powermock.reflect.Whitebox
Invoke a private or inner class method in that is located in a subclass of the instance.
invokeMethod(Class<?>, String, Object...) - Static method in class org.powermock.reflect.Whitebox
Invoke a static private or inner class method.
invokeNative(String) - Method in class samples.nativemocking.NativeService
 
invokeNativeMethod(String) - Method in class samples.nativemocking.NativeMockingSample
 
invokeTestMethod(Method, RunNotifier) - Method in class org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl
 
invokeVarArgsMethod(int, int) - Method in class samples.privatemocking.PrivateMethodDemo
 
invokeVoid(StringBuilder) - Method in class samples.suppressmethod.SuppressMethod
 
invokeVoidMethod() - Method in class samples.expectnew.ExpectNewDemo
 
invokeVoidMethod() - Method in class samples.newmocking.StupidNew
 
IOUtils - Class in org.powermock.utils
 
IOUtils() - Constructor for class org.powermock.utils.IOUtils
 
isAgentMode() - Method in enum org.powermock.core.transformers.TransformStrategy
Check if this strategy is supported only by Java Agent.
isClass(Object) - Static method in class org.powermock.reflect.internal.WhiteboxImpl
Checks if is class.
isClassloaderMode() - Method in enum org.powermock.core.transformers.TransformStrategy
Check if this strategy is supported by class loader.
isEmpty() - Method in class org.powermock.core.ListMap
 
isGreaterThanOrEqualTo(String) - Static method in class org.powermock.modules.junit4.common.internal.impl.JUnitVersion
 
isHandled(Method) - Method in class org.powermock.modules.testng.internal.TestNGMethodFilter
 
isHandledByMockito() - Static method in class org.powermock.api.mockito.internal.stubbing.MockitoRealMethodInvocation
 
isInjectMocksSupported() - Method in class org.powermock.api.easymock.EasyMockConfiguration
 
isInstanceOf(Class<?>) - Static method in class org.powermock.core.transformers.support.FilterPredicates
 
isInterface() - Method in interface org.powermock.core.transformers.ClassWrapper
Check if class is interface
isInterface() - Method in class org.powermock.core.transformers.javassist.support.JavaAssistClassWrapperFactory.JavaAssistClassWrapper
 
isJava6OrLater() - Static method in class org.powermock.modules.agent.PowerMockAgent
 
isJUnit3TestMethod() - Method in class org.powermock.modules.junit4.common.internal.impl.JUnit4TestMethodChecker
 
isJUnit4TestMethod() - Method in class org.powermock.modules.junit4.common.internal.impl.JUnit4TestMethodChecker
 
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 class org.powermock.api.easymock.internal.invocationcontrol.EasyMockMethodInvocationControl
 
isMocked(Method) - Method in class org.powermock.api.mockito.invocation.MockitoMethodInvocationControl
 
isMocked(Method) - Method in interface org.powermock.core.spi.MethodInvocationControl
Determine whether a certain method is mocked by this Invocation Control.
isMockito1() - Static method in class org.powermock.api.mockito.MockitoVersion
 
isMockito2() - Static method in class org.powermock.api.mockito.MockitoVersion
 
isModifiedByAgent(ClassLoader, String) - Method in interface org.powermock.core.agent.JavaAgentClassRegister
Check if class with className has been modified for the given class loader
isModifiedByAgent(ClassLoader, String) - Method in class org.powermock.modules.agent.support.JavaAgentClassRegisterImpl
 
isMyBoolean() - Method in class samples.suppressfield.SuppressField
 
isNotRuleInitialized(Object) - Method in class org.powermock.modules.junit4.rule.PowerMockRule
 
isNotSyntheticField(FieldInfo) - Static method in class org.powermock.core.transformers.javassist.support.TransformerHelper
 
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
 
isReallyEasyMock() - Method in class org.powermock.api.easymock.EasyMockConfiguration
 
isTestMethod() - Method in class org.powermock.modules.junit4.common.internal.impl.JUnit4TestMethodChecker
 
isTestSubjectSupported() - Method in class org.powermock.api.easymock.EasyMockConfiguration
 
isTypeMockable(Class<?>) - Method in class org.powermock.api.mockito.mockmaker.PowerMockMaker
 
isValid() - Method in class org.powermock.core.bytebuddy.ConditionalStateStackManipulation
 
isValid() - Method in enum org.powermock.core.bytebuddy.PrimitiveBoxing
 
ITarget - Interface in samples.expectnew
 
ItemRepository - Class in samples.suppressfield
 
ItemRepository() - Constructor for class samples.suppressfield.ItemRepository
 
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.
JavaAgentClassRegisterImpl - Class in org.powermock.modules.agent.support
Basic not thread-safety implementation of the JavaAgentClassRegister
JavaAgentClassRegisterImpl() - Constructor for class org.powermock.modules.agent.support.JavaAgentClassRegisterImpl
 
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
 
JavaAgentFrameworkRegisterImpl - Class in org.powermock.api.extension.agent
Implementation of JavaAgentFrameworkRegister for Mockito framework.
JavaAgentFrameworkRegisterImpl() - Constructor for class org.powermock.api.extension.agent.JavaAgentFrameworkRegisterImpl
 
JavaAssistClassWrapperFactory - Class in org.powermock.core.transformers.javassist.support
 
JavaAssistClassWrapperFactory() - Constructor for class org.powermock.core.transformers.javassist.support.JavaAssistClassWrapperFactory
 
JavaAssistClassWrapperFactory.JavaAssistClassWrapper - Class in org.powermock.core.transformers.javassist.support
 
JavaAssistTestClassTransformer - Class in org.powermock.core.transformers.javassist.testclass
 
JavassistMockClassLoader - Class in org.powermock.core.classloader.javassist
 
JavassistMockClassLoader(String[]) - Constructor for class org.powermock.core.classloader.javassist.JavassistMockClassLoader
 
JavassistMockClassLoader(String[], String[], UseClassPathAdjuster) - Constructor for class org.powermock.core.classloader.javassist.JavassistMockClassLoader
 
JavassistMockClassLoader(MockClassLoaderConfiguration) - Constructor for class org.powermock.core.classloader.javassist.JavassistMockClassLoader
 
JavassistMockClassLoader(MockClassLoaderConfiguration, UseClassPathAdjuster) - Constructor for class org.powermock.core.classloader.javassist.JavassistMockClassLoader
 
JavassistMockTransformerChainFactory - Class in org.powermock.core.transformers.javassist
 
JavassistMockTransformerChainFactory() - Constructor for class org.powermock.core.transformers.javassist.JavassistMockTransformerChainFactory
 
JclMockPolicy - Class in org.powermock.api.easymock.mockpolicies
A Jakarta Commons-Logging (JCL) mock policy.
JclMockPolicy() - Constructor for class org.powermock.api.easymock.mockpolicies.JclMockPolicy
 
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
 
JUnit4TestMethodChecker - Class in org.powermock.modules.junit4.common.internal.impl
 
JUnit4TestMethodChecker(Class<?>, Method) - Constructor for class org.powermock.modules.junit4.common.internal.impl.JUnit4TestMethodChecker
 
JUnit4TestSuiteChunker - Interface in org.powermock.modules.junit4.common.internal
 
JUnit4TestSuiteChunkerImpl - Class in org.powermock.modules.junit4.common.internal.impl
 
JUnitVersion - Class in org.powermock.modules.junit4.common.internal.impl
 
JUnitVersion() - Constructor for class org.powermock.modules.junit4.common.internal.impl.JUnitVersion
 

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

lengthOf(StringBuilder) - Method in class samples.system.SystemClassUser
 
LinuxVirtualMachine - Class in sun.tools.attach
 
LinuxVirtualMachine(AttachProvider, String) - Constructor for class sun.tools.attach.LinuxVirtualMachine
Attaches to the target VM
list() - Static method in class com.sun.tools.attach.VirtualMachine
Return a list of Java virtual machines.
ListMap<K,V> - Class in org.powermock.core
 
ListMap() - Constructor for class org.powermock.core.ListMap
 
listVirtualMachines() - Method in class com.sun.tools.attach.spi.AttachProvider
Lists the Java virtual machines known to this provider.
load(Variable) - Static method in class org.powermock.core.bytebuddy.Variable.VariableAccess
 
load(Variable, boolean) - Static method in class org.powermock.core.bytebuddy.Variable.VariableAccess
 
loadAgent(String, String) - Method in class com.sun.tools.attach.VirtualMachine
Loads an agent.
loadAgent(String) - Method in class com.sun.tools.attach.VirtualMachine
Loads an agent.
loadAgent(String, String) - Method in class sun.tools.attach.HotSpotVirtualMachine
 
loadAgentLibrary(String, String) - Method in class com.sun.tools.attach.VirtualMachine
Loads an agent library.
loadAgentLibrary(String) - Method in class com.sun.tools.attach.VirtualMachine
Loads an agent library.
loadAgentLibrary(String, String) - Method in class sun.tools.attach.HotSpotVirtualMachine
 
loadAgentPath(String, String) - Method in class com.sun.tools.attach.VirtualMachine
Load a native agent library by full pathname.
loadAgentPath(String) - Method in class com.sun.tools.attach.VirtualMachine
Load a native agent library by full pathname.
loadAgentPath(String, String) - Method in class sun.tools.attach.HotSpotVirtualMachine
 
loadClass(Class<T>, ClassLoader) - Static method in class org.powermock.api.support.ClassLoaderUtil
Loads a class with a specific classloader, wraps the ClassNotFoundException in a runtime exeception.
loadClass(String) - Static method in class org.powermock.api.support.ClassLoaderUtil
Loads a class from the current classloader
loadClass(String, ClassLoader) - Static method in class org.powermock.api.support.ClassLoaderUtil
Load a class from a specific classloader
loadClassByThisClassLoader(String) - Method in class org.powermock.core.classloader.MockClassLoader
 
loadUnmockedClass(String, ProtectionDomain) - Method in class org.powermock.core.classloader.javassist.JavassistMockClassLoader
 
loadUnmockedClass(String, ProtectionDomain) - Method in class org.powermock.core.classloader.MockClassLoader
 
localDataDump() - Method in class sun.tools.attach.HotSpotVirtualMachine
 
locals() - Method in class org.powermock.core.bytebuddy.Frame
 
localSize() - Method in class org.powermock.core.bytebuddy.Frame
 
Log4jMockPolicy - Class in org.powermock.api.easymock.mockpolicies
A log4j mock policy.
Log4jMockPolicy() - Constructor for class org.powermock.api.easymock.mockpolicies.Log4jMockPolicy
 
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

main(String[]) - Static method in class samples.staticinitializer.InterfaceComputation
 
main(String[]) - Static method in class samples.swing.SimpleSwingDemo
 
makeDate() - Method in class samples.expectnew.ExpectNewDemo
 
makeMyInnerClassWithPackageConstructorWithMultArgs(String, String, String) - Method in class samples.classwithinnermembers.ClassWithInnerMembers
 
makeMyInnerClassWithPrivateConstructorWithDiffMultArgs(String, int, String) - Method in class samples.classwithinnermembers.ClassWithInnerMembers
 
makeMyInnerClassWithPrivateConstructorWithMultArgs(String, String, String) - Method in class samples.classwithinnermembers.ClassWithInnerMembers
 
makeMyInnerClassWithProtectedConstructorWithMultArgs(String, String, String) - Method in class samples.classwithinnermembers.ClassWithInnerMembers
 
makeMyInnerClassWithPublicConstructorWithMultArgs(String, String, String) - Method in class samples.classwithinnermembers.ClassWithInnerMembers
 
mark(ClassWrapper<T>) - Method in interface org.powermock.core.classloader.ClassMarker
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.
matches(Field) - Method in class org.powermock.reflect.internal.matcherstrategies.AllFieldsMatcherStrategy
 
matches(Field) - Method in class org.powermock.reflect.internal.matcherstrategies.AssignableFromFieldTypeMatcherStrategy
 
matches(Field) - Method in class org.powermock.reflect.internal.matcherstrategies.AssignableToFieldTypeMatcherStrategy
 
matches(Field) - Method in class org.powermock.reflect.internal.matcherstrategies.FieldAnnotationMatcherStrategy
 
matches(Field) - Method in class org.powermock.reflect.internal.matcherstrategies.FieldMatcherStrategy
A field matcher that checks if a field matches a given criteria.
matches(Field) - Method in class org.powermock.reflect.internal.matcherstrategies.FieldNameMatcherStrategy
 
matches(Field) - Method in class org.powermock.reflect.internal.matcherstrategies.FieldTypeMatcherStrategy
 
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
 
MaxLocalsExtractor - Class in org.powermock.core.bytebuddy
 
MaxLocalsExtractor() - Constructor for class org.powermock.core.bytebuddy.MaxLocalsExtractor
 
maxLocalVariableIndex() - Method in class org.powermock.core.bytebuddy.Frame
 
MemberMatcher - Class in org.powermock.api.support.membermodification
Finds members in classes.
MemberMatcher() - Constructor for class org.powermock.api.support.membermodification.MemberMatcher
 
MemberModifier - Class in org.powermock.api.support.membermodification
Contains various utilities for modifying members of classes such as constructors, fields and methods.
MemberModifier() - Constructor for class org.powermock.api.support.membermodification.MemberModifier
 
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
 
messageStorage - Static variable in class samples.singleton.StaticService
 
method(Class<?>, String, Class<?>...) - Static method in class org.powermock.api.support.membermodification.MemberMatcher
Get a method when it cannot be determined by methodName or parameter types only.
method(Class<?>, Class<?>...) - Static method in class org.powermock.api.support.membermodification.MemberMatcher
Get a method without having to specify the method name.
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
 
methodCallingPrimitiveTestMethod() - Method in class samples.privatemocking.PrivateMethodDemo
 
methodCallingWrappedTestMethod() - Method in class samples.privatemocking.PrivateMethodDemo
 
methodDescription(Method) - Method in class org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl
 
MethodExceedingJvmLimit - Class in samples.largemethod
Example of class with method which after instrumentation is larger than JVM limit.
MethodExceedingJvmLimit() - Constructor for class samples.largemethod.MethodExceedingJvmLimit
 
MethodInvocationControl - Interface in org.powermock.core.spi
The purpose of a method invocation control is to invoke a proxy to simulate a method call.
MethodInvocationDemo - Class in samples.methodhierarchy
 
MethodInvocationDemo() - Constructor for class samples.methodhierarchy.MethodInvocationDemo
 
MethodInvocationDemoGrandParent - Class in samples.methodhierarchy
 
MethodInvocationDemoGrandParent() - Constructor for class samples.methodhierarchy.MethodInvocationDemoGrandParent
 
MethodInvocationDemoParent - Class in samples.methodhierarchy
 
MethodInvocationDemoParent() - Constructor for class samples.methodhierarchy.MethodInvocationDemoParent
 
MethodInvocationException - Exception in org.powermock.reflect.exceptions
A run-time exception that may be thrown to indicate that a method invocation failed.
MethodInvocationException(String) - Constructor for exception org.powermock.reflect.exceptions.MethodInvocationException
Constructs a new exception with the specified detail message.
MethodInvocationException(String, Throwable) - Constructor for exception org.powermock.reflect.exceptions.MethodInvocationException
Constructs a new runtime exception with the specified detail message and cause.
MethodInvocationException(Throwable) - Constructor for exception org.powermock.reflect.exceptions.MethodInvocationException
Constructs a new exception with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause).
MethodMaxLocals - Class in org.powermock.core.bytebuddy
 
MethodNotFoundException - Exception in org.powermock.reflect.exceptions
A run-time exception that may be thrown to indicate that a method was not found.
MethodNotFoundException(String) - Constructor for exception org.powermock.reflect.exceptions.MethodNotFoundException
Constructs a new exception with the specified detail message.
MethodProxy - Class in org.powermock.api.support
 
MethodProxy() - Constructor for class org.powermock.api.support.MethodProxy
 
MethodReplaceStrategy - Interface in org.powermock.api.support.membermodification.strategy
Specifies the replace strategy for a method.
MethodReplaceStrategyImpl - Class in org.powermock.api.support.membermodification.strategy.impl
 
MethodReplaceStrategyImpl(Method) - Constructor for class org.powermock.api.support.membermodification.strategy.impl.MethodReplaceStrategyImpl
 
methods(Class<?>, String, String...) - Static method in class org.powermock.api.support.membermodification.MemberMatcher
Get an array of Method's that matches the supplied list of method names.
methods(Method, Method...) - Static method in class org.powermock.api.support.membermodification.MemberMatcher
Get an array of Field's.
methods(Class<?>, String[]) - Static method in class org.powermock.api.support.membermodification.MemberMatcher
Get an array of Method's that matches the supplied list of method names.
methodsDeclaredIn(Class<?>, Class<?>...) - Static method in class org.powermock.api.support.membermodification.MemberMatcher
Get all methods in a class hierarchy of the supplied classes.
MethodSignatures - Enum in org.powermock.core.transformers
 
methodSignatureWriter() - Method in enum org.powermock.core.transformers.MethodSignatures
 
MethodSignatureWriter<T> - Interface in org.powermock.core.transformers
 
MethodSizeMockTransformer - Class in org.powermock.core.transformers.javassist
According to JVM specification method size must be lower than 65536 bytes.
MethodSizeMockTransformer(TransformStrategy) - Constructor for class org.powermock.core.transformers.javassist.MethodSizeMockTransformer
 
MethodStubStrategy<T> - Interface in org.powermock.api.support.membermodification.strategy
Specifies the return value when stubbing a method.
MethodStubStrategyImpl<T> - Class in org.powermock.api.support.membermodification.strategy.impl
 
MethodStubStrategyImpl(Method) - Constructor for class org.powermock.api.support.membermodification.strategy.impl.MethodStubStrategyImpl
 
methodToBeStubbed() - Static method in class samples.partialmocking.MockSelfDemo
 
methodToMock() - Method in class samples.partialmocking.PartialMockingExample
 
methodToTest() - Method in class samples.partialmocking.PartialMockingExample
 
methodToTest() - Method in class samples.partialmocking.PrivatePartialMockingExample
 
methodUnderTest() - Method in class samples.newmocking.NewDemo
 
Mock - Annotation Type in org.powermock.api.easymock.annotation
This annotation can be placed on those fields in your test class that should be mocked.
mock(Class<T>, boolean, boolean, Object, MockSettings, Method...) - Static method in class org.powermock.api.mockito.internal.mockcreation.DefaultMockCreator
 
mock(Class<T>) - Static method in class org.powermock.api.mockito.PowerMockito
Creates a mock object that supports mocking of final and native methods.
mock(Class<T>, Answer) - Static method in class org.powermock.api.mockito.PowerMockito
Creates mock with a specified strategy for its answers to interactions.
mock(Class<T>, MockSettings) - Static method in class org.powermock.api.mockito.PowerMockito
Creates a mock with some non-standard settings.
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_CREATOR_IMPLEMENTATION_CLASS - Static variable in class org.powermock.api.extension.agent.JavaAgentFrameworkRegisterImpl
 
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[]) - Constructor for class org.powermock.core.classloader.MockClassLoader
Creates a new instance of the based on the following parameters:
MockClassLoader(MockClassLoaderConfiguration, ClassWrapperFactory) - 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
 
MockClassLoaderConfiguration - Class in org.powermock.core.classloader
The instance of the class provides information about classes which have to be mocked, loaded without modification or defer to system class loader.
MockClassLoaderConfiguration() - Constructor for class org.powermock.core.classloader.MockClassLoaderConfiguration
Create an instance of configuration without any classes to mock or ignore.
MockClassLoaderConfiguration(String[], String[]) - Constructor for class org.powermock.core.classloader.MockClassLoaderConfiguration
Create an instance of configuration
MockClassLoaderFactory - Class in org.powermock.core.classloader
 
MockClassLoaderFactory(Class<?>) - Constructor for class org.powermock.core.classloader.MockClassLoaderFactory
 
MockClassLoaderFactory(Class<?>, String[]) - Constructor for class org.powermock.core.classloader.MockClassLoaderFactory
 
MockCreator - Interface in org.powermock.api.mockito.internal.mockcreation
An implementer of interface is reasonable for creating of an mocked instance of specific type.
MockGateway - Class in org.powermock.core
All mock invocations are routed through this gateway.
MockGateway() - Constructor for class org.powermock.core.MockGateway
 
MockGetawayCall - Class in org.powermock.core.bytebuddy
 
MockGetawayCall(Class) - Constructor for class org.powermock.core.bytebuddy.MockGetawayCall
 
MockGetawayCall.ForType - Class in org.powermock.core.bytebuddy
 
MockGetawayCall.WithArguments - Class in org.powermock.core.bytebuddy
 
MockHandlerAdaptor<T> - Class in org.powermock.api.mockito.invocation
The class provides a access to method and data of MockHandler from the given mock instance.
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
 
mockitoInvocationFinished() - Static method in class org.powermock.api.mockito.internal.stubbing.MockitoRealMethodInvocation
 
mockitoInvocationStarted() - Static method in class org.powermock.api.mockito.internal.stubbing.MockitoRealMethodInvocation
 
MockitoMethodInvocationControl<T> - Class in org.powermock.api.mockito.invocation
A Mockito implementation of the MethodInvocationControl interface.
MockitoMethodInvocationControl(Object, T, Method...) - Constructor for class org.powermock.api.mockito.invocation.MockitoMethodInvocationControl
Creates a new instance with a delegator.
MockitoNewInvocationControl<T> - Class in org.powermock.api.mockito.internal.invocation
 
MockitoNewInvocationControl(InvocationSubstitute<T>) - Constructor for class org.powermock.api.mockito.internal.invocation.MockitoNewInvocationControl
 
MockitoPowerMockReporter - Class in org.powermock.api.mockito.expectation.reporter
 
MockitoPowerMockReporter() - Constructor for class org.powermock.api.mockito.expectation.reporter.MockitoPowerMockReporter
 
MockitoRealMethodInvocation - Class in org.powermock.api.mockito.internal.stubbing
 
MockitoVersion - Class in org.powermock.api.mockito
 
mockMe() - Method in class samples.java.ClassInsideJavaPackage
 
MockMetadata - Interface in org.powermock.api.extension.listener
 
MockNice - Annotation Type in org.powermock.api.easymock.annotation
This annotation can be placed on those fields in your test class that should be mocked in a nice manner (i.e.
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
 
MockSelfDemo - Class in samples.partialmocking
 
MockSelfDemo(int) - Constructor for class samples.partialmocking.MockSelfDemo
 
MockSelfDemo(Object) - Constructor for class samples.partialmocking.MockSelfDemo
 
MockSelfDemoSubClass - Class in samples.partialmocking
 
MockSelfDemoSubClass() - Constructor for class samples.partialmocking.MockSelfDemoSubClass
 
MockSelfDemoWithSubClass - Class in samples.partialmocking
 
MockSelfDemoWithSubClass() - Constructor for class samples.partialmocking.MockSelfDemoWithSubClass
 
MockSelfPrivateFieldServiceClass - Class in samples.privatefield
A class that uses a private Service field and no setter.
MockSelfPrivateFieldServiceClass() - Constructor for class samples.privatefield.MockSelfPrivateFieldServiceClass
 
MockSelfWithNoDefaultConstructorDemo - Class in samples.partialmocking
 
MockSelfWithNoDefaultConstructorDemo(int) - Constructor for class samples.partialmocking.MockSelfWithNoDefaultConstructorDemo
 
mockStatic(Class<?>, Method...) - Static method in class org.powermock.api.easymock.PowerMock
Enable static mocking for a class.
mockStatic(Class<?>) - Static method in class org.powermock.api.easymock.PowerMock
Enable static mocking for a class.
mockStatic(Class<?>, Class<?>...) - Static method in class org.powermock.api.mockito.PowerMockito
Enable static mocking for all methods of a class.
mockStatic(Class<?>, Answer) - Static method in class org.powermock.api.mockito.PowerMockito
Creates class mock with a specified strategy for its answers to interactions.
mockStatic(Class<?>, MockSettings) - Static method in class org.powermock.api.mockito.PowerMockito
Creates a class mock with some non-standard settings.
mockStaticNice(Class<?>, Method...) - Static method in class org.powermock.api.easymock.PowerMock
Enable nice static mocking for a class.
mockStaticNice(Class<?>) - Static method in class org.powermock.api.easymock.PowerMock
Enable nice static mocking for a class.
mockStaticPartial(Class<?>, String, Class<?>, Class<?>...) - Static method in class org.powermock.api.easymock.PowerMock
Mock a single static method.
mockStaticPartial(Class<?>, String...) - Static method in class org.powermock.api.easymock.PowerMock
A utility method that may be used to mock several static methods in an easy way (by just passing in the method names of the method you wish to mock).
mockStaticPartialNice(Class<?>, String, Class<?>, Class<?>...) - Static method in class org.powermock.api.easymock.PowerMock
Mock a single static method (nice).
mockStaticPartialNice(Class<?>, String...) - Static method in class org.powermock.api.easymock.PowerMock
A utility method that may be used to mock several static methods (nice) in an easy way (by just passing in the method names of the method you wish to mock).
mockStaticPartialStrict(Class<?>, String, Class<?>, Class<?>...) - Static method in class org.powermock.api.easymock.PowerMock
Mock a single static method (strict).
mockStaticPartialStrict(Class<?>, String...) - Static method in class org.powermock.api.easymock.PowerMock
A utility method that may be used to mock several static methods (strict) in an easy way (by just passing in the method names of the method you wish to mock).
mockStaticStrict(Class<?>, Method...) - Static method in class org.powermock.api.easymock.PowerMock
Enable strict static mocking for a class.
mockStaticStrict(Class<?>) - Static method in class org.powermock.api.easymock.PowerMock
Enable strict static mocking for a class.
MockStrategy - Interface in org.powermock.api.easymock.internal.mockstrategy
 
MockStrict - Annotation Type in org.powermock.api.easymock.annotation
This annotation can be placed on those fields in your test class that should be mocked in a strict manner (i.e.
MockTransformer<T> - Interface in org.powermock.core.transformers
Interface that all mock transformers must implement.
MockTransformerChain - Interface in org.powermock.core.transformers
Interface represent chain of MockTransformer.
MockTransformerChain.FilterPredicate - Interface in org.powermock.core.transformers
 
MockTransformerChainFactory - Interface in org.powermock.core.transformers
An implementation of interface should create a MockTransformerChain with full set of required transformers to enable all mocking features.
MockTypeValidator<T> - Interface in org.powermock.api.mockito.internal.mockcreation
 
MockTypeValidatorFactory - Class in org.powermock.api.mockito.internal.mockcreation
 
MockTypeValidatorFactory() - Constructor for class org.powermock.api.mockito.internal.mockcreation.MockTypeValidatorFactory
 
MockWithStaticStateDemo - Class in samples.partialmocking
 
MockWithStaticStateDemo() - Constructor for class samples.partialmocking.MockWithStaticStateDemo
 
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.
MultiConstructor - Class in samples.expectnew
Mocking object construction with withAnyArguments() does not treat all the object's constructors equally.
MultiConstructor(String, String) - Constructor for class samples.expectnew.MultiConstructor
 
MultiConstructor(String) - Constructor for class samples.expectnew.MultiConstructor
 
MultiConstructor(String, Runnable, boolean) - Constructor for class samples.expectnew.MultiConstructor
 
multipleNew() - Method in class samples.expectnew.ExpectNewDemo
 
mustHaveTestAnnotationRemoved(CtMethod) - Method in class org.powermock.core.transformers.javassist.testclass.ForMethodsJavaAssistTestClassTransformer
 
mustHaveTestAnnotationRemoved(CtMethod) - Method in class org.powermock.core.transformers.javassist.testclass.FromAllMethodsExceptJavaAssistTestClassTransformer
 
mustHaveTestAnnotationRemoved(CtMethod) - Method in class org.powermock.core.transformers.javassist.testclass.JavaAssistTestClassTransformer
 
MY_STRING - Static variable in interface samples.interfacefieldchange.InterfaceWithStaticFinalField
 
MyAbstractClass - Class in samples.anonymousmocking
 
MyAbstractClass() - Constructor for class samples.anonymousmocking.MyAbstractClass
 
MyClass - Class in samples.newmocking
 
MyClass() - Constructor for class samples.newmocking.MyClass
 
MyEnum - Enum in samples.enummocking
 
myMethod() - Method in class samples.simplereturn.SimpleReturnExampleUser
 
myMethod() - Method in class samples.suppressmethod.SuppressMethod
 
myMethod() - Method in class samples.suppressmethod.SuppressMethodParent
 
mySimpleMethod() - Method in class samples.simplereturn.SimpleReturnExample
 

N

name() - Method in class com.sun.tools.attach.spi.AttachProvider
Return this provider's name.
NativeMockingSample - Class in samples.nativemocking
The purpose of this class is to invoke a native method in a collaborator.
NativeMockingSample(NativeService) - Constructor for class samples.nativemocking.NativeMockingSample
 
NativeResult - Class in samples.mockpolicy.frameworkexample
 
NativeResult(String) - Constructor for class samples.mockpolicy.frameworkexample.NativeResult
 
NativeService - Class in samples.nativemocking
The purpose of this class is to demonstrate that it's possible to mock native methods using plain EasyMock class extensions.
NativeService() - Constructor for class samples.nativemocking.NativeService
 
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.core.transformers.support.DefaultMockTransformerChain
 
NewDemo - Class in samples.newmocking
 
NewDemo() - Constructor for class samples.newmocking.NewDemo
 
newFaults() - Static method in class samples.hashcode.HashCodeInitializedInCtor
 
NewFileExample - Class in samples.expectnew
Used to demonstrate PowerMock's ability to mock new instance calls.
NewFileExample() - Constructor for class samples.expectnew.NewFileExample
 
newInstance(Constructor, Object...) - Method in class org.powermock.modules.testng.internal.PowerMockClassloaderObjectFactory
 
newInstance(Constructor, Object...) - Method in class org.powermock.modules.testng.PowerMockObjectFactory
 
newInstance(Class<T>) - Static method in class org.powermock.reflect.internal.WhiteboxImpl
Create a new instance of a class without invoking its constructor.
newInstance(Class<T>) - Static method in class org.powermock.reflect.Whitebox
Create a new instance of a class without invoking its constructor.
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.
NewInvocationControlAssertionError - Class in org.powermock.api.easymock.internal.invocationcontrol
 
NewInvocationControlAssertionError() - Constructor for class org.powermock.api.easymock.internal.invocationcontrol.NewInvocationControlAssertionError
 
newRunnerBuilder() - Static method in class org.powermock.modules.junit4.PowerMockRunnerDelegate.SinceJUnit_4_5
 
newSimpleVarArgs(byte[]...) - Method in class samples.expectnew.ExpectNewDemo
 
newStringBuilder() - Method in class samples.system.SystemClassUser
 
newURL(String) - Method in class samples.system.SystemClassUser
 
newVarArgs(String...) - Method in class samples.expectnew.ExpectNewDemo
 
newVarArgs(Service...) - Method in class samples.expectnew.ExpectNewDemo
 
newVarArgs(float, int...) - Method in class samples.expectnew.ExpectNewDemo
 
newVarArgs(byte[]...) - Method in class samples.expectnew.ExpectNewDemo
 
newVarArgsWithMatchers() - Method in class samples.expectnew.ExpectNewDemo
 
newWithArguments(Service, int) - Method in class samples.expectnew.ExpectNewDemo
 
newWithWrongArguments(Service, int) - Method in class samples.expectnew.ExpectNewDemo
 
NiceDemo - Class in samples.nice
 
NiceDemo() - Constructor for class samples.nice.NiceDemo
 
NiceMockStrategy - Class in org.powermock.api.easymock.internal.mockstrategy.impl
 
NiceMockStrategy() - Constructor for class org.powermock.api.easymock.internal.mockstrategy.impl.NiceMockStrategy
 
niceReplayAndVerify() - Static method in class org.powermock.api.easymock.PowerMock
Sometimes it is useful to allow replay and verify on non-mocks.
NOT_INITIALIZED - Static variable in class org.powermock.tests.utils.impl.AbstractCommonTestSuiteChunkerImpl
 
notFound(Class<?>, boolean) - Method in class org.powermock.reflect.internal.matcherstrategies.AllFieldsMatcherStrategy
 
notFound(Class<?>, boolean) - Method in class org.powermock.reflect.internal.matcherstrategies.AssignableFromFieldTypeMatcherStrategy
 
notFound(Class<?>, boolean) - Method in class org.powermock.reflect.internal.matcherstrategies.FieldAnnotationMatcherStrategy
 
notFound(Class<?>, boolean) - Method in class org.powermock.reflect.internal.matcherstrategies.FieldMatcherStrategy
Throws an FieldNotFoundException if the strategy criteria could not be found.
notFound(Class<?>, boolean) - Method in class org.powermock.reflect.internal.matcherstrategies.FieldNameMatcherStrategy
 
notFound(Class<?>, boolean) - Method in class org.powermock.reflect.internal.matcherstrategies.FieldTypeMatcherStrategy
 
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

OBJECT - Static variable in class samples.suppressmethod.SuppressMethod
 
OBJECT - Static variable in class samples.suppressmethod.SuppressMethodExample
 
objectFinalMethod() - Static method in class samples.singleton.StaticExample
 
objectMethod() - Static method in class samples.singleton.StaticExample
 
of(TypeDescription.Generic, int) - Static method in class org.powermock.core.bytebuddy.Variable
 
org.powermock - package org.powermock
 
org.powermock.api.easymock - package org.powermock.api.easymock
 
org.powermock.api.easymock.annotation - package org.powermock.api.easymock.annotation
 
org.powermock.api.easymock.internal.invocationcontrol - package org.powermock.api.easymock.internal.invocationcontrol
 
org.powermock.api.easymock.internal.mockstrategy - package org.powermock.api.easymock.internal.mockstrategy
 
org.powermock.api.easymock.internal.mockstrategy.impl - package org.powermock.api.easymock.internal.mockstrategy.impl
 
org.powermock.api.easymock.mockpolicies - package org.powermock.api.easymock.mockpolicies
 
org.powermock.api.easymock.powermocklistener - package org.powermock.api.easymock.powermocklistener
 
org.powermock.api.extension - package org.powermock.api.extension
 
org.powermock.api.extension.agent - package org.powermock.api.extension.agent
 
org.powermock.api.extension.listener - package org.powermock.api.extension.listener
 
org.powermock.api.mockito - package org.powermock.api.mockito
 
org.powermock.api.mockito.expectation - package org.powermock.api.mockito.expectation
 
org.powermock.api.mockito.expectation.reporter - package org.powermock.api.mockito.expectation.reporter
 
org.powermock.api.mockito.internal - package org.powermock.api.mockito.internal
 
org.powermock.api.mockito.internal.configuration - package org.powermock.api.mockito.internal.configuration
 
org.powermock.api.mockito.internal.exceptions - package org.powermock.api.mockito.internal.exceptions
 
org.powermock.api.mockito.internal.expectation - package org.powermock.api.mockito.internal.expectation
 
org.powermock.api.mockito.internal.invocation - package org.powermock.api.mockito.internal.invocation
 
org.powermock.api.mockito.internal.mockcreation - package org.powermock.api.mockito.internal.mockcreation
 
org.powermock.api.mockito.internal.stubbing - package org.powermock.api.mockito.internal.stubbing
 
org.powermock.api.mockito.internal.verification - package org.powermock.api.mockito.internal.verification
 
org.powermock.api.mockito.invocation - package org.powermock.api.mockito.invocation
 
org.powermock.api.mockito.mockmaker - package org.powermock.api.mockito.mockmaker
 
org.powermock.api.mockito.mockpolicies - package org.powermock.api.mockito.mockpolicies
 
org.powermock.api.mockito.powermocklistener - package org.powermock.api.mockito.powermocklistener
 
org.powermock.api.mockito.verification - package org.powermock.api.mockito.verification
 
org.powermock.api.support - package org.powermock.api.support
 
org.powermock.api.support.membermodification - package org.powermock.api.support.membermodification
 
org.powermock.api.support.membermodification.strategy - package org.powermock.api.support.membermodification.strategy
 
org.powermock.api.support.membermodification.strategy.impl - package org.powermock.api.support.membermodification.strategy.impl
 
org.powermock.classloading - package org.powermock.classloading
 
org.powermock.classloading.spi - package org.powermock.classloading.spi
 
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.bytebuddy - package org.powermock.core.bytebuddy
 
org.powermock.core.classloader - package org.powermock.core.classloader
 
org.powermock.core.classloader.annotations - package org.powermock.core.classloader.annotations
 
org.powermock.core.classloader.javassist - package org.powermock.core.classloader.javassist
 
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.javassist - package org.powermock.core.transformers.javassist
 
org.powermock.core.transformers.javassist.support - package org.powermock.core.transformers.javassist.support
 
org.powermock.core.transformers.javassist.testclass - package org.powermock.core.transformers.javassist.testclass
 
org.powermock.core.transformers.support - package org.powermock.core.transformers.support
 
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.modules.agent - package org.powermock.modules.agent
 
org.powermock.modules.agent.support - package org.powermock.modules.agent.support
 
org.powermock.modules.junit4 - package org.powermock.modules.junit4
 
org.powermock.modules.junit4.common.internal - package org.powermock.modules.junit4.common.internal
 
org.powermock.modules.junit4.common.internal.impl - package org.powermock.modules.junit4.common.internal.impl
 
org.powermock.modules.junit4.internal.impl - package org.powermock.modules.junit4.internal.impl
 
org.powermock.modules.junit4.internal.impl.testcaseworkaround - package org.powermock.modules.junit4.internal.impl.testcaseworkaround
 
org.powermock.modules.junit4.rule - package org.powermock.modules.junit4.rule
 
org.powermock.modules.testng - package org.powermock.modules.testng
 
org.powermock.modules.testng.internal - package org.powermock.modules.testng.internal
 
org.powermock.reflect - package org.powermock.reflect
 
org.powermock.reflect.exceptions - package org.powermock.reflect.exceptions
 
org.powermock.reflect.internal - package org.powermock.reflect.internal
 
org.powermock.reflect.internal.comparator - package org.powermock.reflect.internal.comparator
 
org.powermock.reflect.internal.matcherstrategies - package org.powermock.reflect.internal.matcherstrategies
 
org.powermock.reflect.internal.primitivesupport - package org.powermock.reflect.internal.primitivesupport
 
org.powermock.reflect.internal.proxy - package org.powermock.reflect.internal.proxy
 
org.powermock.reflect.matching - package org.powermock.reflect.matching
 
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
 
overloaded(Parent) - Method in class samples.overloading.StaticAndInstanceMethodWithSameName
 
overloaded(ChildA) - Static method in class samples.overloading.StaticAndInstanceMethodWithSameName
 
OverloadedMethodsExample - Class in samples.overloading
 
OverloadedMethodsExample() - Constructor for class samples.overloading.OverloadedMethodsExample
 
overloadedMethodWithOneArgument(Parent) - Static method in class samples.overloading.OverloadedMethodsExample
 
overloadedMethodWithOneArgument(ChildA) - Static method in class samples.overloading.OverloadedMethodsExample
 
overloadedMethodWithTwoArguments(Parent, ChildA) - Static method in class samples.overloading.OverloadedMethodsExample
 
overloadedMethodWithTwoArguments(Parent, Parent) - Static method in class samples.overloading.OverloadedMethodsExample
 
OverloadingDemo - Class in samples.overloading
Demonstrates that PowerMock correctly invoke overloaded methods from the MockGateway.
OverloadingDemo() - Constructor for class samples.overloading.OverloadingDemo
 

P

PackagePrivateClassesMockTransformer - Class in org.powermock.core.transformers.javassist
Set class modifier to public to allow for mocking of package private classes.
PackagePrivateClassesMockTransformer(TransformStrategy) - Constructor for class org.powermock.core.transformers.javassist.PackagePrivateClassesMockTransformer
 
Parent - Class in samples.classhierarchy
 
Parent() - Constructor for class samples.classhierarchy.Parent
 
PartialMockingExample - Class in samples.partialmocking
Simple partial mocking example that should need no byte-code manipulation.
PartialMockingExample() - Constructor for class samples.partialmocking.PartialMockingExample
 
PartialMockingWithConstructor - Class in samples.partialmocking
 
PartialMockingWithConstructor() - Constructor for class samples.partialmocking.PartialMockingWithConstructor
 
performComplexOperation(String) - Method in class samples.mockpolicy.frameworkexample.SimpleFrameworkUser
 
performEncode() - Method in class samples.system.SystemClassUser
 
performInstaceInvocation(StaticAndInstanceMethodWithSameName) - Method in class samples.overloading.StaticAndInstanceMethodWithSameNameUser
 
performMethodInvocation(Object, Method, Object...) - Static method in class org.powermock.reflect.internal.WhiteboxImpl
Perform method invocation.
performMethodOverloadTestWhenBothArgumentSame() - Method in class samples.overloading.OverloadingDemo
 
performMethodOverloadTestWithOneArgumentSameAndOneDiffernt() - Method in class samples.overloading.OverloadingDemo
 
performSingleOverloadedArgumentTest() - Method in class samples.overloading.OverloadingDemo
 
performStaticInvocation() - Method in class samples.overloading.StaticAndInstanceMethodWithSameNameUser
 
performSubstitutionLogic(Object...) - Method in interface org.powermock.core.spi.support.InvocationSubstitute
 
PowerMock - Class in org.powermock.api.easymock
PowerMock extends EasyMock functionality with several new features such as mocking static and private methods, mocking new instances and more.
PowerMock() - Constructor for class org.powermock.api.easymock.PowerMock
 
PowerMockAgent - Class in org.powermock.modules.agent
This is the "agent class" that initializes the PowerMock "Java agent".
PowerMockAgentTestInitializer - Class in org.powermock.modules.agent.support
 
PowerMockAgentTestInitializer() - Constructor for class org.powermock.modules.agent.support.PowerMockAgentTestInitializer
 
PowerMockCallRealMethod - Class in org.powermock.api.mockito.internal.stubbing
 
PowerMockCallRealMethod() - Constructor for class org.powermock.api.mockito.internal.stubbing.PowerMockCallRealMethod
 
PowerMockClassloaderObjectFactory - Class in org.powermock.modules.testng.internal
 
PowerMockClassloaderObjectFactory() - Constructor for class org.powermock.modules.testng.internal.PowerMockClassloaderObjectFactory
 
PowerMockClassRedefiner - Class in org.powermock.modules.agent
 
PowerMockClassRedefiner() - Constructor for class org.powermock.modules.agent.PowerMockClassRedefiner
 
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
 
PowerMockExpectedExceptionsExtractorImpl - Class in org.powermock.modules.testng.internal
 
PowerMockExpectedExceptionsExtractorImpl() - Constructor for class org.powermock.modules.testng.internal.PowerMockExpectedExceptionsExtractorImpl
 
PowerMockExpressionEditor - Class in org.powermock.core.transformers.javassist.support
 
PowerMockExpressionEditor(TransformStrategy, CtClass, Class<?>) - Constructor for class org.powermock.core.transformers.javassist.support.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.
PowerMockIgnoreDemo - Class in samples.powermockignore
 
PowerMockIgnoreDemo() - Constructor for class samples.powermockignore.PowerMockIgnoreDemo
 
PowerMockIgnorePackagesExtractorImpl - Class in org.powermock.tests.utils.impl
 
PowerMockIgnorePackagesExtractorImpl() - Constructor for class org.powermock.tests.utils.impl.PowerMockIgnorePackagesExtractorImpl
 
PowerMockInternalException - Exception in org.powermock
 
PowerMockInternalException(Throwable) - Constructor for exception org.powermock.PowerMockInternalException
 
PowerMockInternalException(String) - Constructor for exception org.powermock.PowerMockInternalException
 
PowerMockInternalException(String, Throwable) - Constructor for exception org.powermock.PowerMockInternalException
 
PowerMockito - Class in org.powermock.api.mockito
PowerMockito extends Mockito functionality with several new features such as mocking static and private methods and more.
PowerMockito() - Constructor for class org.powermock.api.mockito.PowerMockito
 
PowerMockitoCore - Class in org.powermock.api.mockito.internal
 
PowerMockitoCore() - Constructor for class org.powermock.api.mockito.internal.PowerMockitoCore
 
PowerMockitoInjectingAnnotationEngine - Class in org.powermock.api.mockito.internal.configuration
The same as InjectingAnnotationEngine with the exception that it doesn't create/injects mocks annotated with the standard annotations such as Mock.
PowerMockitoInjectingAnnotationEngine() - Constructor for class org.powermock.api.mockito.internal.configuration.PowerMockitoInjectingAnnotationEngine
 
PowerMockitoSpyAnnotationEngine - Class in org.powermock.api.mockito.internal.configuration
More or less a copy of the SpyAnnotationEngine but it uses PowerMockito.spy(Object) instead.
PowerMockitoSpyAnnotationEngine() - Constructor for class org.powermock.api.mockito.internal.configuration.PowerMockitoSpyAnnotationEngine
 
PowerMockitoStubber - Interface in org.powermock.api.mockito.expectation
Setup stubbing for private or void methods in final class, final void methods, or static (final) methods.
PowerMockitoStubberImpl - Class in org.powermock.api.mockito.internal.expectation
Extension of the standard Mocktio stubber implementation that also support PowerMockito created mocks.
PowerMockitoStubberImpl(Stubber) - Constructor for class org.powermock.api.mockito.internal.expectation.PowerMockitoStubberImpl
 
PowerMockJUnit44MethodRunner(Object, TestMethod, RunNotifier, Description, boolean) - Constructor for class org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.PowerMockJUnit44MethodRunner
 
PowerMockJUnit44RunnerDelegateImpl - Class in org.powermock.modules.junit4.internal.impl
A JUnit4 test runner that only runs a specified set of test methods in a test class.
PowerMockJUnit44RunnerDelegateImpl(Class<?>, String[], PowerMockTestListener[]) - Constructor for class org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl
 
PowerMockJUnit44RunnerDelegateImpl(Class<?>, String[]) - Constructor for class org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl
 
PowerMockJUnit44RunnerDelegateImpl(Class<?>) - Constructor for class org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl
 
PowerMockJUnit44RunnerDelegateImpl.PowerMockJUnit44MethodRunner - Class in org.powermock.modules.junit4.internal.impl
 
PowerMockJUnit47MethodRunner(Object, TestMethod, RunNotifier, Description, boolean) - Constructor for class org.powermock.modules.junit4.internal.impl.PowerMockJUnit47RunnerDelegateImpl.PowerMockJUnit47MethodRunner
 
PowerMockJUnit47RunnerDelegateImpl - Class in org.powermock.modules.junit4.internal.impl
Extends the functionality of PowerMockJUnit44RunnerDelegateImpl to enable the usage of rules.
PowerMockJUnit47RunnerDelegateImpl(Class<?>, String[], PowerMockTestListener[]) - Constructor for class org.powermock.modules.junit4.internal.impl.PowerMockJUnit47RunnerDelegateImpl
 
PowerMockJUnit47RunnerDelegateImpl(Class<?>, String[]) - Constructor for class org.powermock.modules.junit4.internal.impl.PowerMockJUnit47RunnerDelegateImpl
 
PowerMockJUnit47RunnerDelegateImpl(Class<?>) - Constructor for class org.powermock.modules.junit4.internal.impl.PowerMockJUnit47RunnerDelegateImpl
 
PowerMockJUnit47RunnerDelegateImpl.PowerMockJUnit47MethodRunner - Class in org.powermock.modules.junit4.internal.impl
 
PowerMockJUnit49MethodRunner(Object, TestMethod, RunNotifier, Description, boolean) - Constructor for class org.powermock.modules.junit4.internal.impl.PowerMockJUnit49RunnerDelegateImpl.PowerMockJUnit49MethodRunner
 
PowerMockJUnit49RunnerDelegateImpl - Class in org.powermock.modules.junit4.internal.impl
Extends the functionality of PowerMockJUnit47RunnerDelegateImpl to enable the usage of TestRule.
PowerMockJUnit49RunnerDelegateImpl(Class<?>, String[], PowerMockTestListener[]) - Constructor for class org.powermock.modules.junit4.internal.impl.PowerMockJUnit49RunnerDelegateImpl
 
PowerMockJUnit49RunnerDelegateImpl(Class<?>, String[]) - Constructor for class org.powermock.modules.junit4.internal.impl.PowerMockJUnit49RunnerDelegateImpl
 
PowerMockJUnit49RunnerDelegateImpl(Class<?>) - Constructor for class org.powermock.modules.junit4.internal.impl.PowerMockJUnit49RunnerDelegateImpl
 
PowerMockJUnit49RunnerDelegateImpl.PowerMockJUnit49MethodRunner - Class in org.powermock.modules.junit4.internal.impl
 
PowerMockJUnit4MethodValidator - Class in org.powermock.modules.junit4.internal.impl.testcaseworkaround
A custom MethodValidator that makes sure that test methods not annotated by the Test annotation works in JUnit 4.4 with the custom JUnit-runner when the test class is extending TestCase.
PowerMockJUnit4MethodValidator(TestClass) - Constructor for class org.powermock.modules.junit4.internal.impl.testcaseworkaround.PowerMockJUnit4MethodValidator
 
PowerMockJUnit4RunListener - Class in org.powermock.modules.junit4.common.internal.impl
 
PowerMockJUnit4RunListener(ClassLoader, PowerMockTestNotifier) - Constructor for class org.powermock.modules.junit4.common.internal.impl.PowerMockJUnit4RunListener
 
PowerMockJUnitRunnerDelegate - Interface in org.powermock.modules.junit4.common.internal
 
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.
PowerMockMaker - Class in org.powermock.api.mockito.mockmaker
A PowerMock implementation of the MockMaker.
PowerMockMaker() - Constructor for class org.powermock.api.mockito.mockmaker.PowerMockMaker
 
PowerMockModified - Interface in org.powermock.core.classloader
Interface marker.
PowerMockObjectFactory - Class in org.powermock.modules.testng
The PowerMock object factory for PowerMock java agent.
PowerMockObjectFactory() - Constructor for class org.powermock.modules.testng.PowerMockObjectFactory
 
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
 
PowerMockRule - Class in org.powermock.modules.junit4.rule
 
PowerMockRule() - Constructor for class org.powermock.modules.junit4.rule.PowerMockRule
 
PowerMockRuleTestSuiteChunker - Class in org.powermock.modules.junit4.rule
 
PowerMockRuleTestSuiteChunker(Class) - Constructor for class org.powermock.modules.junit4.rule.PowerMockRuleTestSuiteChunker
 
PowerMockRunner - Class in org.powermock.modules.junit4
 
PowerMockRunner(Class<?>) - Constructor for class org.powermock.modules.junit4.PowerMockRunner
 
PowerMockRunnerDelegate - Annotation Type in org.powermock.modules.junit4
 
PowerMockRunnerDelegate.DefaultJUnitRunner - Class in org.powermock.modules.junit4
 
PowerMockRunnerDelegate.SinceJUnit_4_5 - Class in org.powermock.modules.junit4
Stuff that needs to be handled in a separate class, because it deals with API that did not exist before JUnit-4.5.
PowerMockTestCase - Class in org.powermock.modules.testng
A PowerMock base class that may be used as a base class for all TestNG test cases that uses PowerMock.
PowerMockTestCase() - Constructor for class org.powermock.modules.testng.PowerMockTestCase
 
PowerMockTestListener - Interface in org.powermock.core.spi
This interface should be implemented by all PowerMock test listeners.
PowerMockTestNGMethodHandler - Class in org.powermock.modules.testng.internal
 
PowerMockTestNGMethodHandler(Class<?>) - Constructor for class org.powermock.modules.testng.internal.PowerMockTestNGMethodHandler
 
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
 
premain(String, Instrumentation) - Static method in class org.powermock.modules.agent.PowerMockAgent
This method must only be called by the JVM, to provide the instrumentation object.
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
 
PrimitiveAndWrapperDemo - Class in samples.expectnew
Used to demonstrate PowerMocks ability to deal with overloaded constructors of primitive/wrapper types.
PrimitiveAndWrapperDemo(int) - Constructor for class samples.expectnew.PrimitiveAndWrapperDemo
 
PrimitiveAndWrapperDemo(Integer) - Constructor for class samples.expectnew.PrimitiveAndWrapperDemo
 
PrimitiveAndWrapperUser - Class in samples.expectnew
Used to demonstrate PowerMocks ability to deal with overloaded constructors of primitive/wrapper types.
PrimitiveAndWrapperUser() - Constructor for class samples.expectnew.PrimitiveAndWrapperUser
 
PrimitiveBoxing - Enum in org.powermock.core.bytebuddy
 
Primitives - Class in org.powermock.core.transformers.javassist.support
Simple utility that maps constant fields of CtClass to their corresponding java class-objects for primitive types.
Primitives() - Constructor for class org.powermock.core.transformers.javassist.support.Primitives
 
PrimitiveWrapper - Class in org.powermock.reflect.internal.primitivesupport
The purpose of the Primitive Wrapper is to provide methods that deals with translating wrapper types to its related primitive type.
PrimitiveWrapper() - Constructor for class org.powermock.reflect.internal.primitivesupport.PrimitiveWrapper
 
printClassesLoadedByClassloader(ClassLoader, boolean) - Static method in class org.powermock.core.PowerMockUtils
 
printFlag(String) - Method in class sun.tools.attach.HotSpotVirtualMachine
 
PrivateConstructorDemo - Class in samples.constructor
Demonstrates the ability to invoke a test on a private constructor as well as lazy initialization of private collaborators.
PrivateConstructorInstantiationDemo - Class in samples.constructor
Class used to demonstrate the private constructor instantiation.
PrivateFinal - Class in samples.privateandfinal
A class used to test the functionality to mock private methods that are also final.
PrivateFinal() - Constructor for class samples.privateandfinal.PrivateFinal
 
PrivateFinalOverload - Class in samples.privateandfinal
A class used to test the functionality of capturing arguments when methods are overloaded and private and final.
PrivateFinalOverload() - Constructor for class samples.privateandfinal.PrivateFinalOverload
 
PrivatelyExpectedArguments - Interface in org.powermock.api.mockito.expectation
 
PrivateMethodDemo - Class in samples.privatemocking
A class used to test the functionality to mock private methods.
PrivateMethodDemo() - Constructor for class samples.privatemocking.PrivateMethodDemo
 
PrivateMethodVerification - Interface in org.powermock.api.mockito.verification
 
PrivatePartialMockingExample - Class in samples.partialmocking
Simple partial mocking example that should need no byte-code manipulation.
PrivatePartialMockingExample() - Constructor for class samples.partialmocking.PrivatePartialMockingExample
 
PROCEED - Static variable in class org.powermock.core.MockGateway
 
process(Class<?>, Object) - Method in class org.powermock.api.mockito.internal.configuration.PowerMockitoInjectingAnnotationEngine
 
process(Class<?>, Object) - Method in class org.powermock.api.mockito.internal.configuration.PowerMockitoSpyAnnotationEngine
 
provider() - Method in class com.sun.tools.attach.VirtualMachine
Returns the provider that created this virtual machine.
provider() - Method in class com.sun.tools.attach.VirtualMachineDescriptor
Return the AttachProvider that this descriptor references.
providers() - Static method in class com.sun.tools.attach.spi.AttachProvider
Returns a list of the installed attach providers.
proxy(Method, InvocationHandler) - Static method in class org.powermock.api.support.MethodProxy
Add a proxy for this method.
proxy(Class<?>, String, InvocationHandler) - Static method in class org.powermock.api.support.MethodProxy
Add a proxy for a method declared in class declaringClass.
ProxyFrameworks - Class in org.powermock.reflect.internal.proxy
 
ProxyFrameworks() - Constructor for class org.powermock.reflect.internal.proxy.ProxyFrameworks
 
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.
PublicConstructorDemo - Class in samples.constructor
Demonstrates the ability to invoke a test on a private constructor as well as lazy initialization of private collaborators.
PublicConstructorDemo(String) - Constructor for class samples.constructor.PublicConstructorDemo
 
PublicConstructorWithDependencyDemo - Class in samples.constructor
This class is used to demonstrate that error messages are correct when a constructor is not found.
PublicConstructorWithDependencyDemo(Service) - Constructor for class samples.constructor.PublicConstructorWithDependencyDemo
 
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

ReallySimpleSwingDemo - Class in samples.swing
 
ReallySimpleSwingDemo() - Constructor for class samples.swing.ReallySimpleSwingDemo
 
redefine(String[], String[], JavaAgentClassRegister) - Static method in class org.powermock.modules.agent.PowerMockClassRedefiner
 
ReflectionInstantiator - Class in samples.reflection
 
ReflectionInstantiator() - Constructor for class samples.reflection.ReflectionInstantiator
 
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.
registerClass(ClassLoader, String) - Method in class org.powermock.modules.agent.support.JavaAgentClassRegisterImpl
 
remoteDataDump(Object...) - Method in class sun.tools.attach.HotSpotVirtualMachine
 
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
 
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 class org.powermock.core.transformers.TestClassTransformerBuilder
 
removesTestMethodAnnotation(Class<? extends Annotation>) - Method in class org.powermock.core.transformers.TestClassTransformerBuilder.TestClassTransformerBuilderWithClue
 
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.
replace(Method) - Static method in class org.powermock.api.support.membermodification.MemberModifier
Replace a method invocation.
replay(Object...) - Method in class org.powermock.api.easymock.internal.invocationcontrol.EasyMockMethodInvocationControl
 
replay(Object...) - Method in class org.powermock.api.easymock.internal.invocationcontrol.EasyMockNewInvocationControl
 
replay(Object...) - Static method in class org.powermock.api.easymock.PowerMock
Switches the mocks or classes to replay mode.
replay(Object...) - Method in class org.powermock.api.mockito.internal.invocation.MockitoNewInvocationControl
 
replay(Object...) - Method in class org.powermock.api.mockito.invocation.MockitoMethodInvocationControl
 
replay(Object...) - Method in interface org.powermock.core.spi.DefaultBehavior
Replay the given objects or classes.
replayAll(Object...) - Static method in class org.powermock.api.easymock.PowerMock
Replay all classes and mock objects known by PowerMock.
reset(Object...) - Method in class org.powermock.api.easymock.internal.invocationcontrol.EasyMockMethodInvocationControl
 
reset(Object...) - Method in class org.powermock.api.easymock.internal.invocationcontrol.EasyMockNewInvocationControl
 
reset(Class<?>...) - Static method in class org.powermock.api.easymock.PowerMock
Reset a list of class mocks.
reset(Object...) - Static method in class org.powermock.api.easymock.PowerMock
Reset a list of mock objects or classes.
reset(Object...) - Method in class org.powermock.api.mockito.internal.invocation.MockitoNewInvocationControl
 
reset(Object...) - Method in class org.powermock.api.mockito.invocation.MockitoMethodInvocationControl
 
reset(Object...) - Method in interface org.powermock.core.spi.DefaultBehavior
Reset the given objects or classes.
resetAll(Object...) - Static method in class org.powermock.api.easymock.PowerMock
Reset all classes and mock objects known by PowerMock.
resetMock(Object, MockHandler, MockCreationSettings) - Method in class org.powermock.api.mockito.mockmaker.PowerMockMaker
 
resetPackagesToIgnore() - Method in class org.powermock.modules.agent.AbstractClassTransformer
 
Result - Enum in org.powermock.core.spi.testresult
 
ResultCalculator - Class in samples.mockpolicy
 
ResultCalculator(int) - Constructor for class samples.mockpolicy.ResultCalculator
 
returnValue() - Method in exception com.sun.tools.attach.AgentInitializationException
If the exception was created with the return value from the agent Agent_OnAttach function then this returns that value, otherwise returns 0.
run(RunNotifier) - Method in class org.powermock.modules.junit4.common.internal.impl.AbstractCommonPowerMockRunner
 
run(RunNotifier) - Method in class org.powermock.modules.junit4.common.internal.impl.JUnit4TestSuiteChunkerImpl
 
run(RunNotifier) - Method in interface org.powermock.modules.junit4.common.internal.JUnit4TestSuiteChunker
 
run(RunNotifier) - Method in interface org.powermock.modules.junit4.common.internal.PowerMockJUnitRunnerDelegate
 
run(RunNotifier) - Method in class org.powermock.modules.junit4.internal.impl.DelegatingPowerMockRunner
 
run(RunNotifier) - Method in class org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl
 
run(RunNotifier) - Method in class org.powermock.modules.junit4.PowerMockRunner
Clean up some state to avoid OOM issues
run(RunNotifier) - Method in class org.powermock.modules.junit4.PowerMockRunnerDelegate.DefaultJUnitRunner
 
runBeforesThenTestThenAfters(Runnable) - Method in class org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.PowerMockJUnit44MethodRunner
 
runMethods(RunNotifier) - Method in class org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl
 
runnerAlternativeConstructorParams() - Static method in class org.powermock.modules.junit4.PowerMockRunnerDelegate.SinceJUnit_4_5
 
RunnerTestSuiteChunker - Interface in org.powermock.tests.utils
An interface that should be implemented by classes that performs test suite chunking.
runTestMethod() - Method in class org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.PowerMockJUnit44MethodRunner
 
RuntimeAnnotation - Annotation Type in samples.annotationbased.testannotations
 
RuntimeExceptionProxy - Exception in org.powermock.api.mockito.internal.mockcreation
 
RuntimeExceptionProxy(Throwable) - Constructor for exception org.powermock.api.mockito.internal.mockcreation.RuntimeExceptionProxy
 
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

SafeExceptionRethrower - Class in org.powermock.api.support
 
SafeExceptionRethrower() - Constructor for class org.powermock.api.support.SafeExceptionRethrower
 
safeRethrow(Throwable) - Static method in class org.powermock.api.support.SafeExceptionRethrower
 
sameName(int) - Method in class samples.suppressmethod.SuppressMethod
 
sameName(float) - Method in class samples.suppressmethod.SuppressMethod
 
samples - package samples
 
samples.abstractmocking - package samples.abstractmocking
 
samples.annotationbased - package samples.annotationbased
 
samples.annotationbased.testannotations - package samples.annotationbased.testannotations
 
samples.anonymousmocking - package samples.anonymousmocking
 
samples.argumentmatcher - package samples.argumentmatcher
 
samples.classhierarchy - package samples.classhierarchy
 
samples.classwithinnermembers - package samples.classwithinnermembers
 
samples.constructor - package samples.constructor
 
samples.constructorargs - package samples.constructorargs
 
samples.enummocking - package samples.enummocking
 
samples.equalswithgetclass - package samples.equalswithgetclass
 
samples.expectnew - package samples.expectnew
 
samples.expectvoid - package samples.expectvoid
 
samples.fieldmock - package samples.fieldmock
 
samples.finalmocking - package samples.finalmocking
 
samples.hashcode - package samples.hashcode
 
samples.injectmocks - package samples.injectmocks
 
samples.innerclassmocking - package samples.innerclassmocking
 
samples.interfacefieldchange - package samples.interfacefieldchange
 
samples.interfacemethodfinding - package samples.interfacemethodfinding
 
samples.java - package samples.java
 
samples.largemethod - package samples.largemethod
 
samples.methodhierarchy - package samples.methodhierarchy
 
samples.mockpolicy - package samples.mockpolicy
 
samples.mockpolicy.frameworkexample - package samples.mockpolicy.frameworkexample
 
samples.nativemocking - package samples.nativemocking
 
samples.newmocking - package samples.newmocking
 
samples.nice - package samples.nice
 
samples.overloading - package samples.overloading
 
samples.packageprivate - package samples.packageprivate
 
samples.partialmocking - package samples.partialmocking
 
samples.powermockignore - package samples.powermockignore
 
samples.privateandfinal - package samples.privateandfinal
 
samples.privatefield - package samples.privatefield
 
samples.privatemocking - package samples.privatemocking
 
samples.reflection - package samples.reflection
 
samples.rule - package samples.rule
 
samples.servletmocking - package samples.servletmocking
 
samples.simplemix - package samples.simplemix
 
samples.simplereturn - package samples.simplereturn
 
samples.singleton - package samples.singleton
 
samples.spy - package samples.spy
 
samples.staticandinstance - package samples.staticandinstance
 
samples.staticinitializer - package samples.staticinitializer
 
samples.stress - package samples.stress
 
samples.strict - package samples.strict
 
samples.suppressconstructor - package samples.suppressconstructor
 
samples.suppresseverything - package samples.suppresseverything
 
samples.suppressfield - package samples.suppressfield
 
samples.suppressmethod - package samples.suppressmethod
 
samples.swing - package samples.swing
 
samples.system - package samples.system
 
samples.whitebox - package samples.whitebox
 
SampleServlet - Class in samples.servletmocking
 
SampleServlet() - Constructor for class samples.servletmocking.SampleServlet
 
say(String) - Method in class samples.finalmocking.FinalDemo
 
say(String) - Method in class samples.privateandfinal.PrivateFinal
 
say(String) - Method in class samples.privateandfinal.PrivateFinalOverload
 
say(String) - Method in class samples.privatemocking.PrivateMethodDemo
 
say(String) - Static method in class samples.singleton.SimpleStaticService
 
say(String) - Static method in class samples.singleton.StaticService
 
sayFinal(String) - Static method in class samples.singleton.StaticService
 
sayFinalNative(String) - Method in class samples.finalmocking.FinalDemo
 
sayFinalNative(String) - Static method in class samples.singleton.StaticService
 
sayHello(String) - Static method in class samples.singleton.StaticService
 
sayHello(Integer) - Static method in class samples.singleton.StaticService
 
sayHello() - Static method in class samples.singleton.StaticService
 
sayHelloAgain() - Static method in class samples.singleton.StaticHelper
 
sayHelloAgain() - Static method in class samples.singleton.StaticService
 
sayHelloHelper() - Static method in class samples.singleton.StaticHelper
 
sayNative(String) - Static method in class samples.singleton.StaticService
 
sayYear(String, int) - Method in class samples.privatemocking.PrivateMethodDemo
 
service - Variable in class samples.anonymousmocking.StupidAnonymous
 
Service - Interface in samples
A very simple service interface used as a dependency for various classes to demonstrate different kinds of mocking.
set(JavaAgentClassRegister) - Method in class org.powermock.api.extension.agent.JavaAgentFrameworkRegisterImpl
 
set(JavaAgentClassRegister) - Method in interface org.powermock.core.agent.JavaAgentFrameworkRegister
Set the javaAgentClassRegister to current loaded mocking framework.
setByteCodeFramework(ByteCodeFramework) - Method in class org.powermock.configuration.PowerMockConfiguration
 
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.
setFinalDemo(FinalDemo) - Method in class samples.injectmocks.DependencyHolder
 
setFinalDemo(FinalDemo) - Method in class samples.injectmocks.DependencyHolderQualifier
 
setFinalDemoQualifier(FinalDemo) - Method in class samples.injectmocks.DependencyHolderQualifier
 
setFlag(String, String) - Method in class sun.tools.attach.HotSpotVirtualMachine
 
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
 
setInjectDemo(InjectDemo) - Method in class samples.injectmocks.InjectDependencyHolder
 
setInjectDemo(InjectDemo) - Method in class samples.injectmocks.InjectDependencyHolderQualifier
 
setInjectDemoQualifier(InjectDemo) - Method in class samples.injectmocks.InjectDependencyHolderQualifier
 
setInternalState(Object, String, Object) - Static method in class org.powermock.reflect.internal.WhiteboxImpl
Set the value of a field using reflection.
setInternalState(Object, String, Object[]) - Static method in class org.powermock.reflect.internal.WhiteboxImpl
Set the value of a field using reflection.
setInternalState(Object, Class<?>, Object) - Static method in class org.powermock.reflect.internal.WhiteboxImpl
Set the value of a field using reflection.
setInternalState(Object, Object, Object...) - Static method in class org.powermock.reflect.internal.WhiteboxImpl
Set the value of a field using reflection.
setInternalState(Object, Object, Class<?>) - Static method in class org.powermock.reflect.internal.WhiteboxImpl
Set the value of a field using reflection at at specific place in the class hierarchy (where).
setInternalState(Object, Class<?>, Object, Class<?>) - Static method in class org.powermock.reflect.internal.WhiteboxImpl
Set the value of a field using reflection at a specific location ( where) in the class hierarchy.
setInternalState(Object, String, Object, Class<?>) - Static method in class org.powermock.reflect.internal.WhiteboxImpl
Set the value of a field using reflection.
setInternalState(Object, String, Object) - Static method in class org.powermock.reflect.Whitebox
Set the value of a field using reflection.
setInternalState(Object, String, Object[]) - Static method in class org.powermock.reflect.Whitebox
Set an array value of a field using reflection.
setInternalState(Object, Object, Object...) - Static method in class org.powermock.reflect.Whitebox
Set the value of a field using reflection.
setInternalState(Object, Object, Class<?>) - Static method in class org.powermock.reflect.Whitebox
Set the value of a field using reflection at at specific place in the class hierarchy (where).
setInternalState(Object, String, Object, Class<?>) - Static method in class org.powermock.reflect.Whitebox
Set the value of a field using reflection.
setInternalState(Object, Class<?>, Object) - Static method in class org.powermock.reflect.Whitebox
Set the value of a field using reflection.
setInternalState(Object, Class<?>, Object, Class<?>) - Static method in class org.powermock.reflect.Whitebox
Set the value of a field using reflection at a specific location ( where) in the class hierarchy.
setInternalStateFromContext(Object, Object, Object[]) - Static method in class org.powermock.reflect.internal.WhiteboxImpl
Set the values of multiple instance fields defined in a context using reflection.
setInternalStateFromContext(Object, Object, FieldMatchingStrategy) - Static method in class org.powermock.reflect.internal.WhiteboxImpl
 
setInternalStateFromContext(Object, Class<?>, Class<?>[]) - Static method in class org.powermock.reflect.internal.WhiteboxImpl
Set the values of multiple static fields defined in a context using reflection.
setInternalStateFromContext(Object, Object, Object...) - Static method in class org.powermock.reflect.Whitebox
Set the values of multiple instance fields defined in a context using reflection.
setInternalStateFromContext(Object, Class<?>, Class<?>...) - Static method in class org.powermock.reflect.Whitebox
Set the values of multiple static fields defined in a context using reflection.
setInternalStateFromContext(Object, Object, FieldMatchingStrategy) - Static method in class org.powermock.reflect.Whitebox
Set the values of multiple instance fields defined in a context using reflection and using an explicit FieldMatchingStrategy.
setInternalStateFromContext(Object, Class<?>, FieldMatchingStrategy) - Static method in class org.powermock.reflect.Whitebox
Set the values of multiple static fields defined in a context using reflection and using an explicit FieldMatchingStrategy.
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.
setMock(Object) - Method in class org.powermock.api.extension.listener.AnnotationMockMetadata
 
setMock(Object) - Method in interface org.powermock.api.extension.listener.MockMetadata
 
setMockMakerClass(String) - Method in class org.powermock.configuration.MockitoConfiguration
 
setMockTransformerChain(MockTransformerChain) - Method in class org.powermock.core.classloader.MockClassLoader
 
setPackagesToIgnore(List<String>) - Method in class org.powermock.modules.agent.AbstractClassTransformer
 
setService(Service) - Method in class samples.anonymousmocking.StupidAnonymous
 
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
setTestClass(Class<?>) - Method in interface org.powermock.core.transformers.TestClassAwareTransformer
 
setValue(int) - Method in class samples.classhierarchy.Parent
 
shouldExecuteTestForMethod(Class<?>, Method) - Method in class org.powermock.modules.junit4.common.internal.impl.JUnit4TestSuiteChunkerImpl
 
shouldExecuteTestForMethod(Class<?>, Method) - Method in class org.powermock.modules.junit4.rule.PowerMockRuleTestSuiteChunker
 
shouldExecuteTestForMethod(Class<?>, Method) - Method in interface org.powermock.tests.utils.TestSuiteChunker
Should reflect whether or not this method is eligible for testing.
shouldIgnore(String) - Method in class org.powermock.modules.agent.AbstractClassTransformer
 
shouldSkipMethod(CtMethod) - Static method in class org.powermock.core.transformers.javassist.support.TransformerHelper
 
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.
shouldTreatAsSystemClassCall(CtClass) - Static method in class org.powermock.core.transformers.javassist.support.TransformerHelper
 
showDialog() - Method in class samples.powermockignore.PowerMockIgnoreDemo
 
shuffleCollection(List<?>) - Method in class samples.system.SystemClassUser
 
signatureFor(T) - Method in interface org.powermock.core.transformers.MethodSignatureWriter
 
signatureForReflection(Method) - Method in interface org.powermock.core.transformers.MethodSignatureWriter
 
signatureOf(M) - Method in class org.powermock.core.transformers.TestClassTransformer
 
signatureOf(Method) - Method in class org.powermock.core.transformers.TestClassTransformer
 
SimpleClassWithADependency - Class in samples.mockpolicy
 
SimpleClassWithADependency() - Constructor for class samples.mockpolicy.SimpleClassWithADependency
 
SimpleFramework - Class in samples.mockpolicy.frameworkexample
 
SimpleFramework() - Constructor for class samples.mockpolicy.frameworkexample.SimpleFramework
 
SimpleFrameworkUser - Class in samples.mockpolicy.frameworkexample
 
SimpleFrameworkUser() - Constructor for class samples.mockpolicy.frameworkexample.SimpleFrameworkUser
 
simpleMix() - Method in class samples.finalmocking.FinalDemo
 
SimpleMix - Class in samples.simplemix
This class is used to demonstrate features such as static, final and partial mocking as well as access internal state.
SimpleMix() - Constructor for class samples.simplemix.SimpleMix
 
SimpleMixCollaborator - Class in samples.simplemix
 
SimpleMixCollaborator() - Constructor for class samples.simplemix.SimpleMixCollaborator
 
SimpleMixConstruction - Class in samples.simplemix
 
SimpleMixConstruction() - Constructor for class samples.simplemix.SimpleMixConstruction
 
SimpleMixUtilities - Class in samples.simplemix
 
SimpleMixUtilities() - Constructor for class samples.simplemix.SimpleMixUtilities
 
simpleMultipleNew() - Method in class samples.expectnew.ExpectNewDemo
 
SimplePrivateFieldServiceClass - Class in samples.privatefield
A class that uses a private Service field and no setter.
SimplePrivateFieldServiceClass() - Constructor for class samples.privatefield.SimplePrivateFieldServiceClass
 
simpleReturnExample() - Method in class samples.finalmocking.FinalDemo
 
SimpleReturnExample - Class in samples.simplereturn
 
SimpleReturnExample() - Constructor for class samples.simplereturn.SimpleReturnExample
 
SimpleReturnExampleUser - Class in samples.simplereturn
 
SimpleReturnExampleUser(SimpleReturnExample) - Constructor for class samples.simplereturn.SimpleReturnExampleUser
 
simpleSingleNew() - Method in class samples.expectnew.ExpectNewDemo
 
SimpleStaticInitializerExample - Class in samples.staticinitializer
 
SimpleStaticInitializerExample() - Constructor for class samples.staticinitializer.SimpleStaticInitializerExample
 
SimpleStaticService - Class in samples.singleton
 
SimpleStaticService() - Constructor for class samples.singleton.SimpleStaticService
 
SimpleSwingDemo - Class in samples.swing
A basic swing application example.
SimpleSwingDemo() - Constructor for class samples.swing.SimpleSwingDemo
 
SimpleThing - Interface in samples.rule
 
SimpleThingCreator - Class in samples.rule
 
SimpleThingCreator() - Constructor for class samples.rule.SimpleThingCreator
 
SimpleThingImpl - Class in samples.rule
 
SimpleThingImpl() - Constructor for class samples.rule.SimpleThingImpl
 
SimpleVarArgsConstructorDemo - Class in samples.expectnew
 
SimpleVarArgsConstructorDemo(byte[]...) - Constructor for class samples.expectnew.SimpleVarArgsConstructorDemo
 
SinceJUnit_4_5() - Constructor for class org.powermock.modules.junit4.PowerMockRunnerDelegate.SinceJUnit_4_5
 
SingleClassloaderExecutor - Class in org.powermock.classloading
 
SingleClassloaderExecutor(ClassLoader) - Constructor for class org.powermock.classloading.SingleClassloaderExecutor
 
size() - Method in class org.powermock.core.IdentityHashSet
 
size() - Method in class org.powermock.core.ListMap
 
Slf4jMockPolicy - Class in org.powermock.api.easymock.mockpolicies
An slf4j mock policy.
Slf4jMockPolicy() - Constructor for class org.powermock.api.easymock.mockpolicies.Slf4jMockPolicy
 
Slf4jMockPolicy - Class in org.powermock.api.mockito.mockpolicies
Sfl4j mock policy that injects a Mockito-created mock to be returned on calls to getLogger factory methods.
Slf4jMockPolicy() - Constructor for class org.powermock.api.mockito.mockpolicies.Slf4jMockPolicy
 
SolarisVirtualMachine - Class in sun.tools.attach
 
SolarisVirtualMachine(AttachProvider, String) - Constructor for class sun.tools.attach.SolarisVirtualMachine
Attaches to the target VM
SomeClassWithAMethod - Class in samples.mockpolicy
 
SomeClassWithAMethod() - Constructor for class samples.mockpolicy.SomeClassWithAMethod
 
SomeClassWithAMethodParent - Class in samples.mockpolicy
 
SomeClassWithAMethodParent() - Constructor for class samples.mockpolicy.SomeClassWithAMethodParent
 
SomeDependency - Class in samples.newmocking
 
SomeDependency() - Constructor for class samples.newmocking.SomeDependency
 
SomeObjectInterface - Interface in samples.enummocking
 
SomeObjectInterfaceImpl - Class in samples.enummocking
 
SomeObjectInterfaceImpl() - Constructor for class samples.enummocking.SomeObjectInterfaceImpl
 
something() - Method in class samples.suppresseverything.SuppressEverything
 
somethingElse() - Method in class samples.suppresseverything.SuppressEverything
 
sort(Sorter) - Method in class org.powermock.modules.junit4.common.internal.impl.AbstractCommonPowerMockRunner
 
sort(Sorter) - Method in class org.powermock.modules.junit4.common.internal.impl.JUnit4TestSuiteChunkerImpl
 
sort(Sorter) - Method in class org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl
 
spy(T) - Method in class org.powermock.api.mockito.internal.PowerMockitoCore
 
spy(T) - Static method in class org.powermock.api.mockito.PowerMockito
Spy on objects that are final or otherwise not "spyable" from normal Mockito.
spy(Class<T>) - Static method in class org.powermock.api.mockito.PowerMockito
Spy on classes (not "spyable" from normal Mockito).
SpyObject - Class in samples.spy
 
SpyObject() - Constructor for class samples.spy.SpyObject
 
StackTraceCleanerProvider - Class in org.powermock.api.mockito.internal.exceptions
 
StackTraceCleanerProvider() - Constructor for class org.powermock.api.mockito.internal.exceptions.StackTraceCleanerProvider
 
StaticAndInstanceDemo - Class in samples.staticandinstance
Demonstrates how to mock both instance and static methods in the same test
StaticAndInstanceDemo() - Constructor for class samples.staticandinstance.StaticAndInstanceDemo
 
StaticAndInstanceMethodWithSameName - Class in samples.overloading
 
StaticAndInstanceMethodWithSameName() - Constructor for class samples.overloading.StaticAndInstanceMethodWithSameName
 
StaticAndInstanceMethodWithSameNameUser - Class in samples.overloading
Demonstrates that PowerMock correctly methods that seam to be overloaded but differ because one is static and one is instance.
StaticAndInstanceMethodWithSameNameUser() - Constructor for class samples.overloading.StaticAndInstanceMethodWithSameNameUser
 
StaticAndInstanceWithConstructorCodeDemo - Class in samples.staticandinstance
The purpose of this class is to be used to verify that the http://code.google.com/p/powermock/issues/detail?id=4 is fixed.
StaticAndInstanceWithConstructorCodeDemo(StaticAndInstanceDemo) - Constructor for class samples.staticandinstance.StaticAndInstanceWithConstructorCodeDemo
 
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
 
StaticExample - Class in samples.singleton
Can be used to assert that partial mocking of static methods works.
StaticExample() - Constructor for class samples.singleton.StaticExample
 
StaticFinalFieldsMockTransformer - Class in org.powermock.core.transformers.javassist
Remove final from all static final fields.
StaticFinalFieldsMockTransformer(TransformStrategy) - Constructor for class org.powermock.core.transformers.javassist.StaticFinalFieldsMockTransformer
 
StaticFinalNativeMethodMockTransformer - Class in org.powermock.core.transformers.javassist
 
StaticFinalNativeMethodMockTransformer(TransformStrategy) - Constructor for class org.powermock.core.transformers.javassist.StaticFinalNativeMethodMockTransformer
 
staticFinalVoidMethod() - Static method in class samples.singleton.StaticExample
 
StaticHelper - Class in samples.singleton
 
StaticHelper() - Constructor for class samples.singleton.StaticHelper
 
StaticHoldingFinalDemo - Class in samples.finalmocking
 
StaticHoldingFinalDemo() - Constructor for class samples.finalmocking.StaticHoldingFinalDemo
 
StaticInitializerExample - Class in samples.staticinitializer
 
StaticInitializerExample() - Constructor for class samples.staticinitializer.StaticInitializerExample
 
staticMethod() - Static method in class samples.annotationbased.AnnotatedClassDemo
 
staticMethod() - Static method in class samples.singleton.StaticWithPrivateCtor
 
staticMethodReturningString() - Static method in class samples.singleton.StaticExample
 
StaticService - Class in samples.singleton
Test class to demonstrate static, static+final, static+native and static+final+native methods mocking.
StaticService() - Constructor for class samples.singleton.StaticService
 
staticVoidMethod() - Static method in class samples.singleton.StaticExample
 
StaticWithPrivateCtor - Class in samples.singleton
 
store(Variable) - Static method in class org.powermock.core.bytebuddy.Variable.VariableAccess
 
StressSample - Class in samples.stress
 
StressSample() - Constructor for class samples.stress.StressSample
 
StrictDemo - Class in samples.strict
 
StrictDemo() - Constructor for class samples.strict.StrictDemo
 
StrictMockStrategy - Class in org.powermock.api.easymock.internal.mockstrategy.impl
 
StrictMockStrategy() - Constructor for class org.powermock.api.easymock.internal.mockstrategy.impl.StrictMockStrategy
 
StringJoiner - Class in org.powermock.utils
 
StringJoiner() - Constructor for class org.powermock.utils.StringJoiner
 
stub(Method) - Static method in class org.powermock.api.support.membermodification.MemberModifier
Add a method that should be intercepted and return another value (i.e.
Stubber - Class in org.powermock.api.support
 
Stubber() - Constructor for class org.powermock.api.support.Stubber
 
stubMethod(Method, Object) - Static method in class org.powermock.api.support.Stubber
Add a method that should be intercepted and return another value ( returnObject) (i.e.
stubMethod(Class<?>, String, Object) - Static method in class org.powermock.api.support.Stubber
Add a method that should be intercepted and return another value ( returnObject) (i.e.
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.
StupidAnonymous - Class in samples.anonymousmocking
 
StupidAnonymous() - Constructor for class samples.anonymousmocking.StupidAnonymous
 
StupidNew - Class in samples.newmocking
 
StupidNew() - Constructor for class samples.newmocking.StupidNew
 
suiteClassInitiated(Class<?>) - Method in interface org.powermock.core.testlisteners.GlobalNotificationBuildSupport.Callback
 
sun.tools.attach - package sun.tools.attach
 
suppress(Method) - Static method in class org.powermock.api.support.membermodification.MemberModifier
Suppress a specific method.
suppress(Method[]) - Static method in class org.powermock.api.support.membermodification.MemberModifier
Suppress multiple methods.
suppress(Constructor<?>) - Static method in class org.powermock.api.support.membermodification.MemberModifier
Suppress a constructor.
suppress(Constructor<?>[]) - Static method in class org.powermock.api.support.membermodification.MemberModifier
Suppress multiple constructors.
suppress(Field) - Static method in class org.powermock.api.support.membermodification.MemberModifier
Suppress a field.
suppress(Field[]) - Static method in class org.powermock.api.support.membermodification.MemberModifier
Suppress multiple fields.
suppress(AccessibleObject[]) - Static method in class org.powermock.api.support.membermodification.MemberModifier
Suppress an array of accessible objects.
SUPPRESS - Static variable in class org.powermock.core.MockGateway
 
SuppressCode - Class in org.powermock.api.support
 
SuppressCode() - Constructor for class org.powermock.api.support.SuppressCode
 
suppressConstructor(Constructor<?>...) - Static method in class org.powermock.api.easymock.PowerMock
Deprecated.
suppressConstructor(Class<?>...) - Static method in class org.powermock.api.easymock.PowerMock
Deprecated.
suppressConstructor(Class<?>, boolean) - Static method in class org.powermock.api.easymock.PowerMock
Deprecated.
suppressConstructor(Constructor<?>...) - Static method in class org.powermock.api.support.SuppressCode
Suppress constructor calls on specific constructors only.
suppressConstructor(Class<?>...) - Static method in class org.powermock.api.support.SuppressCode
Suppress all constructors in the given class and it's super classes.
suppressConstructor(Class<?>, boolean) - Static method in class org.powermock.api.support.SuppressCode
Suppress all constructors in the given class.
suppressConstructorCall(Class<?>, Object[], Class<?>[]) - Static method in class org.powermock.core.MockGateway
 
SuppressConstructorDemo - Class in samples.suppressconstructor
 
SuppressConstructorDemo(String) - Constructor for class samples.suppressconstructor.SuppressConstructorDemo
 
SuppressConstructorHeirarchyEvilGrandParent - Class in samples.suppressconstructor
 
SuppressConstructorHierarchy - Class in samples.suppressconstructor
 
SuppressConstructorHierarchy(String) - Constructor for class samples.suppressconstructor.SuppressConstructorHierarchy
 
SuppressConstructorHierarchyParent - Class in samples.suppressconstructor
 
SuppressConstructorSubclassDemo - Class in samples.suppressconstructor
 
SuppressEverything - Class in samples.suppresseverything
 
SuppressEverything() - Constructor for class samples.suppresseverything.SuppressEverything
 
SuppressEverything(String) - Constructor for class samples.suppresseverything.SuppressEverything
 
suppressField(Field...) - Static method in class org.powermock.api.easymock.PowerMock
Deprecated.
suppressField(Class<?>[]) - Static method in class org.powermock.api.easymock.PowerMock
Deprecated.
suppressField(Class<?>, String...) - Static method in class org.powermock.api.easymock.PowerMock
Deprecated.
suppressField(Field...) - Static method in class org.powermock.api.support.SuppressCode
Suppress specific fields.
suppressField(Class<?>[]) - Static method in class org.powermock.api.support.SuppressCode
Suppress all fields for these classes.
suppressField(Class<?>, String...) - Static method in class org.powermock.api.support.SuppressCode
Suppress multiple methods for a class.
SuppressField - Class in samples.suppressfield
 
SuppressField() - Constructor for class samples.suppressfield.SuppressField
 
suppressMethod(Method...) - Static method in class org.powermock.api.easymock.PowerMock
Deprecated.
suppressMethod(Class<?>, Class<?>...) - Static method in class org.powermock.api.easymock.PowerMock
Deprecated.
suppressMethod(Class<?>[]) - Static method in class org.powermock.api.easymock.PowerMock
Deprecated.
suppressMethod(Class<?>, String, String...) - Static method in class org.powermock.api.easymock.PowerMock
Deprecated.
suppressMethod(Class<?>, String[]) - Static method in class org.powermock.api.easymock.PowerMock
Deprecated.
suppressMethod(Class<?>, boolean) - Static method in class org.powermock.api.easymock.PowerMock
Deprecated.
suppressMethod(Class<?>, String, Class<?>[]) - Static method in class org.powermock.api.easymock.PowerMock
Deprecated.
suppressMethod(Method...) - Static method in class org.powermock.api.support.SuppressCode
Suppress specific method calls on all types containing this method.
suppressMethod(Class<?>, Class<?>...) - Static method in class org.powermock.api.support.SuppressCode
Suppress all methods for these classes.
suppressMethod(Class<?>[]) - Static method in class org.powermock.api.support.SuppressCode
Suppress all methods for these classes.
suppressMethod(Class<?>, String, String...) - Static method in class org.powermock.api.support.SuppressCode
Suppress multiple methods for a class.
suppressMethod(Class<?>, String[]) - Static method in class org.powermock.api.support.SuppressCode
Suppress multiple methods for a class.
suppressMethod(Class<?>, boolean) - Static method in class org.powermock.api.support.SuppressCode
suSuppress all methods for this class.
suppressMethod(Class<?>, String, Class<?>[]) - Static method in class org.powermock.api.support.SuppressCode
Suppress a specific method call.
SuppressMethod - Class in samples.suppressmethod
 
SuppressMethod() - Constructor for class samples.suppressmethod.SuppressMethod
 
SuppressMethodExample - Class in samples.suppressmethod
 
SuppressMethodExample() - Constructor for class samples.suppressmethod.SuppressMethodExample
 
SuppressMethodParent - Class in samples.suppressmethod
 
SuppressMethodParent() - Constructor for class samples.suppressmethod.SuppressMethodParent
 
SuppressNonParentConstructorDemo - Class in samples.suppressconstructor
 
SuppressNonParentConstructorDemo(String) - Constructor for class samples.suppressconstructor.SuppressNonParentConstructorDemo
 
suppressSpecificConstructor(Class<?>, Class<?>...) - Static method in class org.powermock.api.easymock.PowerMock
Deprecated.
suppressSpecificConstructor(Class<?>, Class<?>...) - Static method in class org.powermock.api.support.SuppressCode
This method can be used to suppress the code in a specific constructor.
SuppressSpecificConstructorDemo - Class in samples.suppressconstructor
 
SuppressSpecificConstructorDemo() - Constructor for class samples.suppressconstructor.SuppressSpecificConstructorDemo
 
SuppressSpecificConstructorDemo(String) - Constructor for class samples.suppressconstructor.SuppressSpecificConstructorDemo
 
SuppressStaticInitializationFor - Annotation Type in org.powermock.core.classloader.annotations
Use this annotation to suppress static initializers (constructors) for one or more classes.
SuppressStaticInitializerMockTransformer - Class in org.powermock.core.transformers.javassist
 
SuppressStaticInitializerMockTransformer(TransformStrategy) - Constructor for class org.powermock.core.transformers.javassist.SuppressStaticInitializerMockTransformer
 
SystemClassUser - Class in samples.system
Class used to demonstrate PowerMock's ability to mock system classes.
SystemClassUser() - Constructor for class samples.system.SystemClassUser
 

T

Target - Class in samples.expectnew
 
Target(String, int) - Constructor for class samples.expectnew.Target
 
test(MockTransformer<?>) - Method in interface org.powermock.core.transformers.MockTransformerChain.FilterPredicate
 
testAnnotations(Method) - Method in class org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl
 
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
 
TestClassAwareTransformer - Interface in org.powermock.core.transformers
If a transformer implements this interface then MockClassLoaderBuilder sets current test class during building a instance of MockClassLoader.
TestClassesExtractor - Interface in org.powermock.tests.utils
 
testClassInitiated(Class<?>) - Static method in class org.powermock.core.testlisteners.GlobalNotificationBuildSupport
 
TestClassTransformer<T,M> - Class in org.powermock.core.transformers
MockTransformer implementation that will make PowerMock test-class enhancements for four purposes...
TestClassTransformer(Class<?>, Class<? extends Annotation>, MethodSignatureWriter<M>) - Constructor for class org.powermock.core.transformers.TestClassTransformer
 
TestClassTransformerBuilder - Class in org.powermock.core.transformers
 
TestClassTransformerBuilder.RemovesTestMethodAnnotation - Class in org.powermock.core.transformers
 
TestClassTransformerBuilder.TestClassTransformerBuilderWithClue - Class in org.powermock.core.transformers
 
testCount() - Method in class org.powermock.modules.junit4.common.internal.impl.AbstractCommonPowerMockRunner
 
testCount - Variable in class org.powermock.tests.utils.impl.AbstractTestSuiteChunkerImpl
 
testFailure(Failure) - Method in class org.powermock.modules.junit4.common.internal.impl.PowerMockJUnit4RunListener
 
testFinished(Description) - Method in class org.powermock.modules.junit4.common.internal.impl.PowerMockJUnit4RunListener
Performs clean up after each test.
testIgnored(Description) - Method in class org.powermock.modules.junit4.common.internal.impl.PowerMockJUnit4RunListener
 
testInstanceCreated(Object) - Method in interface org.powermock.core.testlisteners.GlobalNotificationBuildSupport.Callback
 
testInstanceCreated(Object) - Static method in class org.powermock.core.testlisteners.GlobalNotificationBuildSupport
 
testMethod - Variable in class org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.PowerMockJUnit44MethodRunner
 
testMethodAnnotation() - Method in class org.powermock.modules.junit4.common.internal.impl.JUnit4TestSuiteChunkerImpl
 
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
 
testName(Method) - Method in class org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl
 
TestNGMethodFilter - Class in org.powermock.modules.testng.internal
Javassist method filter that ignores the toString, equals, finalize and hashCode method otherwise the test output in Maven looks strange and replayAll/verifyAll doesn't work as expected.
TestNGMethodFilter() - Constructor for class org.powermock.modules.testng.internal.TestNGMethodFilter
 
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
 
then(Answer<?>) - Method in class org.powermock.api.mockito.internal.expectation.DelegatingToConstructorsOngoingStubbing
 
thenAnswer(Answer<?>) - Method in class org.powermock.api.mockito.internal.expectation.DelegatingToConstructorsOngoingStubbing
 
thenCallRealMethod() - Method in class org.powermock.api.mockito.internal.expectation.DelegatingToConstructorsOngoingStubbing
 
thenReturn(T) - Method in class org.powermock.api.mockito.internal.expectation.DelegatingToConstructorsOngoingStubbing
 
thenReturn(T, T...) - Method in class org.powermock.api.mockito.internal.expectation.DelegatingToConstructorsOngoingStubbing
 
thenThrow(Throwable...) - Method in class org.powermock.api.mockito.internal.expectation.DelegatingToConstructorsOngoingStubbing
 
thenThrow(Class<? extends Throwable>) - Method in class org.powermock.api.mockito.internal.expectation.DelegatingToConstructorsOngoingStubbing
 
thenThrow(Class<? extends Throwable>, Class<? extends Throwable>[]) - Method in class org.powermock.api.mockito.internal.expectation.DelegatingToConstructorsOngoingStubbing
 
ThingToTest - Class in samples.rule
 
ThingToTest() - Constructor for class samples.rule.ThingToTest
 
threadSleep() - Method in class samples.system.SystemClassUser
 
throwAssertionErrorForNewSubstitutionFailure(AssertionError, Class<?>) - Static method in class org.powermock.api.easymock.internal.invocationcontrol.NewInvocationControlAssertionError
 
throwAssertionErrorForNewSubstitutionFailure(AssertionError, Class<?>) - Static method in class org.powermock.api.mockito.internal.invocation.InvocationControlAssertionError
 
throwException() - Static method in class samples.singleton.StaticService
 
throwException() - Method in class samples.spy.SpyObject
 
throwExceptionAndWrapInRunTimeWhenInvoction() - Method in class samples.expectnew.ExpectNewDemo
The purpose of the method is to demonstrate that a test case can mock the new instance call and throw an exception upon instantiation.
throwExceptionIfFieldWasNotFound(Class<?>, String, Field) - Static method in class org.powermock.reflect.internal.WhiteboxImpl
Throw exception if field was not found.
throwExceptionIfMethodWasNotFound(Class<?>, String, Method, Object...) - Static method in class org.powermock.reflect.internal.WhiteboxImpl
Throw exception if method was not found.
throwExceptionWhenInvoction() - Method in class samples.expectnew.ExpectNewDemo
The purpose of the method is to demonstrate that a test case can mock the new instance call and throw an exception upon instantiation.
timesThree(int) - Method in class samples.partialmocking.MockSelfDemo
 
timesTwo(Integer) - Method in class samples.partialmocking.MockSelfDemo
 
timesTwo(int) - Method in class samples.partialmocking.MockSelfDemo
 
TooManyConstructorsFoundException - Exception in org.powermock.reflect.exceptions
A run-time exception that may be thrown to indicate that too many constructors were found.
TooManyConstructorsFoundException(String) - Constructor for exception org.powermock.reflect.exceptions.TooManyConstructorsFoundException
Constructs a new exception with the specified detail message.
TooManyFieldsFoundException - Exception in org.powermock.reflect.exceptions
A run-time exception that may be thrown to indicate that too many fields were found.
TooManyFieldsFoundException(String) - Constructor for exception org.powermock.reflect.exceptions.TooManyFieldsFoundException
Constructs a new exception with the specified detail message.
TooManyMethodsFoundException - Exception in org.powermock.reflect.exceptions
A run-time exception that may be thrown to indicate that too many methods were found.
TooManyMethodsFoundException(String) - Constructor for exception org.powermock.reflect.exceptions.TooManyMethodsFoundException
Constructs a new exception with the specified detail message.
TOP - Static variable in class org.powermock.core.bytebuddy.Frame.LocalVariable
 
toPrimitiveType(Class<?>[]) - Static method in class org.powermock.reflect.internal.primitivesupport.PrimitiveWrapper
Convert all wrapper types in types to their primitive counter parts.
toReturn(T) - Method in class org.powermock.api.support.membermodification.strategy.impl.MethodStubStrategyImpl
 
toReturn(T) - Method in interface org.powermock.api.support.membermodification.strategy.MethodStubStrategy
Stubs the method to return the specified returnValue.
toString() - Method in class com.sun.tools.attach.VirtualMachine
Returns the string representation of the VirtualMachine.
toString() - Method in class com.sun.tools.attach.VirtualMachineDescriptor
Returns the string representation of the VirtualMachineDescriptor.
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.core.transformers.support.DefaultMockTransformerChain
 
toString() - Method in class org.powermock.reflect.internal.matcherstrategies.AssignableFromFieldTypeMatcherStrategy
 
toString() - Method in class org.powermock.reflect.internal.matcherstrategies.FieldAnnotationMatcherStrategy
 
toString() - Method in class org.powermock.reflect.internal.matcherstrategies.FieldNameMatcherStrategy
 
toString() - Method in class org.powermock.reflect.internal.matcherstrategies.FieldTypeMatcherStrategy
 
toString() - Method in class org.powermock.tests.utils.impl.TestChunkImpl
 
toThrow(Throwable) - Method in class org.powermock.api.support.membermodification.strategy.impl.MethodStubStrategyImpl
 
toThrow(Throwable) - Method in interface org.powermock.api.support.membermodification.strategy.MethodStubStrategy
Stubs the method to throw the specified throwable.
touch() - Method in class samples.partialmocking.PartialMockingWithConstructor
 
transform(ClassWrapper<CtClass>) - Method in class org.powermock.core.transformers.javassist.AbstractJavaAssistMockTransformer
 
transform(CtClass) - Method in class org.powermock.core.transformers.javassist.AbstractJavaAssistMockTransformer
 
transform(CtClass) - Method in class org.powermock.core.transformers.javassist.ClassFinalModifierMockTransformer
 
transform(CtClass) - Method in class org.powermock.core.transformers.javassist.ConstructorsMockTransformer
 
transform(CtClass) - Method in class org.powermock.core.transformers.javassist.InstrumentMockTransformer
 
transform(CtClass) - Method in class org.powermock.core.transformers.javassist.MethodSizeMockTransformer
 
transform(CtClass) - Method in class org.powermock.core.transformers.javassist.PackagePrivateClassesMockTransformer
 
transform(CtClass) - Method in class org.powermock.core.transformers.javassist.StaticFinalFieldsMockTransformer
 
transform(CtClass) - Method in class org.powermock.core.transformers.javassist.StaticFinalNativeMethodMockTransformer
 
transform(CtClass) - Method in class org.powermock.core.transformers.javassist.SuppressStaticInitializerMockTransformer
 
transform(ClassWrapper<CtClass>) - Method in class org.powermock.core.transformers.javassist.testclass.JavaAssistTestClassTransformer
 
transform(ClassWrapper<T>) - Method in interface org.powermock.core.transformers.MockTransformer
Transforms the clazz.
transform(ClassWrapper<T>) - Method in interface org.powermock.core.transformers.MockTransformerChain
Go thought all transformers in chain and instrument the clazz.
transform(ClassWrapper<T>) - Method in class org.powermock.core.transformers.support.DefaultMockTransformerChain
 
transform(ClassLoader, String, Class<?>, ProtectionDomain, byte[]) - Method in class org.powermock.modules.agent.DefinalizingClassTransformer
 
transformClass(ClassWrapper<T>) - Method in class org.powermock.core.classloader.MockClassLoader
 
TransformerHelper - Class in org.powermock.core.transformers.javassist.support
 
TransformerHelper() - Constructor for class org.powermock.core.transformers.javassist.support.TransformerHelper
 
TransformStrategy - Enum in org.powermock.core.transformers
The enum provide information for MockTransformer have PowerMock is started via Runner(FactoryObject), Rule or JavaAgent
type() - Method in class com.sun.tools.attach.spi.AttachProvider
Return this provider's type.
TypeUtils - Class in org.powermock.reflect.internal
Utilities for types.
TypeUtils() - Constructor for class org.powermock.reflect.internal.TypeUtils
 

U

UNINITIALIZED_THIS - Static variable in class org.powermock.core.bytebuddy.Frame.LocalVariable
 
UnproxiedType - Interface in org.powermock.reflect.internal.proxy
 
unwrap() - Method in interface org.powermock.core.transformers.ClassWrapper
Get original object which represent class
unwrap() - Method in class org.powermock.core.transformers.javassist.support.JavaAssistClassWrapperFactory.JavaAssistClassWrapper
 
updateErrorMessageForMethodInvocation(AssertionError) - Static method in class org.powermock.api.mockito.internal.invocation.InvocationControlAssertionError
 
updateErrorMessageForVerifyNoMoreInteractions(AssertionError) - Static method in class org.powermock.api.mockito.internal.invocation.InvocationControlAssertionError
 
UseClassPathAdjuster - Annotation Type in org.powermock.core.classloader.annotations
Deprecated.
Class path adjuster is supported only for Javassist and will be removed in next release.
UseMe - Class in samples.reflection
 
UseMe() - Constructor for class samples.reflection.UseMe
 
UseMeInterface - Interface in samples.reflection
 
usePreparedStatement() - Method in class samples.interfacemethodfinding.InterfaceMethodHierarchyUsage
 
useService() - Method in class samples.expectnew.ExpectNewServiceUser
 
useService() - Method in class samples.expectnew.ExpectNewWithMultipleCtorDemo
 
useService() - Method in class samples.privatefield.SimplePrivateFieldServiceClass
 
useThem() - Method in class samples.expectnew.PrimitiveAndWrapperUser
 
useURL(URL) - Method in class samples.system.SystemClassUser
 

V

validate() - Method in interface org.powermock.api.mockito.internal.mockcreation.MockTypeValidator
 
validate() - Method in class org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl
 
validateInstanceMethods() - Method in class org.powermock.modules.junit4.internal.impl.testcaseworkaround.PowerMockJUnit4MethodValidator
 
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.bytebuddy.PrimitiveBoxing
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.powermock.core.classloader.ByteCodeFramework
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.MethodSignatures
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.
valueOf(String) - Static method in enum org.powermock.reflect.matching.FieldMatchingStrategy
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum samples.enummocking.EnumWithConstructor
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum samples.enummocking.MyEnum
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() - Static method in enum org.powermock.core.bytebuddy.PrimitiveBoxing
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.powermock.core.classloader.ByteCodeFramework
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.MethodSignatures
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.
values() - Static method in enum org.powermock.reflect.matching.FieldMatchingStrategy
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum samples.enummocking.EnumWithConstructor
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum samples.enummocking.MyEnum
Returns an array containing the constants of this enum type, in the order they are declared.
VarArgsConstructorDemo - Class in samples.expectnew
 
VarArgsConstructorDemo(String...) - Constructor for class samples.expectnew.VarArgsConstructorDemo
 
VarArgsConstructorDemo(byte[]...) - Constructor for class samples.expectnew.VarArgsConstructorDemo
 
VarArgsConstructorDemo(Service...) - Constructor for class samples.expectnew.VarArgsConstructorDemo
 
VarArgsConstructorDemo(float, int...) - Constructor for class samples.expectnew.VarArgsConstructorDemo
 
Variable - Class in org.powermock.core.bytebuddy
 
Variable.VariableAccess - Class in org.powermock.core.bytebuddy
 
VariableAccess() - Constructor for class org.powermock.core.bytebuddy.Variable.VariableAccess
 
verify(Object...) - Method in class org.powermock.api.easymock.internal.invocationcontrol.EasyMockMethodInvocationControl
 
verify(Object...) - Method in class org.powermock.api.easymock.internal.invocationcontrol.EasyMockNewInvocationControl
 
verify(Object...) - Static method in class org.powermock.api.easymock.PowerMock
Switches the mocks or classes to verify mode.
verify(VerificationMode) - Method in class org.powermock.api.mockito.internal.invocation.MockitoNewInvocationControl
 
verifyAll() - Static method in class org.powermock.api.easymock.PowerMock
Verify all classes and mock objects known by PowerMock.
verifyInitialization() - Static method in class org.powermock.modules.agent.PowerMockAgent
 
verifyNew(Class<T>, VerificationMode) - Method in class org.powermock.api.mockito.internal.PowerMockitoCore
 
verifyNew(Class<T>) - Static method in class org.powermock.api.mockito.PowerMockito
Verifies certain behavior happened once
verifyNew(Class<T>, VerificationMode) - Static method in class org.powermock.api.mockito.PowerMockito
Verifies certain behavior happened at least once / exact number of times / never.
verifyNoMoreInteractions() - Method in class org.powermock.api.mockito.internal.invocation.MockitoNewInvocationControl
 
VerifyNoMoreInteractions - Class in org.powermock.api.mockito.internal.verification
Verifies no more interactions, delegates to Mockito if PowerMockito doesn't find a supplied mock.
VerifyNoMoreInteractions() - Constructor for class org.powermock.api.mockito.internal.verification.VerifyNoMoreInteractions
 
verifyNoMoreInteractions(Object...) - Static method in class org.powermock.api.mockito.internal.verification.VerifyNoMoreInteractions
 
verifyNoMoreInteractions() - Method in class org.powermock.api.mockito.invocation.MockitoMethodInvocationControl
 
verifyNoMoreInteractions(Object...) - Static method in class org.powermock.api.mockito.PowerMockito
Checks if any of given mocks (can be both instance and class mocks) has any unverified interaction.
verifyPrivate(Object) - Static method in class org.powermock.api.mockito.PowerMockito
Verify a private method invocation for an instance.
verifyPrivate(Object, VerificationMode) - Static method in class org.powermock.api.mockito.PowerMockito
Verify a private method invocation with a given verification mode.
verifyPrivate(Class<?>) - Static method in class org.powermock.api.mockito.PowerMockito
Verify a private method invocation for a class.
verifyPrivate(Class<?>, VerificationMode) - Static method in class org.powermock.api.mockito.PowerMockito
Verify a private method invocation for a class with a given verification mode.
verifyStatic(Class<T>) - Static method in class org.powermock.api.mockito.PowerMockito
Verifies certain behavior of the mockedClass happened once
verifyStatic(Class<T>, VerificationMode) - Static method in class org.powermock.api.mockito.PowerMockito
Verifies certain behavior of the mockedClass happened at least once / exact number of times / never.
verifyZeroInteractions(Object...) - Static method in class org.powermock.api.mockito.PowerMockito
Verifies that no interactions happened on given mocks (can be both instance and class mocks).
VirtualMachine - Class in com.sun.tools.attach
A Java virtual machine.
VirtualMachine(AttachProvider, String) - Constructor for class com.sun.tools.attach.VirtualMachine
Initializes a new instance of this class.
VirtualMachineDescriptor - Class in com.sun.tools.attach
Describes a Java virtual machine.
VirtualMachineDescriptor(AttachProvider, String, String) - Constructor for class com.sun.tools.attach.VirtualMachineDescriptor
Creates a virtual machine descriptor from the given components.
VirtualMachineDescriptor(AttachProvider, String) - Constructor for class com.sun.tools.attach.VirtualMachineDescriptor
Creates a virtual machine descriptor from the given components.
visitMethod(int, String, String, String, String[]) - Method in class org.powermock.core.bytebuddy.MaxLocalsExtractor
 
VOID - Static variable in class org.powermock.core.transformers.javassist.support.TransformerHelper
 
voidFinalMethod() - Static method in class samples.singleton.StaticExample
 
voidMethod() - Method in class samples.newmocking.MyClass
 
voidMethod() - Static method in class samples.singleton.StaticExample
 

W

when(Class<?>) - Method in interface org.powermock.api.mockito.expectation.PowerMockitoStubber
Allows to choose a static method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style
when(T, Method) - Method in interface org.powermock.api.mockito.expectation.PowerMockitoStubber
Allows to mock a private instance method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style.
when(T, Object...) - Method in interface org.powermock.api.mockito.expectation.PowerMockitoStubber
Allows to mock a private instance method based on the parameters when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style.
when(T, String, Object...) - Method in interface org.powermock.api.mockito.expectation.PowerMockitoStubber
Allows to mock a private instance method based on method name and parameters when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style.
when(Class<T>, Method) - Method in interface org.powermock.api.mockito.expectation.PowerMockitoStubber
Allows to mock a static private method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style.
when(Class<T>, Object...) - Method in interface org.powermock.api.mockito.expectation.PowerMockitoStubber
Allows to mock a static private method based on the parameters when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style.
when(Class<T>, String, Object...) - Method in interface org.powermock.api.mockito.expectation.PowerMockitoStubber
Allows to mock a static private method based on method name and parameters when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style.
when(T) - Method in class org.powermock.api.mockito.internal.expectation.PowerMockitoStubberImpl
 
when(Class<?>) - Method in class org.powermock.api.mockito.internal.expectation.PowerMockitoStubberImpl
 
when(T, Method) - Method in class org.powermock.api.mockito.internal.expectation.PowerMockitoStubberImpl
 
when(T, Object...) - Method in class org.powermock.api.mockito.internal.expectation.PowerMockitoStubberImpl
 
when(T, String, Object...) - Method in class org.powermock.api.mockito.internal.expectation.PowerMockitoStubberImpl
 
when(Class<T>, Object...) - Method in class org.powermock.api.mockito.internal.expectation.PowerMockitoStubberImpl
 
when(Class<T>, String, Object...) - Method in class org.powermock.api.mockito.internal.expectation.PowerMockitoStubberImpl
 
when(Class<T>, Method) - Method in class org.powermock.api.mockito.internal.expectation.PowerMockitoStubberImpl
 
when(Object, String, Object...) - Static method in class org.powermock.api.mockito.PowerMockito
Expect calls to private methods.
when(Object, Method) - Static method in class org.powermock.api.mockito.PowerMockito
Expect calls to private methods.
when(Class<?>, Method) - Static method in class org.powermock.api.mockito.PowerMockito
Expect calls to private static methods.
when(Object, Object...) - Static method in class org.powermock.api.mockito.PowerMockito
Expect calls to private methods without having to specify the method name.
when(Class<?>, String, Object...) - Static method in class org.powermock.api.mockito.PowerMockito
Expect a static private or inner class method call.
when(Class<?>, Object...) - Static method in class org.powermock.api.mockito.PowerMockito
Expect calls to private static methods without having to specify the method name.
when(T) - Static method in class org.powermock.api.mockito.PowerMockito
Just delegates to the original Mockito.when(Object) method.
whenNew(Constructor<T>) - Static method in class org.powermock.api.mockito.PowerMockito
Allows specifying expectations on new invocations.
whenNew(Class<T>) - Static method in class org.powermock.api.mockito.PowerMockito
Allows specifying expectations on new invocations.
whenNew(String) - Static method in class org.powermock.api.mockito.PowerMockito
Allows specifying expectations on new invocations for private member (inner) classes, local or anonymous classes.
Whitebox - Class in org.powermock.reflect
Various utilities for accessing internals of a class.
Whitebox() - Constructor for class org.powermock.reflect.Whitebox
 
WhiteboxImpl - Class in org.powermock.reflect.internal
Various utilities for accessing internals of a class.
WhiteboxImpl() - Constructor for class org.powermock.reflect.internal.WhiteboxImpl
 
WildcardMatcher - Class in org.powermock.core
Wildcard matcher.
WildcardMatcher() - Constructor for class org.powermock.core.WildcardMatcher
 
WindowsVirtualMachine - Class in sun.tools.attach
 
WindowsVirtualMachine(AttachProvider, String) - Constructor for class sun.tools.attach.WindowsVirtualMachine
 
with(Class<?>) - Method in interface org.powermock.api.support.membermodification.strategy.ClassReplaceStrategy
Replaces all method invocations on class specified class with method invocation to cls.
with(Method) - Method in class org.powermock.api.support.membermodification.strategy.impl.MethodReplaceStrategyImpl
 
with(InvocationHandler) - Method in class org.powermock.api.support.membermodification.strategy.impl.MethodReplaceStrategyImpl
 
with(Method) - Method in interface org.powermock.api.support.membermodification.strategy.MethodReplaceStrategy
Replaces the method invocation with this method.
with(InvocationHandler) - Method in interface org.powermock.api.support.membermodification.strategy.MethodReplaceStrategy
Replaces the method invocation with an invocation handler
withAnyArguments() - Method in class org.powermock.api.mockito.expectation.DefaultConstructorExpectationSetup
 
WithAnyArguments<T> - Interface in org.powermock.api.mockito.expectation
 
withAnyArguments() - Method in interface org.powermock.api.mockito.expectation.WithAnyArguments
 
withArguments(Object, Object...) - Method in class org.powermock.api.mockito.expectation.ConstructorAwareExpectationSetup
 
withArguments(Object, Object...) - Method in class org.powermock.api.mockito.expectation.DefaultConstructorExpectationSetup
 
withArguments(Object, Object...) - Method in interface org.powermock.api.mockito.expectation.PrivatelyExpectedArguments
 
withArguments(Object, Object...) - Method in interface org.powermock.api.mockito.expectation.WithExpectedArguments
 
withArguments(Object, Object...) - Method in class org.powermock.api.mockito.internal.expectation.DefaultMethodExpectationSetup
 
withArguments(Object, Object...) - Method in class org.powermock.api.mockito.internal.expectation.DefaultPrivatelyExpectedArguments
 
withArguments(Object, Object...) - Method in class org.powermock.api.mockito.internal.verification.DefaultConstructorArgumentsVerification
 
withArguments(Object, Object...) - Method in interface org.powermock.api.mockito.verification.ConstructorArgumentsVerification
 
withArguments(Object, Object...) - Method in interface org.powermock.api.mockito.verification.WithVerifiedArguments
 
withArguments(List<Variable>) - Method in class org.powermock.core.bytebuddy.MockGetawayCall.ForType
 
WithExpectedArguments<T> - Interface in org.powermock.api.mockito.expectation
 
WithExpectedParameterTypes<T> - Interface in org.powermock.api.mockito.expectation
 
withNoArguments() - Method in class org.powermock.api.mockito.expectation.ConstructorAwareExpectationSetup
 
withNoArguments() - Method in class org.powermock.api.mockito.expectation.DefaultConstructorExpectationSetup
 
withNoArguments() - Method in interface org.powermock.api.mockito.expectation.PrivatelyExpectedArguments
 
withNoArguments() - Method in interface org.powermock.api.mockito.expectation.WithoutExpectedArguments
 
withNoArguments() - Method in class org.powermock.api.mockito.internal.expectation.DefaultMethodExpectationSetup
 
withNoArguments() - Method in class org.powermock.api.mockito.internal.expectation.DefaultPrivatelyExpectedArguments
 
withNoArguments() - Method in class org.powermock.api.mockito.internal.verification.DefaultConstructorArgumentsVerification
 
withNoArguments() - Method in interface org.powermock.api.mockito.verification.ConstructorArgumentsVerification
 
withNoArguments() - Method in interface org.powermock.api.mockito.verification.WithoutVerifiedArguments
 
WithOrWithoutExpectedArguments<T> - Interface in org.powermock.api.mockito.expectation
 
WithOrWithoutVerifiedArguments - Interface in org.powermock.api.mockito.verification
 
WithoutExpectedArguments<T> - Interface in org.powermock.api.mockito.expectation
 
WithoutVerifiedArguments - Interface in org.powermock.api.mockito.verification
 
withParameterTypes(Class<?>, Class<?>...) - Method in class org.powermock.api.mockito.expectation.DefaultConstructorExpectationSetup
 
withParameterTypes(Class<?>, Class<?>...) - Method in interface org.powermock.api.mockito.expectation.WithExpectedParameterTypes
 
withParameterTypes(ParameterList<ParameterDescription.InDefinedShape>) - Method in class org.powermock.core.bytebuddy.MockGetawayCall.WithArguments
 
WithVerifiedArguments - Interface in org.powermock.api.mockito.verification
 
wrap(T) - Method in interface org.powermock.core.transformers.ClassWrapper
Wrap changed implementation to get a new instance of ClassWrapper
wrap(T) - Method in interface org.powermock.core.transformers.ClassWrapperFactory
 
wrap(CtClass) - Method in class org.powermock.core.transformers.javassist.support.JavaAssistClassWrapperFactory.JavaAssistClassWrapper
 
wrap(CtClass) - Method in class org.powermock.core.transformers.javassist.support.JavaAssistClassWrapperFactory
 
wrapMethod(Method) - Method in class org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl
 
WsUtil - Class in samples.interfacemethodfinding
Dummy class that is used to setup expectations for the InterfaceMethodHierarchyUsage.
WsUtil() - Constructor for class samples.interfacemethodfinding.WsUtil
 
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

Copyright © 2019. All rights reserved.