|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
PowerMockTestListener
interface.ClassReader
.
ClassReader
.
Runnable
that will be executed after each
MockPolicyInterceptionSettings.stubMethod(Method, Object)
instead.
AgentInitializationException
with
no detail message.
AgentInitializationException
with the specified detail message.
AgentInitializationException
with
the specified detail message and the return value from the
execution of the agent's Agent_OnAttach
function.
AgentLoadException
with
no detail message.
AgentLoadException
with the specified detail message.
MethodStubStrategy.toReturn(Object)
instead.
Mock
,
MockNice
or MockStrict
will have mock objects created for
them and injected to the fields.Dependency
to the list of classes that should be loaded
by the mock class-loader.
Dependency.getData()
method is invoked we return a
custom instance of a DataObject
.
VirtalMachine.attach
when attempting to attach to a Java
virtual machine for which a compatible AttachProvider
does not exist.AttachNotSupportedException
with no detail message.
AttachNotSupportedException
with
the specified detail message.
ByteVector
with a default initial
size.
ByteVector
with the given initial
size.
ClassVisitor
that delegates to another ClassVisitor
.ClassAdapter
object.
ClassVisitor
visit an existing class.ClassReader
object.
ClassReader
object.
ClassReader
object.
ClassReader
object.
ClassVisitor
that generates classes in bytecode form.ClassWriter
object.
ClassWriter
object and enables optimizations for
"mostly add" bytecode transformations.
T
.
ClassVisitor
to which this adapter delegates calls.
declaringClass
Answer
.
MethodInvocationControl
is found in the
MockRepository
.
Mockito.when(Object)
.
MethodInvocationControl
interface.EasyMock.expectLastCall()
method.
where
parameter).
where
parameter).
Field
's that matches the supplied list of field
names.
Field
's.
Field
's that matches the supplied list of field
names.
Opcodes
).
true
.
getInternalName
).
Field
's that matches the supplied list of field
names.
Field
's that matches the supplied list of field
names.
klass
.
klass
.
getInternalName
).
Whitebox.getInternalState(Object, String, Class)
instead.
b
, plus
one.
Method
's that matches the supplied list of method
names.
Method
's that matches the method name and whose
argument types are assignable from expectedTypes
.
Method
's that matches the supplied list of method
names.
MockPolicyInterceptionSettings.getStubbedMethods()
instead.
getInternalName
).
true
if type
has a primitive
counter-part.
b
.
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.
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.
JUnitCore
is a facade for running tests.JUnitCore
to run tests.
ClassNotFoundException
in a runtime exeception.
args
.
MethodVisitor
that delegates to another
MethodVisitor
.MethodAdapter
object.
Method
's that matches the supplied list of method
names.
Field
's.
Method
's that matches the supplied list of method
names.
Object.getClass()
.
MockClassLoader
based on the
following parameters:
MockClassLoader
based on the
following parameters:
MethodInvocationControl
interface.null
or false
)).MockPolicyClassLoadingSettings
interface.MethodVisitor
to which this adapter delegates calls.
Dependency.getData()
and return a mock.DependencyManager
to get the
MyService
singleton instance.InvocationSubstitute
with the
mock object created when invoking
InvocationSubstitute.performSubstitutionLogic(Object...)
object.FieldNotFoundException
if the strategy criteria could
not be found.
PowerMockIgnore.value()
to the system classloader.InjectingAnnotationEngine
with the exception that it
doesn't create/injects mocks annotated with the standard annotations such as
Mock
.SpyAnnotationEngine
but it uses
PowerMockito.spy(Object)
instead.TestRunListener
interface that performs
cleanup after each test so that no state is maintained in PowerMock between
test runs.PowerMockJUnit44RunnerDelegateImpl
to
enable the usage of rules.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
.AttachProvider
that this descriptor references.
ProviderService
to make the
class easier to test without PowerMock.declaringClass
.
type
attribute.
b
.
b
.
b
.
b
.
b
.
b
.
b
.
b
.
Agent_OnAttach
function then this returns that value,
otherwise returns 0
.
classes
.
request
.
test
.
classes
.
Runner
runs tests and notifies a RunNotifier
of significant events as it does so.IServiceRegistrator
interface.ServiceRegistrator
class without using PowerMock.FieldMatchingStrategy
.
FieldMatchingStrategy
.
MockPolicyInterceptionSettings.stubMethod(Method, Object)
instead.
MockAwareVerificationMode
for static method
verification.returnObject
) (i.e. the method is stubbed).
returnObject
) (i.e. the method is stubbed).
returnObject
) (i.e. the method is stubbed).
MemberModifier.suppress(Constructor[])
instead.
MemberModifier.suppress(Constructor[])
instead.
MemberModifier.suppress(Constructor[])
instead.
MemberModifier.suppress(Field[])
instead.
MemberModifier.suppress(Field[])
instead.
MemberModifier.suppress(Field)
instead.
MemberModifier.suppress(Method[])
instead.
MemberModifier.suppress(Method[])
instead.
MemberModifier.suppress(Method[])
instead.
MemberModifier.suppress(Method[])
instead.
MemberModifier.suppress(Method[])
instead.
MemberModifier.suppress(Method[])
instead.
MemberModifier.suppress(Method)
instead.
MemberModifier.suppress(Constructor)
instead.
types
to their primitive
counter parts.
VirtualMachine
.
VirtualMachineDescriptor
.
Class
with name
fullyQualifiedName
.
verifyNew(mockClass, times(1))
E.g:
verifyNew(ClassWithStaticMethod.class);
Above is equivalent to:
verifyNew(ClassWithStaticMethod.class, times(1));
verifyStatic(times(1))
E.g:
verifyStatic();
ClassWithStaticMethod.someStaticMethod("some arg");
Above is equivalent to:
verifyStatic(times(1));
ClassWithStaticMethod.someStaticMethod("some arg");
Although it is possible to verify a stubbed invocation, usually it's
just redundant.
Mockito.doThrow(Throwable)
Mockito.doAnswer(Answer)
Mockito.doNothing()
Mockito.doReturn(Object)
See examples in javadoc for Mockito
Mockito.doThrow(Throwable)
Mockito.doAnswer(Answer)
Mockito.doNothing()
Mockito.doReturn(Object)
See examples in javadoc for Mockito
Mockito.when(Object)
method.
cls
.
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |