Skip navigation links
A B C D E F G H I 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
 
AbstractMethodMocking - Class in samples.abstractmocking
Demonstrates that PowerMock can mock abstract methods.
AbstractMethodMocking() - Constructor for class samples.abstractmocking.AbstractMethodMocking
 
AbstractStaticInitializerExample - Class in samples.staticinitializer
 
AbstractStaticInitializerExample() - Constructor for class samples.staticinitializer.AbstractStaticInitializerExample
 
addItem(String, String) - Method in class samples.suppressfield.ItemRepository
 
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
 
AnnotationDemo - Class in samples.annotationbased
 
AnnotationDemo(Service) - Constructor for class samples.annotationbased.AnnotationDemo
 
AppaleList - Class in samples.suppressconstructor
 
AppaleList() - Constructor for class samples.suppressconstructor.AppaleList
 
AppaleList(String) - Constructor for class samples.suppressconstructor.AppaleList
 
ArgumentMatcherDemo - Class in samples.argumentmatcher
 
ArgumentMatcherDemo() - Constructor for class samples.argumentmatcher.ArgumentMatcherDemo
 
assertThatVerifyWorksForMultipleMocks() - Static method in class samples.singleton.StaticService
 
aVoidMethod() - Static method in class samples.staticandinstance.StaticAndInstanceDemo
 

B

b() - Static method in class samples.stress.ClassWithStatic
 
b1() - Method in class samples.stress.StressSample
 

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
 
ChildA - Class in samples.classhierarchy
 
ChildA() - Constructor for class samples.classhierarchy.ChildA
 
ChildB - Class in samples.classhierarchy
 
ChildB() - Constructor for class samples.classhierarchy.ChildB
 
ClassInsideJavaPackage - Class in samples.java
 
ClassInsideJavaPackage() - Constructor for class samples.java.ClassInsideJavaPackage
 
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
 
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
 
ConstructorArgsDemo - Class in samples.constructorargs
 
ConstructorArgsDemo(String) - Constructor for class samples.constructorargs.ConstructorArgsDemo
 
ConstructorArgsDemo() - Constructor for class samples.constructorargs.ConstructorArgsDemo
 
copyProperty(String, String) - Method in class samples.system.SystemClassUser
 
createDirectoryStructure(String) - Method in class samples.expectnew.NewFileExample
 
createSimpleThing() - Static method in class samples.rule.SimpleThingCreator
 

D

d() - Static method in class samples.stress.ClassWithStatic
 
d1() - Method in class samples.stress.StressSample
 
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
 
displayMessage(String) - Method in class samples.swing.ReallySimpleSwingDemo
 
doArrayStuff(String) - Method in class samples.privatemocking.PrivateMethodDemo
 
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
 
doObjectStuff(Object) - Method in class samples.privatemocking.PrivateMethodDemo
 
doSomeNativeStuffUsingTheLoadedSystemLibrary() - Method in class samples.staticinitializer.EvilStaticInitializerExample
 
doStatic(int) - Static method in class samples.singleton.StaticService
 
doStuff(String) - Method in class samples.suppressconstructor.InvokeConstructor
 

E

e() - Static method in class samples.stress.ClassWithStatic
 
e1() - Method in class samples.stress.StressSample
 
enhancedSay(String, String) - Method in class samples.privatemocking.PrivateMethodDemo
 
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
 
EvilStaticInitializerExample - Class in samples.staticinitializer
Simple example of a class with a static initializer.
EvilStaticInitializerExample() - Constructor for class samples.staticinitializer.EvilStaticInitializerExample
 
executeCommand() - Method in class samples.system.SystemClassUser
 
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
 
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
 
FieldInitializerDemo - Class in samples.fieldmock
 
FieldInitializerDemo() - Constructor for class samples.fieldmock.FieldInitializerDemo
 
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
 
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
 
format(String, String) - Method in class samples.system.SystemClassUser
 

G

g() - Static method in class samples.stress.ClassWithStatic
 
g1() - Method in class samples.stress.StressSample
 
generatePerishableToken() - Method in class samples.system.SystemClassUser
 
get() - Method in class samples.mockpolicy.frameworkexample.NativeResult
 
getAll() - Method in class samples.suppressconstructor.AppaleList
 
getAllMessages() - Method in class samples.expectnew.VarArgsConstructorDemo
 
getAllServices() - Method in class samples.expectnew.VarArgsConstructorDemo
 
getAMessage() - Method in class samples.partialmocking.MockSelfDemoSubClass
 
getAProtectedMessage() - Method in class samples.partialmocking.MockSelfDemoSubClass
 
getBoolean() - Method in class samples.suppressmethod.SuppressMethod
 
getByte() - Method in class samples.suppressmethod.SuppressMethod
 
getByteArrays() - Method in class samples.expectnew.VarArgsConstructorDemo
 
getCompositeMessage() - Method in class samples.privatefield.MockSelfPrivateFieldServiceClass
 
getConcatenatedString(String) - Method in class samples.staticinitializer.SimpleStaticInitializerExample
 
getConnection() - Static method in class samples.interfacemethodfinding.WsUtil
 
getConstructorResult() - Method in class samples.constructor.PrivateConstructorDemo
 
getConstructorResult() - Method in class samples.constructor.PublicConstructorDemo
 
getConstructorValue() - Method in class samples.partialmocking.MockSelfDemo
 
getDomainObject() - Method in class samples.suppressfield.SuppressField
 
getDouble() - Method in class samples.suppressmethod.SuppressMethod
 
getDouble(double) - Method in class samples.suppressmethod.SuppressMethod
 
getFinalDemo() - Method in class samples.finalmocking.HoldingFinalDemo
 
getFinalDemo() - Static method in class samples.finalmocking.StaticHoldingFinalDemo
 
getFinalDemo() - Method in class samples.injectmocks.DependencyHolder
 
getFirstChar() - Method in class samples.expectnew.ExpectNewOfFinalSystemClassDemo
 
getFloat() - Method in class samples.suppressmethod.SuppressMethod
 
getFromMap(int) - Method in class samples.fieldmock.FieldInitializerDemo
 
getHello() - Method in class samples.suppressconstructor.SuppressNonParentConstructorDemo
 
getHello() - Method in class samples.suppressconstructor.SuppressSpecificConstructorDemo
 
getInnerMessage() - Method in class samples.innerclassmocking.ClassWithNonPrivateInnerClass.InnerClass
 
getInt() - Method in class samples.suppressmethod.SuppressMethod
 
getInts() - Method in class samples.expectnew.VarArgsConstructorDemo
 
getIt() - Method in class samples.abstractmocking.AbstractMethodMocking
 
getLocalClassValue() - Method in class samples.classwithinnermembers.ClassWithInnerMembers
 
getLocalClassValueWithArgument() - Method in class samples.classwithinnermembers.ClassWithInnerMembers
 
getLocalHost() - Method in class samples.system.SystemClassUser
 
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.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
 
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 samples.rule.ThingToTest
 
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
 
getObjectWithArgument(String) - Method in class samples.suppressmethod.SuppressMethod
 
getRandomInteger() - Method in class samples.simplemix.SimpleMixCollaborator
 
getRandomInteger() - Static method in class samples.simplemix.SimpleMixUtilities
 
getResult() - Method in class samples.mockpolicy.SimpleClassWithADependency
 
getResult() - Method in class samples.mockpolicy.SomeClassWithAMethod
 
getResult() - Method in class samples.mockpolicy.SomeClassWithAMethodParent
 
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
 
getState() - Method in class samples.constructor.PrivateConstructorInstantiationDemo
 
getState() - Static method in class samples.partialmocking.MockWithStaticStateDemo
 
getStaticMessage() - Static method in class samples.staticandinstance.StaticAndInstanceDemo
 
getStaticString() - Static method in class samples.staticinitializer.AbstractStaticInitializerExample
 
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
 
getSystemProperty() - Method in class samples.system.SystemClassUser
 
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
 
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
 

H

h() - Static method in class samples.stress.ClassWithStatic
 
h1() - Method in class samples.stress.StressSample
 
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
 
HoldingFinalDemo - Class in samples.finalmocking
 
HoldingFinalDemo() - Constructor for class samples.finalmocking.HoldingFinalDemo
 

I

initialize() - Method in class samples.partialmocking.PartialMockingWithConstructor
 
InnerClass() - Constructor for class samples.innerclassmocking.ClassWithNonPrivateInnerClass.InnerClass
 
instantiateUseMe() - Method in class samples.reflection.ReflectionInstantiator
 
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.
internalGetNumberFromInnerInstance() - Method in class samples.singleton.StaticService
 
invokeAPrivateVoidMethod(int) - Method in class samples.expectvoid.ExpectVoidDemo
 
InvokeConstructor - Class in samples.suppressconstructor
 
InvokeConstructor() - Constructor for class samples.suppressconstructor.InvokeConstructor
 
invokeNative(String) - Method in class samples.nativemocking.NativeService
 
invokeNativeMethod(String) - Method in class samples.nativemocking.NativeMockingSample
 
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
 
isMyBoolean() - Method in class samples.suppressfield.SuppressField
 
ItemRepository - Class in samples.suppressfield
 
ItemRepository() - Constructor for class samples.suppressfield.ItemRepository
 

L

lengthOf(StringBuilder) - Method in class samples.system.SystemClassUser
 

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
 
methodCallingPrimitiveTestMethod() - Method in class samples.privatemocking.PrivateMethodDemo
 
methodCallingWrappedTestMethod() - Method in class samples.privatemocking.PrivateMethodDemo
 
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
 
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
 
mockMe() - Method in class samples.java.ClassInsideJavaPackage
 
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
 
MockWithStaticStateDemo - Class in samples.partialmocking
 
MockWithStaticStateDemo() - Constructor for class samples.partialmocking.MockWithStaticStateDemo
 
multipleNew() - Method in class samples.expectnew.ExpectNewDemo
 
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

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
 
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
 
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
 

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
 
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

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
 
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
 
PowerMockIgnoreDemo - Class in samples.powermockignore
 
PowerMockIgnoreDemo() - Constructor for class samples.powermockignore.PowerMockIgnoreDemo
 
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
 
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
 
PrivateMethodDemo - Class in samples.privatemocking
A class used to test the functionality to mock private methods.
PrivateMethodDemo() - Constructor for class samples.privatemocking.PrivateMethodDemo
 
PrivatePartialMockingExample - Class in samples.partialmocking
Simple partial mocking example that should need no byte-code manipulation.
PrivatePartialMockingExample() - Constructor for class samples.partialmocking.PrivatePartialMockingExample
 
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
 

R

ReallySimpleSwingDemo - Class in samples.swing
 
ReallySimpleSwingDemo() - Constructor for class samples.swing.ReallySimpleSwingDemo
 
ReflectionInstantiator - Class in samples.reflection
 
ReflectionInstantiator() - Constructor for class samples.reflection.ReflectionInstantiator
 
ResultCalculator - Class in samples.mockpolicy
 
ResultCalculator(int) - Constructor for class samples.mockpolicy.ResultCalculator
 

S

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.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.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() - 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.
setFinalDemo(FinalDemo) - Method in class samples.injectmocks.DependencyHolder
 
setService(Service) - Method in class samples.anonymousmocking.StupidAnonymous
 
setValue(int) - Method in class samples.classhierarchy.Parent
 
showDialog() - Method in class samples.powermockignore.PowerMockIgnoreDemo
 
shuffleCollection(List<?>) - Method in class samples.system.SystemClassUser
 
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
 
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
 
something() - Method in class samples.suppresseverything.SuppressEverything
 
somethingElse() - Method in class samples.suppresseverything.SuppressEverything
 
SpyObject - Class in samples.spy
 
SpyObject() - Constructor for class samples.spy.SpyObject
 
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
 
StaticExample - Class in samples.singleton
Can be used to assert that partial mocking of static methods works.
StaticExample() - Constructor for class samples.singleton.StaticExample
 
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.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
 
StressSample - Class in samples.stress
 
StressSample() - Constructor for class samples.stress.StressSample
 
StrictDemo - Class in samples.strict
 
StrictDemo() - Constructor for class samples.strict.StrictDemo
 
StupidAnonymous - Class in samples.anonymousmocking
 
StupidAnonymous() - Constructor for class samples.anonymousmocking.StupidAnonymous
 
StupidNew - Class in samples.newmocking
 
StupidNew() - Constructor for class samples.newmocking.StupidNew
 
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 - Class in samples.suppressfield
 
SuppressField() - Constructor for class samples.suppressfield.SuppressField
 
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
 
SuppressSpecificConstructorDemo - Class in samples.suppressconstructor
 
SuppressSpecificConstructorDemo() - Constructor for class samples.suppressconstructor.SuppressSpecificConstructorDemo
 
SuppressSpecificConstructorDemo(String) - Constructor for class samples.suppressconstructor.SuppressSpecificConstructorDemo
 
SystemClassUser - Class in samples.system
Class used to demonstrate PowerMock's ability to mock system classes.
SystemClassUser() - Constructor for class samples.system.SystemClassUser
 

T

ThingToTest - Class in samples.rule
 
ThingToTest() - Constructor for class samples.rule.ThingToTest
 
threadSleep() - Method in class samples.system.SystemClassUser
 
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.
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
 
touch() - Method in class samples.partialmocking.PartialMockingWithConstructor
 

U

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

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 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
 
voidFinalMethod() - Static method in class samples.singleton.StaticExample
 
voidMethod() - Method in class samples.newmocking.MyClass
 
voidMethod() - Static method in class samples.singleton.StaticExample
 

W

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 L M N O P R S T U V W 
Skip navigation links

Copyright © 2007–2015. All rights reserved.