[powermock] 04/04: Merge tag 'upstream/1.6.5'
Emmanuel Bourg
ebourg-guest at moszumanska.debian.org
Tue Jun 28 22:02:55 UTC 2016
This is an automated email from the git hooks/post-receive script.
ebourg-guest pushed a commit to annotated tag debian/1.6.5-1
in repository powermock.
commit 237b1617fc5562cd95805435ad9e43ff8b5b9ac0
Merge: 610602a 2439dee
Author: Emmanuel Bourg <ebourg at apache.org>
Date: Tue Jun 28 16:21:15 2016 +0200
Merge tag 'upstream/1.6.5'
Upstream version 1.6.5
.github/ISSUE_TEMPLATE.md | 29 +
.gitignore | 9 +
.travis.yml | 11 +
LICENSE.txt | 202 ++
README.md | 69 +
api/easymock/pom.xml | 32 +
.../api/easymock/EasyMockConfiguration.java | 83 +
.../java/org/powermock/api/easymock/PowerMock.java | 2125 ++++++++++++++
.../powermock/api/easymock/annotation/Mock.java | 80 +
.../api/easymock/annotation/MockNice.java | 67 +
.../api/easymock/annotation/MockStrict.java | 66 +
.../EasyMockMethodInvocationControl.java | 152 +
.../NewInvocationControlAssertionError.java | 23 +
.../NewInvocationControlImpl.java | 113 +
.../internal/mockstrategy/MockStrategy.java | 9 +
.../impl/AbstractMockStrategyBase.java | 27 +
.../mockstrategy/impl/DefaultMockStrategy.java | 10 +
.../mockstrategy/impl/NiceMockStrategy.java | 10 +
.../mockstrategy/impl/StrictMockStrategy.java | 10 +
.../AbstractEasyMockLogPolicyBase.java | 99 +
.../api/easymock/mockpolicies/JclMockPolicy.java | 62 +
.../api/easymock/mockpolicies/Log4jMockPolicy.java | 62 +
.../api/easymock/mockpolicies/Slf4jMockPolicy.java | 58 +
.../powermocklistener/AnnotationEnabler.java | 32 +
.../agent/JavaAgentFrameworkRegisterImpl.java | 36 +
.../api/extension/listener/AnnotationEnabler.java | 83 +
.../listener/AnnotationGlobalMetadata.java | 69 +
.../extension/listener/AnnotationMockCreator.java | 27 +
.../listener/AnnotationMockCreatorFactory.java | 56 +
.../extension/listener/AnnotationMockMetadata.java | 114 +
.../extension/listener/AnnotationMockScanner.java | 58 +
.../listener/EasyMockAnnotationSupport.java | 135 +
.../extension/listener/TestSubjectInjector.java | 153 +
.../proxyframework/ProxyFrameworkImpl.java | 33 +
.../MockingFrameworkReporterFactoryImpl.java | 48 +
api/mockito-common/pom.xml | 40 +
.../agent/JavaAgentFrameworkRegisterImpl.java | 43 +
.../MockingFrameworkReporterFactoryImpl.java | 88 +
.../api/mockito/ClassNotPreparedException.java | 12 +
.../reporter/MockitoPowerMockReporter.java | 36 +
.../internal/mockcreation/AbstractMockCreator.java | 24 +
.../internal/mockcreation/MockTypeValidator.java | 8 +
.../mockcreation/MockTypeValidatorFactory.java | 92 +
api/mockito/pom.xml | 37 +
.../api/extension/listener/AnnotationEnabler.java | 141 +
.../proxyframework/ProxyFrameworkImpl.java | 54 +
.../org/powermock/api/mockito/PowerMockito.java | 799 ++++++
.../expectation/ConstructorExpectationSetup.java | 20 +
.../mockito/expectation/PowerMockitoStubber.java | 209 ++
.../expectation/PrivatelyExpectedArguments.java | 21 +
.../api/mockito/expectation/WithAnyArguments.java | 24 +
.../mockito/expectation/WithExpectedArguments.java | 24 +
.../expectation/WithExpectedParameterTypes.java | 22 +
.../WithOrWithoutExpectedArguments.java | 19 +
.../expectation/WithoutExpectedArguments.java | 24 +
.../api/mockito/internal/PowerMockitoCore.java | 55 +
.../PowerMockitoInjectingAnnotationEngine.java | 37 +
.../PowerMockitoSpyAnnotationEngine.java | 66 +
.../exceptions/StackTraceCleanerProvider.java | 15 +
.../ConstructorAwareExpectationSetup.java | 50 +
.../DefaultConstructorExpectationSetup.java | 117 +
.../expectation/DefaultMethodExpectationSetup.java | 63 +
.../DefaultPrivatelyExpectedArguments.java | 51 +
.../DelegatingToConstructorsOngoingStubbing.java | 151 +
.../expectation/PowerMockitoStubberImpl.java | 134 +
.../InvocationControlAssertionError.java | 157 ++
.../invocation/MockitoMethodInvocationControl.java | 338 +++
.../invocation/MockitoNewInvocationControl.java | 121 +
.../invocation/PowerMockMatchersBinder.java | 42 +
.../internal/invocation/ToStringGenerator.java | 44 +
.../mockito/internal/mockcreation/MockCreator.java | 189 ++
.../internal/mockcreation/MockitoStateCleaner.java | 30 +
.../PowerMockMethodInterceptorFilter.java | 29 +
.../mockito/internal/mockmaker/PowerMockMaker.java | 109 +
.../internal/stubbing/answers/ChainReturns.java | 39 +
.../DefaultConstructorArgumentsVerfication.java | 61 +
.../DefaultPrivateMethodVerification.java | 75 +
.../StaticMockAwareVerificationMode.java | 62 +
.../verification/VerifyNoMoreInteractions.java | 62 +
.../api/mockito/mockpolicies/Slf4jMockPolicy.java | 103 +
.../powermocklistener/AnnotationEnabler.java | 28 +
.../repackaged/AcrossJVMSerializationFeature.java | 426 +++
.../api/mockito/repackaged/CGLIBHacker.java | 42 +
.../api/mockito/repackaged/CglibMockMaker.java | 54 +
.../api/mockito/repackaged/ClassImposterizer.java | 161 ++
.../repackaged/DelegatingMockitoMethodProxy.java | 22 +
.../repackaged/MethodInterceptorFilter.java | 84 +
.../api/mockito/repackaged/Mockito-LICENSE.txt | 21 +
.../mockito/repackaged/MockitoNamingPolicy.java | 17 +
.../repackaged/SerializableMockitoMethodProxy.java | 45 +
.../api/mockito/repackaged/SerializableNoOp.java | 20 +
.../api/mockito/repackaged/package-info.java | 4 +
.../ConstructorArgumentsVerification.java | 23 +
.../verification/PrivateMethodVerification.java | 46 +
.../WithOrWithoutVerifiedArguments.java | 19 +
.../verification/WithVerifiedArguments.java | 23 +
.../verification/WithoutVerifiedArguments.java | 22 +
.../org.mockito.plugins.MockMaker | 1 +
.../org.mockito.plugins.StackTraceCleanerProvider | 1 +
.../DefaultMethodExpectationSetupTest.java | 66 +
.../internal/mockcreation/MockCreatorTest.java | 43 +
.../stubbing/answers/ChainReturnsTest.java | 54 +
api/mockito2/pom.xml | 37 +
.../api/extension/listener/AnnotationEnabler.java | 130 +
.../proxyframework/ProxyFrameworkImpl.java | 55 +
.../org/powermock/api/mockito/PowerMockito.java | 800 ++++++
.../expectation/ConstructorExpectationSetup.java | 21 +
.../mockito/expectation/PowerMockitoStubber.java | 210 ++
.../expectation/PrivatelyExpectedArguments.java | 22 +
.../api/mockito/expectation/WithAnyArguments.java | 25 +
.../mockito/expectation/WithExpectedArguments.java | 25 +
.../expectation/WithExpectedParameterTypes.java | 23 +
.../WithOrWithoutExpectedArguments.java | 20 +
.../expectation/WithoutExpectedArguments.java | 25 +
.../api/mockito/internal/PowerMockitoCore.java | 56 +
.../PowerMockitoInjectingAnnotationEngine.java | 38 +
.../PowerMockitoSpyAnnotationEngine.java | 67 +
.../exceptions/StackTraceCleanerProvider.java | 32 +
.../ConstructorAwareExpectationSetup.java | 51 +
.../DefaultConstructorExpectationSetup.java | 118 +
.../expectation/DefaultMethodExpectationSetup.java | 64 +
.../DefaultPrivatelyExpectedArguments.java | 52 +
.../DelegatingToConstructorsOngoingStubbing.java | 163 ++
.../expectation/PowerMockitoStubberImpl.java | 135 +
.../InvocationControlAssertionError.java | 158 ++
.../invocation/MockitoMethodInvocationControl.java | 339 +++
.../invocation/MockitoNewInvocationControl.java | 122 +
.../invocation/PowerMockMatchersBinder.java | 74 +
.../internal/invocation/ToStringGenerator.java | 61 +
.../mockito/internal/mockcreation/MockCreator.java | 189 ++
.../internal/mockcreation/MockitoStateCleaner.java | 47 +
.../PowerMockMethodInterceptorFilter.java | 46 +
.../mockito/internal/mockmaker/PowerMockMaker.java | 115 +
.../internal/stubbing/answers/ChainReturns.java | 56 +
.../DefaultConstructorArgumentsVerfication.java | 62 +
.../DefaultPrivateMethodVerification.java | 76 +
.../StaticMockAwareVerificationMode.java | 63 +
.../verification/VerifyNoMoreInteractions.java | 63 +
.../api/mockito/mockpolicies/Slf4jMockPolicy.java | 105 +
.../powermocklistener/AnnotationEnabler.java | 29 +
.../repackaged/AcrossJVMSerializationFeature.java | 429 +++
.../api/mockito/repackaged/CGLIBHacker.java | 42 +
.../api/mockito/repackaged/CglibMockMaker.java | 72 +
.../api/mockito/repackaged/ClassImposterizer.java | 164 ++
.../repackaged/DelegatingMockitoMethodProxy.java | 21 +
.../repackaged/MethodInterceptorFilter.java | 83 +
.../api/mockito/repackaged/Mockito-LICENSE.txt | 21 +
.../mockito/repackaged/MockitoNamingPolicy.java | 17 +
.../repackaged/SerializableMockitoMethodProxy.java | 44 +
.../api/mockito/repackaged/SerializableNoOp.java | 20 +
.../mockito/repackaged/asm/AnnotationVisitor.java | 97 +
.../mockito/repackaged/asm/AnnotationWriter.java | 309 +++
.../api/mockito/repackaged/asm/Attribute.java | 254 ++
.../api/mockito/repackaged/asm/ByteVector.java | 293 ++
.../api/mockito/repackaged/asm/ClassAdapter.java | 121 +
.../api/mockito/repackaged/asm/ClassReader.java | 1996 ++++++++++++++
.../api/mockito/repackaged/asm/ClassVisitor.java | 196 ++
.../api/mockito/repackaged/asm/ClassWriter.java | 1311 +++++++++
.../powermock/api/mockito/repackaged/asm/Edge.java | 75 +
.../api/mockito/repackaged/asm/FieldVisitor.java | 64 +
.../api/mockito/repackaged/asm/FieldWriter.java | 264 ++
.../api/mockito/repackaged/asm/Frame.java | 1388 ++++++++++
.../api/mockito/repackaged/asm/Handler.java | 70 +
.../powermock/api/mockito/repackaged/asm/Item.java | 256 ++
.../api/mockito/repackaged/asm/Label.java | 518 ++++
.../api/mockito/repackaged/asm/MethodAdapter.java | 195 ++
.../api/mockito/repackaged/asm/MethodVisitor.java | 395 +++
.../api/mockito/repackaged/asm/MethodWriter.java | 2564 +++++++++++++++++
.../api/mockito/repackaged/asm/Opcodes.java | 341 +++
.../powermock/api/mockito/repackaged/asm/Type.java | 794 ++++++
.../api/mockito/repackaged/asm/package.html | 117 +
.../repackaged/asm/signature/SignatureReader.java | 229 ++
.../repackaged/asm/signature/SignatureVisitor.java | 185 ++
.../repackaged/asm/signature/SignatureWriter.java | 207 ++
.../mockito/repackaged/asm/signature/package.html | 66 +
.../repackaged/asm/tree/AbstractInsnNode.java | 233 ++
.../repackaged/asm/tree/AnnotationNode.java | 191 ++
.../api/mockito/repackaged/asm/tree/ClassNode.java | 280 ++
.../mockito/repackaged/asm/tree/FieldInsnNode.java | 103 +
.../api/mockito/repackaged/asm/tree/FieldNode.java | 127 +
.../api/mockito/repackaged/asm/tree/FrameNode.java | 208 ++
.../mockito/repackaged/asm/tree/IincInsnNode.java | 77 +
.../repackaged/asm/tree/InnerClassNode.java | 101 +
.../api/mockito/repackaged/asm/tree/InsnList.java | 640 +++++
.../api/mockito/repackaged/asm/tree/InsnNode.java | 81 +
.../mockito/repackaged/asm/tree/IntInsnNode.java | 81 +
.../mockito/repackaged/asm/tree/JumpInsnNode.java | 89 +
.../api/mockito/repackaged/asm/tree/LabelNode.java | 75 +
.../mockito/repackaged/asm/tree/LdcInsnNode.java | 74 +
.../repackaged/asm/tree/LineNumberNode.java | 79 +
.../repackaged/asm/tree/LocalVariableNode.java | 115 +
.../repackaged/asm/tree/LookupSwitchInsnNode.java | 113 +
.../mockito/repackaged/asm/tree/MemberNode.java | 120 +
.../repackaged/asm/tree/MethodInsnNode.java | 104 +
.../mockito/repackaged/asm/tree/MethodNode.java | 490 ++++
.../asm/tree/MultiANewArrayInsnNode.java | 78 +
.../repackaged/asm/tree/TableSwitchInsnNode.java | 112 +
.../repackaged/asm/tree/TryCatchBlockNode.java | 94 +
.../mockito/repackaged/asm/tree/TypeInsnNode.java | 84 +
.../mockito/repackaged/asm/tree/VarInsnNode.java | 87 +
.../repackaged/asm/tree/analysis/Analyzer.java | 507 ++++
.../asm/tree/analysis/AnalyzerException.java | 56 +
.../asm/tree/analysis/BasicInterpreter.java | 321 +++
.../repackaged/asm/tree/analysis/BasicValue.java | 105 +
.../asm/tree/analysis/BasicVerifier.java | 423 +++
.../repackaged/asm/tree/analysis/Frame.java | 667 +++++
.../repackaged/asm/tree/analysis/Interpreter.java | 178 ++
.../asm/tree/analysis/SimpleVerifier.java | 284 ++
.../repackaged/asm/tree/analysis/SmallSet.java | 125 +
.../asm/tree/analysis/SourceInterpreter.java | 174 ++
.../repackaged/asm/tree/analysis/SourceValue.java | 95 +
.../repackaged/asm/tree/analysis/Subroutine.java | 93 +
.../repackaged/asm/tree/analysis/Value.java | 45 +
.../repackaged/asm/tree/analysis/package.html | 97 +
.../api/mockito/repackaged/asm/tree/package.html | 222 ++
.../mockito/repackaged/asm/util/ASMifiable.java | 53 +
.../asm/util/ASMifierAbstractVisitor.java | 222 ++
.../asm/util/ASMifierAnnotationVisitor.java | 127 +
.../repackaged/asm/util/ASMifierClassVisitor.java | 575 ++++
.../repackaged/asm/util/ASMifierFieldVisitor.java | 50 +
.../repackaged/asm/util/ASMifierMethodVisitor.java | 443 +++
.../repackaged/asm/util/AbstractVisitor.java | 202 ++
.../asm/util/CheckAnnotationAdapter.java | 132 +
.../repackaged/asm/util/CheckClassAdapter.java | 480 ++++
.../repackaged/asm/util/CheckFieldAdapter.java | 77 +
.../repackaged/asm/util/CheckMethodAdapter.java | 1325 +++++++++
.../repackaged/asm/util/CheckSignatureAdapter.java | 287 ++
.../repackaged/asm/util/TraceAbstractVisitor.java | 179 ++
.../asm/util/TraceAnnotationVisitor.java | 266 ++
.../repackaged/asm/util/TraceClassVisitor.java | 523 ++++
.../repackaged/asm/util/TraceFieldVisitor.java | 78 +
.../repackaged/asm/util/TraceMethodVisitor.java | 563 ++++
.../repackaged/asm/util/TraceSignatureVisitor.java | 300 ++
.../api/mockito/repackaged/asm/util/Traceable.java | 52 +
.../api/mockito/repackaged/asm/util/package.html | 70 +
.../mockito/repackaged/cglib/beans/BeanCopier.java | 173 ++
.../repackaged/cglib/beans/BeanGenerator.java | 139 +
.../mockito/repackaged/cglib/beans/BeanMap.java | 311 +++
.../repackaged/cglib/beans/BeanMapEmitter.java | 192 ++
.../mockito/repackaged/cglib/beans/BulkBean.java | 122 +
.../repackaged/cglib/beans/BulkBeanEmitter.java | 153 +
.../repackaged/cglib/beans/BulkBeanException.java | 30 +
.../repackaged/cglib/beans/FixedKeySet.java | 30 +
.../repackaged/cglib/beans/ImmutableBean.java | 122 +
.../cglib/core/AbstractClassGenerator.java | 235 ++
.../api/mockito/repackaged/cglib/core/Block.java | 38 +
.../repackaged/cglib/core/ClassEmitter.java | 270 ++
.../repackaged/cglib/core/ClassGenerator.java | 11 +
.../mockito/repackaged/cglib/core/ClassInfo.java | 35 +
.../repackaged/cglib/core/ClassNameReader.java | 53 +
.../mockito/repackaged/cglib/core/ClassesKey.java | 20 +
.../mockito/repackaged/cglib/core/CodeEmitter.java | 851 ++++++
.../cglib/core/CodeGenerationException.java | 21 +
.../repackaged/cglib/core/CollectionUtils.java | 70 +
.../mockito/repackaged/cglib/core/Constants.java | 56 +
.../mockito/repackaged/cglib/core/Converter.java | 9 +
.../mockito/repackaged/cglib/core/Customizer.java | 11 +
.../cglib/core/DebuggingClassWriter.java | 107 +
.../cglib/core/DefaultGeneratorStrategy.java | 29 +
.../repackaged/cglib/core/DefaultNamingPolicy.java | 45 +
.../repackaged/cglib/core/DuplicatesPredicate.java | 17 +
.../mockito/repackaged/cglib/core/EmitUtils.java | 911 ++++++
.../repackaged/cglib/core/GeneratorStrategy.java | 33 +
.../mockito/repackaged/cglib/core/KeyFactory.java | 246 ++
.../api/mockito/repackaged/cglib/core/Local.java | 26 +
.../cglib/core/LocalVariablesSorter.java | 133 +
.../mockito/repackaged/cglib/core/MethodInfo.java | 35 +
.../cglib/core/MethodInfoTransformer.java | 27 +
.../repackaged/cglib/core/MethodWrapper.java | 38 +
.../repackaged/cglib/core/NamingPolicy.java | 30 +
.../cglib/core/ObjectSwitchCallback.java | 13 +
.../mockito/repackaged/cglib/core/Predicate.java | 10 +
.../cglib/core/ProcessArrayCallback.java | 11 +
.../cglib/core/ProcessSwitchCallback.java | 12 +
.../repackaged/cglib/core/ReflectUtils.java | 462 ++++
.../cglib/core/RejectModifierPredicate.java | 19 +
.../mockito/repackaged/cglib/core/Signature.java | 62 +
.../mockito/repackaged/cglib/core/TinyBitSet.java | 68 +
.../mockito/repackaged/cglib/core/Transformer.java | 9 +
.../mockito/repackaged/cglib/core/TypeUtils.java | 412 +++
.../repackaged/cglib/core/VisibilityPredicate.java | 34 +
.../mockito/repackaged/cglib/proxy/Callback.java | 18 +
.../repackaged/cglib/proxy/CallbackFilter.java | 34 +
.../repackaged/cglib/proxy/CallbackGenerator.java | 28 +
.../repackaged/cglib/proxy/CallbackHelper.java | 91 +
.../repackaged/cglib/proxy/CallbackInfo.java | 90 +
.../mockito/repackaged/cglib/proxy/Dispatcher.java | 19 +
.../cglib/proxy/DispatcherGenerator.java | 60 +
.../mockito/repackaged/cglib/proxy/Enhancer.java | 1059 +++++++
.../mockito/repackaged/cglib/proxy/Factory.java | 68 +
.../mockito/repackaged/cglib/proxy/FixedValue.java | 24 +
.../cglib/proxy/FixedValueGenerator.java | 37 +
.../repackaged/cglib/proxy/InterfaceMaker.java | 114 +
.../repackaged/cglib/proxy/InvocationHandler.java | 24 +
.../cglib/proxy/InvocationHandlerGenerator.java | 62 +
.../mockito/repackaged/cglib/proxy/LazyLoader.java | 19 +
.../cglib/proxy/LazyLoaderGenerator.java | 86 +
.../repackaged/cglib/proxy/MethodInterceptor.java | 31 +
.../cglib/proxy/MethodInterceptorGenerator.java | 243 ++
.../repackaged/cglib/proxy/MethodProxy.java | 209 ++
.../api/mockito/repackaged/cglib/proxy/Mixin.java | 230 ++
.../repackaged/cglib/proxy/MixinBeanEmitter.java | 28 +
.../repackaged/cglib/proxy/MixinEmitter.java | 88 +
.../cglib/proxy/MixinEverythingEmitter.java | 41 +
.../api/mockito/repackaged/cglib/proxy/NoOp.java | 17 +
.../repackaged/cglib/proxy/NoOpGenerator.java | 37 +
.../api/mockito/repackaged/cglib/proxy/Proxy.java | 91 +
.../repackaged/cglib/proxy/ProxyRefDispatcher.java | 20 +
.../cglib/proxy/UndeclaredThrowableException.java | 25 +
.../cglib/reflect/ConstructorDelegate.java | 116 +
.../repackaged/cglib/reflect/FastClass.java | 195 ++
.../repackaged/cglib/reflect/FastClassEmitter.java | 236 ++
.../repackaged/cglib/reflect/FastConstructor.java | 35 +
.../repackaged/cglib/reflect/FastMember.java | 54 +
.../repackaged/cglib/reflect/FastMethod.java | 48 +
.../repackaged/cglib/reflect/MethodDelegate.java | 257 ++
.../cglib/reflect/MulticastDelegate.java | 170 ++
.../transform/AbstractClassFilterTransformer.java | 78 +
.../cglib/transform/AbstractClassLoader.java | 107 +
.../cglib/transform/AbstractClassTransformer.java | 18 +
.../cglib/transform/AnnotationVisitorTee.java | 48 +
.../cglib/transform/ClassEmitterTransformer.java | 11 +
.../repackaged/cglib/transform/ClassFilter.java | 16 +
.../cglib/transform/ClassFilterTransformer.java | 18 +
.../cglib/transform/ClassReaderGenerator.java | 30 +
.../cglib/transform/ClassTransformer.java | 11 +
.../cglib/transform/ClassTransformerChain.java | 46 +
.../cglib/transform/ClassTransformerFactory.java | 9 +
.../cglib/transform/ClassTransformerTee.java | 21 +
.../cglib/transform/ClassVisitorTee.java | 90 +
.../cglib/transform/FieldVisitorTee.java | 34 +
.../repackaged/cglib/transform/MethodFilter.java | 10 +
.../cglib/transform/MethodFilterTransformer.java | 33 +
.../cglib/transform/MethodVisitorTee.java | 143 +
.../transform/TransformingClassGenerator.java | 23 +
.../cglib/transform/TransformingClassLoader.java | 22 +
.../impl/AbstractInterceptFieldCallback.java | 31 +
.../transform/impl/AccessFieldTransformer.java | 53 +
.../transform/impl/AddDelegateTransformer.java | 113 +
.../cglib/transform/impl/AddInitTransformer.java | 50 +
.../transform/impl/AddPropertyTransformer.java | 38 +
.../transform/impl/AddStaticInitTransformer.java | 44 +
.../cglib/transform/impl/FieldProvider.java | 23 +
.../transform/impl/FieldProviderTransformer.java | 205 ++
.../transform/impl/InterceptFieldCallback.java | 31 +
.../transform/impl/InterceptFieldEnabled.java | 11 +
.../cglib/transform/impl/InterceptFieldFilter.java | 12 +
.../transform/impl/InterceptFieldTransformer.java | 203 ++
.../impl/UndeclaredThrowableStrategy.java | 45 +
.../impl/UndeclaredThrowableTransformer.java | 53 +
.../repackaged/cglib/util/ParallelSorter.java | 283 ++
.../cglib/util/ParallelSorterEmitter.java | 93 +
.../repackaged/cglib/util/SorterTemplate.java | 160 ++
.../repackaged/cglib/util/StringSwitcher.java | 154 ++
.../api/mockito/repackaged/package-info.java | 9 +
.../powermock/api/mockito/repackaged/package.html | 6 +
.../ConstructorArgumentsVerification.java | 24 +
.../verification/PrivateMethodVerification.java | 47 +
.../WithOrWithoutVerifiedArguments.java | 20 +
.../verification/WithVerifiedArguments.java | 24 +
.../verification/WithoutVerifiedArguments.java | 23 +
.../org.mockito.plugins.MockMaker | 1 +
.../org.mockito.plugins.StackTraceCleanerProvider | 1 +
.../DefaultMethodExpectationSetupTest.java | 66 +
.../internal/mockcreation/MockCreatorTest.java | 43 +
.../stubbing/answers/ChainReturnsTest.java | 54 +
api/pom.xml | 25 +
api/support/pom.xml | 33 +
.../AbstractMockingFrameworkReporterFactory.java | 56 +
.../org/powermock/api/support/ClassLoaderUtil.java | 71 +
.../org/powermock/api/support/MethodProxy.java | 65 +
.../api/support/SafeExceptionRethrower.java | 29 +
.../java/org/powermock/api/support/Stubber.java | 57 +
.../org/powermock/api/support/SuppressCode.java | 245 ++
.../support/membermodification/MemberMatcher.java | 361 +++
.../support/membermodification/MemberModifier.java | 114 +
.../strategy/ClassReplaceStrategy.java | 32 +
.../strategy/MethodReplaceStrategy.java | 44 +
.../strategy/MethodStubStrategy.java | 47 +
.../strategy/impl/MethodReplaceStrategyImpl.java | 75 +
.../strategy/impl/MethodStubStrategyImpl.java | 58 +
changelog.txt | 605 ++++
classloading/classloading-base/pom.xml | 40 +
.../classloading/AbstractClassloaderExecutor.java | 94 +
.../classloading/ClassloaderExecutor.java | 30 +
.../classloading/SingleClassloaderExecutor.java | 70 +
.../powermock/classloading/spi/DeepClonerSPI.java | 8 +
.../org/powermock/classloading/spi/DoNotClone.java | 27 +
classloading/classloading-objenesis/pom.xml | 28 +
.../org/powermock/classloading/DeepCloner.java | 382 +++
.../ObjenesisClassloaderExecutorTest.java | 303 ++
.../classloading/ObjenesisDeepClonerTest.java | 123 +
.../powermock/classloading/classes/MyArgument.java | 59 +
.../powermock/classloading/classes/MyClass.java | 32 +
.../classloading/classes/MyCollectionHolder.java | 32 +
.../powermock/classloading/classes/MyEnum.java | 23 +
.../classloading/classes/MyEnumHolder.java | 30 +
.../classes/MyHierarchicalFieldHolder.java | 24 +
.../MyHierarchicalOverloadedFieldHolder.java | 25 +
.../classloading/classes/MyIntegerHolder.java | 30 +
.../classes/MyPrimitiveArrayHolder.java | 30 +
.../classes/MyReferenceFieldHolder.java | 31 +
.../classloading/classes/MyReturnValue.java | 33 +
.../classes/MyStaticFinalArgumentHolder.java | 25 +
.../classes/MyStaticFinalNumberHolder.java | 25 +
.../classes/MyStaticFinalPrimitiveHolder.java | 25 +
.../classes/ReflectionMethodInvoker.java | 37 +
classloading/classloading-xstream/pom.xml | 32 +
.../org/powermock/classloading/DeepCloner.java | 57 +
.../XStreamClassloaderExecutorTest.java | 300 ++
.../classloading/XStreamDeepClonerTest.java | 113 +
.../powermock/classloading/classes/MyArgument.java | 59 +
.../powermock/classloading/classes/MyClass.java | 32 +
.../classloading/classes/MyCollectionHolder.java | 32 +
.../powermock/classloading/classes/MyEnum.java | 23 +
.../classloading/classes/MyEnumHolder.java | 30 +
.../classes/MyHierarchicalFieldHolder.java | 24 +
.../MyHierarchicalOverloadedFieldHolder.java | 25 +
.../classloading/classes/MyIntegerHolder.java | 30 +
.../classes/MyPrimitiveArrayHolder.java | 30 +
.../classes/MyReferenceFieldHolder.java | 31 +
.../classloading/classes/MyReturnValue.java | 33 +
.../classes/MyStaticFinalArgumentHolder.java | 25 +
.../classes/MyStaticFinalNumberHolder.java | 25 +
.../classes/MyStaticFinalPrimitiveHolder.java | 25 +
.../classes/ReflectionMethodInvoker.java | 37 +
classloading/pom.xml | 23 +
core/pom.xml | 59 +
.../main/java/org/powermock/core/ClassLocator.java | 22 +
.../org/powermock/core/ClassReplicaCreator.java | 199 ++
.../org/powermock/core/ConcreteClassGenerator.java | 92 +
.../powermock/core/DefaultFieldValueGenerator.java | 111 +
.../java/org/powermock/core/IdentityHashSet.java | 59 +
.../org/powermock/core/IndicateReloadClass.java | 20 +
core/src/main/java/org/powermock/core/ListMap.java | 151 +
.../main/java/org/powermock/core/MockGateway.java | 274 ++
.../java/org/powermock/core/MockRepository.java | 390 +++
.../java/org/powermock/core/PowerMockUtils.java | 64 +
.../java/org/powermock/core/WildcardMatcher.java | 102 +
.../core/agent/JavaAgentClassRegister.java | 44 +
.../core/agent/JavaAgentFrameworkRegister.java | 38 +
.../agent/JavaAgentFrameworkRegisterFactory.java | 56 +
.../core/classloader/ClassPathAdjuster.java | 29 +
.../classloader/DeferSupportingClassLoader.java | 175 ++
.../core/classloader/JavaAssistClassMarker.java | 31 +
.../classloader/JavaAssistClassMarkerFactory.java | 54 +
.../core/classloader/MockClassLoader.java | 320 +++
.../core/classloader/MockClassLoaderBuilder.java | 63 +
.../core/classloader/MockClassLoaderBuilders.java | 29 +
.../core/classloader/PowerMockModified.java | 25 +
.../core/classloader/annotations/Mock.java | 82 +
.../core/classloader/annotations/MockPolicy.java | 45 +
.../classloader/annotations/PowerMockIgnore.java | 52 +
.../classloader/annotations/PowerMockListener.java | 35 +
.../annotations/PrepareEverythingForTest.java | 41 +
.../classloader/annotations/PrepareForTest.java | 79 +
.../annotations/PrepareOnlyThisForTest.java | 69 +
.../SuppressStaticInitializationFor.java | 38 +
.../annotations/UseClassPathAdjuster.java | 33 +
.../core/reporter/MockingFrameworkReporter.java | 36 +
.../reporter/MockingFrameworkReporterFactory.java | 24 +
.../powermock/core/reporter/PowerMockReporter.java | 26 +
.../core/reporter/PowerMockReporterFactory.java | 28 +
.../org/powermock/core/spi/DefaultBehavior.java | 58 +
.../core/spi/MethodInvocationControl.java | 41 +
.../powermock/core/spi/NewInvocationControl.java | 38 +
.../org/powermock/core/spi/PowerMockPolicy.java | 65 +
.../powermock/core/spi/PowerMockTestListener.java | 87 +
.../spi/listener/AnnotationEnablerListener.java | 28 +
.../support/AbstractPowerMockTestListenerBase.java | 58 +
.../core/spi/support/InvocationSubstitute.java | 31 +
.../org/powermock/core/spi/testresult/Result.java | 20 +
.../core/spi/testresult/TestMethodResult.java | 21 +
.../core/spi/testresult/TestSuiteResult.java | 29 +
.../spi/testresult/impl/TestMethodResultImpl.java | 39 +
.../spi/testresult/impl/TestSuiteResultImpl.java | 76 +
.../core/testlisteners/FieldDefaulter.java | 41 +
.../GlobalNotificationBuildSupport.java | 110 +
.../core/transformers/MockTransformer.java | 39 +
.../core/transformers/TransformStrategy.java | 21 +
.../impl/AbstractMainMockTransformer.java | 439 +++
.../transformers/impl/ClassMockTransformer.java | 73 +
.../impl/InterfaceMockTransformer.java | 67 +
.../core/transformers/impl/Primitives.java | 55 +
.../transformers/impl/TestClassTransformer.java | 342 +++
.../MockPolicyClassLoadingSettings.java | 75 +
.../MockPolicyInterceptionSettings.java | 170 ++
.../impl/MockPolicyClassLoadingSettingsImpl.java | 90 +
.../impl/MockPolicyInterceptionSettingsImpl.java | 156 ++
.../mockpolicies/support/LogPolicySupport.java | 73 +
.../org/powermock/tests/utils/ArrayMerger.java | 27 +
.../tests/utils/IgnorePackagesExtractor.java | 26 +
.../main/java/org/powermock/tests/utils/Keys.java | 41 +
.../tests/utils/MockPolicyInitializer.java | 59 +
.../tests/utils/PowerMockTestNotifier.java | 64 +
.../tests/utils/RunnerTestSuiteChunker.java | 43 +
.../java/org/powermock/tests/utils/TestChunk.java | 32 +
.../tests/utils/TestClassesExtractor.java | 29 +
.../powermock/tests/utils/TestSuiteChunker.java | 72 +
.../impl/AbstractCommonTestSuiteChunkerImpl.java | 268 ++
.../utils/impl/AbstractTestClassExtractor.java | 106 +
.../utils/impl/AbstractTestSuiteChunkerImpl.java | 197 ++
.../tests/utils/impl/ArrayMergerImpl.java | 56 +
.../tests/utils/impl/MockClassLoaderFactory.java | 127 +
.../utils/impl/MockPolicyInitializerImpl.java | 229 ++
.../impl/PowerMockIgnorePackagesExtractorImpl.java | 51 +
.../utils/impl/PowerMockTestNotifierImpl.java | 125 +
.../utils/impl/PrepareForTestExtractorImpl.java | 129 +
.../StaticConstructorSuppressExtractorImpl.java | 56 +
.../powermock/tests/utils/impl/TestCaseEntry.java | 43 +
.../powermock/tests/utils/impl/TestChunkImpl.java | 68 +
.../main/java/org/powermock/utils/ArrayUtil.java | 55 +
.../java/org/powermock/utils/StringJoiner.java | 42 +
.../java/org/powermock/WildcardMatcherTest.java | 54 +
.../powermock/core/classloader/Collaborator.java | 25 +
.../core/classloader/HardToTransform.java | 53 +
.../core/classloader/MockClassLoaderTest.java | 268 ++
.../classloader/ResourcePrefixClassLoader.java | 26 +
.../GlobalNotificationBuildSupportTest.java | 131 +
.../impl/ClassMockTransformerTest.java | 114 +
.../impl/TestClassTransformerTest.java | 130 +
.../core/transformers/impl/TestPrimitives.java | 55 +
.../PowerMockIgnorePackagesExtractorImplTest.java | 55 +
.../impl/PrepareForTestExtractorImplTest.java | 88 +
.../test/support/ClassWithLargeMethods.java | 64 +
.../support/MainMockTransformerTestSupport.java | 60 +
.../core/classloader/foo/bar/baz/test.txt | 1 +
examples/AbstractFactory/pom.xml | 41 +
.../java/powermock/examples/MyServiceUser.java | 47 +
.../dependencymanagement/DependencyManager.java | 45 +
.../java/powermock/examples/domain/Person.java | 95 +
.../java/powermock/examples/service/MyService.java | 26 +
.../examples/service/impl/MyServiceImpl.java | 33 +
.../java/powermock/examples/MyServiceUserTest.java | 108 +
examples/ApacheCLIExample/pom.xml | 40 +
.../powermock/examples/apachecli/OptionUser.java | 36 +
.../examples/apachecli/OptionUserTest.java | 59 +
examples/ApacheMina/pom.xml | 52 +
.../socket/nio/PrepareForTestAnnotationTest.java | 40 +
.../nio/PrepareOnlyThisForTestAnnotationTest.java | 49 +
examples/DocumentationExamples/pom.xml | 56 +
.../examples/annotationbased/SomeService.java | 38 +
.../examples/annotationbased/dao/SomeDao.java | 28 +
.../examples/bypassencapsulation/ReportDao.java | 41 +
.../bypassencapsulation/ReportGenerator.java | 36 +
.../bypassencapsulation/ServiceHolder.java | 36 +
.../bypassencapsulation/nontest/Cache.java | 26 +
.../bypassencapsulation/nontest/Injectable.java | 30 +
.../bypassencapsulation/nontest/Report.java | 57 +
.../nontest/ReportTemplateService.java | 34 +
.../examples/finalmocking/StateFormatter.java | 40 +
.../examples/finalmocking/StateHolder.java | 42 +
.../examples/mockpolicy/DependencyUser.java | 29 +
.../examples/mockpolicy/nontest/Dependency.java | 34 +
.../mockpolicy/nontest/domain/DataObject.java | 62 +
.../mockpolicy/policy/MyCustomMockPolicy.java | 52 +
.../examples/newmocking/PersistenceManager.java | 34 +
.../examples/partialmocking/EntityManager.java | 10 +
.../powermock/examples/partialmocking/Status.java | 7 +
.../examples/partialmocking/StatusSender.java | 24 +
.../examples/privatemocking/DataService.java | 52 +
.../examples/staticmocking/IdGenerator.java | 29 +
.../examples/staticmocking/ServiceRegistrator.java | 34 +
.../examples/suppress/constructor/EvilParent.java | 26 +
.../constructor/ExampleWithEvilConstructor.java | 34 +
.../constructor/ExampleWithEvilParent.java | 32 +
.../constructorhierarchy/EvilGrandParent.java | 27 +
.../suppress/constructorhierarchy/EvilParent.java | 27 +
.../ExampleWithEvilParentAndEvilGrandParent.java | 32 +
.../suppress/method/ExampleWithEvilMethod.java | 37 +
.../ExampleWithEvilStaticInitializer.java | 37 +
.../annotationbased/UsingMockAnnotationTest.java | 58 +
.../UsingMockNiceAnnotationTest.java | 55 +
...MockNiceAnnotationToCreateAPartialMockTest.java | 57 +
.../UsingMockStrictAnnotationTest.java | 74 +
.../bypassencapsulation/ReportDaoTest.java | 106 +
.../bypassencapsulation/ReportGeneratorTest.java | 69 +
.../bypassencapsulation/ServiceHolderTest.java | 71 +
.../examples/finalmocking/StateFormatterTest.java | 69 +
.../examples/mockpolicy/DependencyUserTest.java | 39 +
.../mockpolicy/SeveralMockPolicyMethodsTest.java | 56 +
.../newmocking/PersistenceManagerTest.java | 90 +
...stenceManagerWithReplayAllAndVerifyAllTest.java | 111 +
.../examples/partialmocking/StatusSenderTest.java | 51 +
.../examples/privatemocking/DataServiceTest.java | 86 +
.../staticmocking/ServiceRegistratorTest.java | 63 +
.../ExampleWithEvilConstructorTest.java | 40 +
.../constructor/ExampleWithEvilParentTest.java | 48 +
...xampleWithEvilParentAndEvilGrandParentTest.java | 55 +
.../suppress/method/ExampleWithEvilMethodTest.java | 42 +
.../ExampleWithEvilStaticInitializerTest.java | 39 +
examples/HamcrestExample/pom.xml | 46 +
.../org/powermock/hamcrest/HamcrestExample.java | 12 +
.../powermock/hamcrest/HamcrestExampleTest.java | 21 +
examples/SignedMocking/pom.xml | 108 +
.../org/powermock/examples/AcegiSecurityUser.java | 22 +
.../powermock/examples/AcegiSecurityUserTest.java | 36 +
examples/byte-buddy-easymock/pom.xml | 40 +
.../examples/bytebuddy/easymock/SampleClass.java | 20 +
.../easymock/ByteBuddyWithPowerMockTest.java | 69 +
examples/byte-buddy-mockito/pom.xml | 42 +
.../examples/bytebuddy/mockito/SampleClass.java | 20 +
.../mockito/ByteBuddyWithPowerMockitoTest.java | 76 +
examples/dom4j/pom.xml | 45 +
.../dom4j/AbstractXMLRequestCreatorBase.java | 103 +
.../org/powermock/examples/dom4j/XMLProtocol.java | 31 +
.../dom4j/AbstractXMLRequestCreatorBaseTest.java | 148 +
examples/easymock31/pom.xml | 48 +
.../org/powermock/examples/easymock31/Greeter.java | 38 +
.../org/powermock/examples/easymock31/Logger.java | 36 +
.../examples/easymock31/SimpleConfig.java | 39 +
.../powermock/examples/easymock31/GreeterTest.java | 68 +
examples/java8/pom.xml | 88 +
.../demo/org/powermock/examples/SimpleOps.java | 25 +
.../demo/org/powermock/examples/SimpleOpsTest.java | 38 +
examples/jcl/pom.xml | 69 +
.../main/java/org/powermock/examples/JclUser.java | 13 +
.../java/org/powermock/examples/JclUserTest.java | 36 +
examples/jdom/pom.xml | 40 +
.../src/main/java/examples/jdom/StaticClass.java | 23 +
.../java/examples/jdom/StaticWithJdomTest.java | 54 +
examples/jmock/pom.xml | 67 +
.../examples/jmock/ClassWithStaticMethod.java | 27 +
.../java/powermock/examples/jmock/FinalClass.java | 27 +
.../powermock/examples/jmock/JMockExample.java | 32 +
.../examples/jmock/JMockFinalClassTest.java | 64 +
.../examples/jmock/JMockStaticMethodTest.java | 70 +
examples/log4j/pom.xml | 64 +
.../demo/org/powermock/examples/Log4jUser.java | 15 +
.../org/powermock/examples/Log4jUserParent.java | 7 +
.../demo/org/powermock/examples/Log4jUserTest.java | 40 +
examples/pom.xml | 63 +
examples/simple/pom.xml | 45 +
.../org/powermock/examples/simple/Greeter.java | 38 +
.../demo/org/powermock/examples/simple/Logger.java | 36 +
.../powermock/examples/simple/SimpleConfig.java | 39 +
.../simple/src/main/java/simpleConfig.properties | 2 +
.../org/powermock/examples/simple/GreeterTest.java | 80 +
.../org/powermock/examples/simple/LoggerTest.java | 68 +
examples/slf4j-mockito/pom.xml | 59 +
.../demo/org/powermock/examples/Slf4jUser.java | 13 +
.../src/main/resources/log4j.properties | 8 +
.../demo/org/powermock/examples/Slf4jUserTest.java | 29 +
examples/slf4j-noimpl/pom.xml | 49 +
.../java/demo/org/powermock/examples/SL4JUser.java | 14 +
.../java/demo/org/powermock/examples/SPITest.java | 23 +
examples/slf4j/pom.xml | 50 +
.../demo/org/powermock/examples/Slf4jUser.java | 13 +
examples/slf4j/src/main/resources/log4j.properties | 8 +
.../demo/org/powermock/examples/Slf4jUserTest.java | 35 +
examples/spring-easymock/pom.xml | 86 +
.../java/powermock/examples/spring/FinalClass.java | 14 +
.../powermock/examples/spring/IdGenerator.java | 29 +
.../java/powermock/examples/spring/Message.java | 35 +
.../java/powermock/examples/spring/MyBean.java | 36 +
.../src/main/resources/example-context.xml | 28 +
.../examples/spring/mockito/SpringExampleTest.java | 84 +
.../mockito/SpringInjectFinalClassExampleTest.java | 39 +
.../SpringWithDelegateRunnerExampleTest.java | 31 +
.../spring/mockito/SpringWithRuleExampleTest.java | 35 +
examples/spring-mockito-delegate/pom.xml | 72 +
.../powermock/examples/spring/IdGenerator.java | 29 +
.../java/powermock/examples/spring/Message.java | 35 +
.../java/powermock/examples/spring/MyBean.java | 28 +
.../src/main/resources/example-context.xml | 28 +
.../examples/spring/mockito/SpringExampleTest.java | 107 +
examples/spring-mockito-xml-agent/pom.xml | 83 +
.../examples/spring/CompanyRepository.java | 45 +
.../powermock/examples/spring/IdGenerator.java | 29 +
.../java/powermock/examples/spring/Message.java | 35 +
.../java/powermock/examples/spring/MyBean.java | 37 +
.../src/main/resources/employees.xml | 15 +
.../src/main/resources/example-context.xml | 28 +
.../examples/spring/mockito/SpringExampleTest.java | 106 +
.../agent/AbstractClassTransformerTest.java | 21 +
examples/spring-mockito-xml/pom.xml | 89 +
.../examples/spring/CompanyRepository.java | 45 +
.../powermock/examples/spring/IdGenerator.java | 29 +
.../java/powermock/examples/spring/Message.java | 35 +
.../java/powermock/examples/spring/MyBean.java | 37 +
.../src/main/resources/employees.xml | 15 +
.../src/main/resources/example-context.xml | 28 +
.../examples/spring/mockito/SpringExampleTest.java | 108 +
examples/spring-mockito/pom.xml | 89 +
.../java/powermock/examples/spring/FinalClass.java | 14 +
.../powermock/examples/spring/IdGenerator.java | 29 +
.../java/powermock/examples/spring/Message.java | 35 +
.../java/powermock/examples/spring/MyBean.java | 36 +
.../src/main/resources/example-context.xml | 28 +
.../examples/spring/mockito/SpringExampleTest.java | 106 +
.../mockito/SpringInjectFinalClassExampleTest.java | 37 +
examples/tutorial/pom.xml | 103 +
examples/tutorial/readme.txt | 34 +
.../tutorial/common/annotation/Inject.java | 30 +
.../tutorial/domainmocking/EventService.java | 37 +
.../tutorial/domainmocking/PersonService.java | 37 +
.../tutorial/domainmocking/SampleService.java | 37 +
.../domainmocking/domain/BusinessMessages.java | 36 +
.../tutorial/domainmocking/domain/Person.java | 73 +
.../domain/SampleServiceException.java | 33 +
.../domainmocking/impl/SampleServiceImpl.java | 72 +
.../SampleServiceWithoutPowerMockImpl.java | 84 +
.../examples/tutorial/hellopower/HelloWorld.java | 22 +
.../examples/tutorial/hellopower/SimpleConfig.java | 47 +
.../hellopower/withoutpowermock/ConfigWrapper.java | 31 +
.../hellopower/withoutpowermock/HelloWorld.java | 31 +
.../tutorial/partialmocking/dao/ProviderDao.java | 29 +
.../partialmocking/dao/domain/Connection.java | 24 +
.../dao/domain/impl/ConnectionImpl.java | 31 +
.../dao/domain/impl/ServiceArtifact.java | 79 +
.../partialmocking/domain/DataProducer.java | 24 +
.../partialmocking/domain/ProviderArtifact.java | 64 +
.../partialmocking/domain/ServiceProducer.java | 62 +
.../partialmocking/service/ProviderService.java | 45 +
.../service/impl/ProviderServiceImpl.java | 75 +
.../ProviderServiceWithoutPowerMockImpl.java | 89 +
.../staticmocking/IServiceRegistrator.java | 47 +
.../tutorial/staticmocking/impl/IdGenerator.java | 29 +
.../staticmocking/impl/ServiceRegistrator.java | 73 +
.../ServiceRegistratorWithoutPowerMock.java | 80 +
.../tutorial/staticmocking/osgi/BundleContext.java | 26 +
.../staticmocking/osgi/ServiceRegistration.java | 26 +
.../domainmocking/impl/SampleServiceImplTest.java | 118 +
.../SampleServiceWithoutPowerMockImplTest.java | 156 ++
.../tutorial/hellopower/HelloWorldTest.java | 43 +
.../withoutpowermock/HelloWorldTest.java | 38 +
.../service/impl/ProviderServiceImplTest.java | 169 ++
.../ProviderServiceWithoutPowerMockImplTest.java | 182 ++
.../staticmocking/impl/ServiceRegistratorTest.java | 159 ++
.../withoutpowermock/ServiceRegistratorTest.java | 188 ++
.../impl/SampleServiceImplTest_Tutorial.java | 82 +
.../hellopower/HelloWorldTest_Tutorial.java | 39 +
.../impl/ProviderServiceImplTest_Tutorial.java | 106 +
.../impl/ServiceRegistratorTest_Tutorial.java | 104 +
generate_javadoc.sh | 17 +
modules/module-impl/agent/META-INF/MANIFEST.MF | 5 +
modules/module-impl/agent/jmockit-license.txt | 21 +
modules/module-impl/agent/pom.xml | 55 +
.../tools/attach/AgentInitializationException.java | 90 +
.../com/sun/tools/attach/AgentLoadException.java | 55 +
.../tools/attach/AttachNotSupportedException.java | 56 +
.../java/com/sun/tools/attach/VirtualMachine.java | 530 ++++
.../sun/tools/attach/VirtualMachineDescriptor.java | 211 ++
.../com/sun/tools/attach/spi/AttachProvider.java | 240 ++
.../modules/agent/AbstractClassTransformer.java | 68 +
.../modules/agent/AgentInitialization.java | 101 +
.../org/powermock/modules/agent/AgentLoader.java | 152 +
.../agent/DefinalizingClassTransformer.java | 41 +
.../powermock/modules/agent/PowerMockAgent.java | 108 +
.../modules/agent/PowerMockClassRedefiner.java | 47 +
.../modules/agent/PowerMockClassTransformer.java | 94 +
.../modules/agent/PowerMockClassVisitor.java | 35 +
.../agent/support/JavaAgentClassRegisterImpl.java | 60 +
.../support/PowerMockAgentTestInitializer.java | 91 +
.../powermock/objectweb/asm/AnnotationVisitor.java | 169 ++
.../powermock/objectweb/asm/AnnotationWriter.java | 371 +++
.../org/powermock/objectweb/asm/Attribute.java | 255 ++
.../org/powermock/objectweb/asm/ByteVector.java | 339 +++
.../org/powermock/objectweb/asm/ClassReader.java | 2506 +++++++++++++++++
.../org/powermock/objectweb/asm/ClassVisitor.java | 320 +++
.../org/powermock/objectweb/asm/ClassWriter.java | 1776 ++++++++++++
.../java/org/powermock/objectweb/asm/Context.java | 145 +
.../java/org/powermock/objectweb/asm/Edge.java | 75 +
.../org/powermock/objectweb/asm/FieldVisitor.java | 150 +
.../org/powermock/objectweb/asm/FieldWriter.java | 329 +++
.../java/org/powermock/objectweb/asm/Frame.java | 1462 ++++++++++
.../java/org/powermock/objectweb/asm/Handle.java | 170 ++
.../java/org/powermock/objectweb/asm/Handler.java | 121 +
.../java/org/powermock/objectweb/asm/Item.java | 313 +++
.../java/org/powermock/objectweb/asm/LICENSE.txt | 28 +
.../java/org/powermock/objectweb/asm/Label.java | 565 ++++
.../org/powermock/objectweb/asm/MethodVisitor.java | 881 ++++++
.../org/powermock/objectweb/asm/MethodWriter.java | 2915 ++++++++++++++++++++
.../java/org/powermock/objectweb/asm/Opcodes.java | 361 +++
.../java/org/powermock/objectweb/asm/Type.java | 896 ++++++
.../java/org/powermock/objectweb/asm/TypePath.java | 196 ++
.../org/powermock/objectweb/asm/TypeReference.java | 452 +++
.../org/powermock/objectweb/asm/package-info.java | 34 +
.../java/sun/tools/attach/BsdVirtualMachine.java | 308 +++
.../sun/tools/attach/HotSpotVirtualMachine.java | 294 ++
.../java/sun/tools/attach/LinuxVirtualMachine.java | 344 +++
.../sun/tools/attach/SolarisVirtualMachine.java | 252 ++
.../sun/tools/attach/WindowsVirtualMachine.java | 194 ++
.../org,powermock/modules/agent/package.html | 33 +
modules/module-impl/junit3/pom.xml | 32 +
.../powermock/modules/junit3/PowerMockSuite.java | 123 +
.../junit3/internal/JUnit3TestSuiteChunker.java | 53 +
.../internal/PowerMockJUnit3RunnerDelegate.java | 41 +
.../internal/impl/JUnit3TestSuiteChunkerImpl.java | 241 ++
.../impl/PowerMockJUnit3RunnerDelegateImpl.java | 142 +
.../internal/impl/PowerMockJUnit3TestListener.java | 74 +
modules/module-impl/junit4-common/pom.xml | 35 +
.../common/internal/JUnit4TestSuiteChunker.java | 30 +
.../internal/PowerMockJUnitRunnerDelegate.java | 30 +
.../impl/AbstractCommonPowerMockRunner.java | 74 +
.../internal/impl/JUnit4TestMethodChecker.java | 50 +
.../internal/impl/JUnit4TestSuiteChunkerImpl.java | 238 ++
.../junit4/common/internal/impl/JUnitVersion.java | 30 +
.../internal/impl/PowerMockJUnit4RunListener.java | 91 +
.../common/internal/impl/VersionComparator.java | 98 +
.../common/internal/impl/VersionTokenizer.java | 74 +
.../common/internal/impl/JUnitVersionTest.java | 39 +
modules/module-impl/junit4-legacy/pom.xml | 43 +
.../modules/junit4/legacy/PowerMockRunner.java | 26 +
.../internal/impl/PowerMockJUnit4LegacyFilter.java | 74 +
.../PowerMockJUnit4LegacyRunnerDelegateImpl.java | 99 +
...owerMockJUnit4LegacyTestClassMethodsRunner.java | 100 +
.../PowerMockJUnit4LegacyTestIntrospector.java | 38 +
.../PowerMockJUnit4LegacyTestMethodRunner.java | 132 +
modules/module-impl/junit4-rule-agent/pom.xml | 36 +
.../modules/junit4/rule/PowerMockRule.java | 135 +
modules/module-impl/junit4-rule/pom.xml | 59 +
.../junit4/rule/PowerMockClassloaderExecutor.java | 55 +
.../modules/junit4/rule/PowerMockRule.java | 93 +
.../junit4/rule/PowerMockRuleTestSuiteChunker.java | 39 +
modules/module-impl/junit4/pom.xml | 41 +
.../powermock/modules/junit4/PowerMockRunner.java | 64 +
.../modules/junit4/PowerMockRunnerDelegate.java | 102 +
.../internal/impl/DelegatingPowerMockRunner.java | 182 ++
.../junit4/internal/impl/NotificationBuilder.java | 313 +++
.../impl/PowerMockJUnit44RunnerDelegateImpl.java | 383 +++
.../impl/PowerMockJUnit47RunnerDelegateImpl.java | 155 ++
.../impl/PowerMockJUnit49RunnerDelegateImpl.java | 75 +
.../junit4/internal/impl/PowerMockRunNotifier.java | 160 ++
.../PowerMockJUnit4MethodValidator.java | 133 +
.../internal/impl/PowerMockRunNotifierTest.java | 93 +
modules/module-impl/pom.xml | 31 +
modules/module-impl/testng-agent/pom.xml | 36 +
.../modules/testng/PowerMockObjectFactory.java | 52 +
modules/module-impl/testng-common/pom.xml | 35 +
.../modules/testng/PowerMockTestCase.java | 177 ++
modules/module-impl/testng/pom.xml | 31 +
.../modules/testng/PowerMockObjectFactory.java | 69 +
.../powermock/modules/testng/internal/Assumes.java | 34 +
.../testng/internal/ClassLoaderFactory.java | 75 +
.../internal/ExpectedExceptionsExtractor.java | 27 +
.../PowerMockClassloaderObjectFactory.java | 55 +
.../PowerMockExpectedExceptionsExtractorImpl.java | 52 +
.../internal/PowerMockTestNGMethodHandler.java | 80 +
.../testng/internal/TestClassInstanceFactory.java | 105 +
.../testng/internal/TestNGMethodFilter.java | 60 +
modules/module-test/easymock/junit3-test/pom.xml | 50 +
.../test/java/samples/junit3/AllJUnit3Tests.java | 33 +
.../AnnotationDemoWithSetupMethodTest.java | 40 +
.../PrivateFinalWithAnnotationTest.java | 55 +
.../junit3/privateandfinal/PrivateFinalTest.java | 69 +
.../privateandfinal/StupidPrivateFinalTest.java | 70 +
.../samples/junit3/singleton/MockStaticTest.java | 177 ++
.../SuppressConstructorHierarchyDemoTest.java | 68 +
modules/module-test/easymock/junit4-agent/pom.xml | 46 +
.../junit4/agent/AnnotationUsageTest.java | 80 +
.../powermockito/junit4/agent/LargeMethodTest.java | 58 +
.../easymock/junit4-legacy-test/pom.xml | 31 +
.../junit4/legacy/AllJUnit4LegacyTests.java | 28 +
.../AnnotationDemoWithSetupMethodTest.java | 43 +
.../FinalDemoWithAnnotationInjectionTest.java | 81 +
.../legacy/noannotation/NoAnnotationUsageTest.java | 78 +
.../SetUpAndTearDownWhenExtendingTestCaseTest.java | 30 +
...tUpAndTearDownWhenNotExtendingTestCaseTest.java | 27 +
.../junit4/legacy/singleton/MockStaticTest.java | 187 ++
.../SuppressConstructorHierarchyDemoTest.java | 69 +
modules/module-test/easymock/junit4-test/pom.xml | 36 +
.../InterfaceMethodHierarchyUsageTest.java | 64 +
.../test/java/samples/junit4/AllJUnit4Tests.java | 51 +
.../test/java/samples/junit4/SomeJUnit4Tests.java | 52 +
.../abstractmocking/AbstractMethodMockingTest.java | 30 +
.../AnnotationDemoWithSetupMethodTest.java | 42 +
...thAnnotationInjectionAndFieldDefaulterTest.java | 90 +
.../FinalDemoWithAnnotationInjectionTest.java | 81 +
.../FinalDemoWithNiceAnnotationInjectionTest.java | 54 +
...FinalDemoWithStrictAnnotationInjectionTest.java | 69 +
.../TestSubjectEasymockAnnotationTest.java | 44 +
.../TestSubjectPowermockAnnotationTest.java | 80 +
.../java/samples/junit4/assume/AssumeTest.java | 18 +
.../junit4/classhierarchy/CommonParentTest.java | 46 +
.../ClassWithInnerMembersTest.java | 119 +
.../java/samples/junit4/console/ConsoleTest.java | 39 +
.../PrivateConstructorInstantiationDemoTest.java | 46 +
.../PublicConstructorWithDependencyDemoTest.java | 76 +
.../constructorargs/ConstructorArgsDemoTest.java | 78 +
.../easymock/EasyMockAndPowerMockMixTest.java | 38 +
.../junit4/enummocking/EnumMockingTest.java | 32 +
.../equalswithgetclass/EqualsWithGetClassTest.java | 57 +
.../junit4/expectnew/ExpectNewDemoTest.java | 657 +++++
.../expectnew/ExpectNewOfFinalSystemClassTest.java | 28 +
.../samples/junit4/expectnew/MockDateTest.java | 83 +
.../expectnew/PrimitiveAndWrapperDemoTest.java | 42 +
.../expectnew/PrimitiveAndWrapperUserTest.java | 62 +
.../junit4/expectvoid/ExpectVoidDemoTest.java | 84 +
.../samples/junit4/finalmocking/FinalDemoTest.java | 79 +
...ingOfInstanceMethodsInFinalSystemClassTest.java | 83 +
.../junit4/finalmocking/NoDuplicateTest.java | 63 +
.../PowerMockUsesIdentityHashMapToStoreMocks.java | 32 +
...eValueOfStaticFinalFieldInInterfacesDefect.java | 42 +
.../junit4/java/MockClassesInsideJavaPackage.java | 43 +
.../junit4/largemethod/LargeMethodTest.java | 73 +
.../PrivateInnerInterfacesInTestClassTest.java | 27 +
.../mockpolicy/MockPolicyUsageExampleTest.java | 58 +
.../mockpolicy/MockPolicyWithExpectationsTest.java | 67 +
.../MockPolicyWithInvocationHandlerTest.java | 69 +
.../SimpleFrameworkMockPolicy.java | 42 +
.../frameworkexample/SimpleFrameworkUserTest.java | 36 +
.../multireplayverify/MultiReplayVerifyTest.java | 60 +
.../nativemocking/NativeMockingSampleTest.java | 47 +
.../samples/junit4/newmocking/StupidNewTest.java | 85 +
.../java/samples/junit4/nice/NiceDemoTest.java | 29 +
.../junit4/noannotation/NoAnnotationUsageTest.java | 77 +
.../SetUpAndTearDownWhenExtendingTestCaseTest.java | 30 +
...tUpAndTearDownWhenNotExtendingTestCaseTest.java | 27 +
...pIsOnlyCalledOnceWhenExtendingTestCaseTest.java | 19 +
...tringConstructorWorksWhenExtendingTestCase.java | 62 +
...WithSameNameButDifferentDefinitionTypeTest.java | 68 +
.../junit4/overloading/OverloadingDemoTest.java | 97 +
.../junit4/partialmocking/MockSelfDemoTest.java | 202 ++
.../MockSelfDemoWithSubClassTest.java | 54 +
.../PartialMockingWithConstructorTest.java | 51 +
...ialMockingWithConstructorUsingEasyMockTest.java | 60 +
.../PowerMockIgnoreAndPrepareForTest.java | 30 +
.../junit4/powermockignore/SomeJUnit4Tests.java | 52 +
...emoUsingThePrepareEverythingAnnotationTest.java | 657 +++++
.../junit4/privateandfinal/PrivateFinalTest.java | 73 +
.../MockSelfPrivateFieldServiceClassTest.java | 64 +
.../SimplePrivateFieldServiceClassTest.java | 71 +
.../privatemocking/PrivateMethodDemoTest.java | 214 ++
.../reflection/ReflectionInstantiatorTest.java | 49 +
.../replayall/ReplayAllForExpectNewTest.java | 118 +
.../replayall/ReplayAllForStaticMethodsTest.java | 55 +
.../resetmock/ResetForStaticMethodsTest.java | 52 +
.../samples/junit4/resetmock/ResetMockTest.java | 122 +
.../junit4/servletmocking/SampleServletTest.java | 51 +
.../simplereturn/SimpleReturnExampleUserTest.java | 30 +
.../singleton/LogicAndTestInSameClassTest.java | 50 +
.../singleton/MockStaticNotPreparedTest.java | 31 +
.../samples/junit4/singleton/MockStaticTest.java | 201 ++
.../junit4/singleton/SimpleStaticServiceTest.java | 41 +
.../samples/junit4/stackoverflow/EvilHashCode.java | 35 +
.../junit4/stackoverflow/StackOverFlowTest.java | 35 +
.../StaticAndInstanceDemoTest.java | 92 +
...aticAndInstanceWithConstructorCodeDemoTest.java | 65 +
.../AbstractStaticInitializerTest.java | 40 +
.../EvilStaticInitializerExampleTest.java | 49 +
.../InterfaceStaticInitializerExampleTest.java | 40 +
.../StaticInitializerExampleTest.java | 41 +
.../java/samples/junit4/strict/StrictDemoTest.java | 58 +
.../samples/junit4/stubmethod/StubMethodTest.java | 131 +
.../suppressconstructor/CreateUnmockedTest.java | 64 +
.../SuppressConstructorDemoTest.java | 89 +
.../SuppressConstructorHierarchyDemoTest.java | 74 +
.../SuppressNonParentConstructorDemoTest.java | 38 +
.../junit4/suppressfield/ItemRepositoryTest.java | 26 +
.../junit4/suppressfield/SuppressFieldTest.java | 98 +
.../junit4/suppressmethod/SuppressMethodTest.java | 186 ++
.../junit4/swing/ReallySimpleSwingDemoTest.java | 39 +
.../samples/junit4/system/FieldMockDefect.java | 44 +
.../samples/junit4/system/SystemClassUserTest.java | 229 ++
.../junit4/testhierarchy/RunWithHierarchyTest.java | 30 +
.../samples/junit4/testhierarchy/TestParent.java | 24 +
.../junit4/verify/AssertVerifyWorksTest.java | 40 +
.../PowerMockConstructorFiltrationTest.java | 33 +
.../methodhierarchy/MethodInvocationDemoTest.java | 119 +
.../packageprivate/PackagePrivateClassTest.java | 49 +
.../SuppressDefaultConstructorTest.java | 61 +
.../SuppressSpecificConstructorDemoTest.java | 45 +
modules/module-test/easymock/junit410-test/pom.xml | 31 +
.../junit410/assume/AssumeForJUnit410Test.java | 17 +
.../junit410/expectnew/ExpectNewDemoTest.java | 658 +++++
.../expectnew/ExpectNewOfFinalSystemClassTest.java | 43 +
.../rules/AssertThatJUnit410RulesWorks.java | 67 +
.../junit410/rules/ExceptionHandlingRuleTest.java | 66 +
.../junit410/rules/NoRuleAssertionErrorTest.java | 31 +
.../rules/impl/SimpleEasyMockJUnitRule.java | 69 +
modules/module-test/easymock/junit45-test/pom.xml | 31 +
.../modules/test/junit45/failure/MyClass.java | 27 +
.../modules/test/junit45/failure/MyException.java | 21 +
.../modules/test/junit45/failure/MyUtils.java | 24 +
.../failure/AssertThatJUnit45FailuresWorkTest.java | 64 +
modules/module-test/easymock/junit47-test/pom.xml | 31 +
...thAnnotationInjectionAndFieldDefaulterTest.java | 89 +
.../junit4/expectnew/ExpectNewDemoTest.java | 657 +++++
.../expectnew/ExpectNewOfFinalSystemClassTest.java | 43 +
.../junit4/rules/AssertThatJUnit47RulesWorks.java | 68 +
.../junit4/rules/NoRuleAssertionErrorTest.java | 31 +
.../java/samples/junit4/rules/RuleOrderTest.java | 48 +
.../samples/junit4/rules/ThrowingRuleTest.java | 52 +
modules/module-test/easymock/junit48-test/pom.xml | 31 +
.../junit48/expectnew/ExpectNewDemoTest.java | 657 +++++
.../expectnew/ExpectNewOfFinalSystemClassTest.java | 43 +
.../junit48/rules/AssertThatJUnit48RulesWorks.java | 68 +
.../junit48/rules/ExceptionHandlingRuleTest.java | 66 +
.../junit48/rules/NoRuleAssertionErrorTest.java | 31 +
.../java/samples/junit48/rules/RuleOrderTest.java | 48 +
.../samples/junit48/rules/ThrowingRuleTest.java | 52 +
.../rules/impl/SimpleEasyMockJUnitRule.java | 69 +
modules/module-test/easymock/pom.xml | 48 +
.../module-test/easymock/testng-agent-test/pom.xml | 45 +
.../samples/testng/agent/AnnotationDemoTest.java | 36 +
.../agent/AnnotationDemoWithBeforeMethodTest.java | 44 +
.../java/samples/testng/agent/FinalDemoTest.java | 78 +
.../MockStaticExtendsPowerMockTestCaseTest.java | 79 +
.../java/samples/testng/agent/MockStaticTest.java | 66 +
.../agent/NotAnnotatedWithPrepareForTest.java | 31 +
.../agent/PartialMockingWithBeforeClassTest.java | 53 +
.../samples/testng/agent/PrivateFinalTest.java | 67 +
.../samples/testng/agent/SampleServletTest.java | 56 +
.../samples/testng/agent/SystemClassUserTest.java | 215 ++
.../easymock/testng-agent-test/suite.xml | 17 +
modules/module-test/easymock/testng-test/pom.xml | 50 +
.../java/samples/testng/AnnotationDemoTest.java | 35 +
.../testng/AnnotationDemoWithBeforeMethodTest.java | 43 +
.../samples/testng/DocumentBuilderFactoryTest.java | 13 +
.../src/test/java/samples/testng/FinalTest.java | 29 +
.../MockStaticExtendsPowerMockTestCaseTest.java | 79 +
.../test/java/samples/testng/MockStaticTest.java | 66 +
.../testng/NotAnnotatedWithPrepareForTest.java | 31 +
.../testng/PartialMockingWithBeforeClassTest.java | 53 +
.../test/java/samples/testng/PrivateFinalTest.java | 67 +
.../java/samples/testng/SampleServletTest.java | 56 +
.../testng/StaticInitializerExampleTest.java | 43 +
.../java/samples/testng/SystemClassUserTest.java | 214 ++
modules/module-test/easymock/testng-test/suite.xml | 18 +
modules/module-test/junit4/pom.xml | 30 +
.../proxyframework/ProxyFrameworkImpl.java | 18 +
.../MockingFrameworkReporterFactoryImpl.java | 21 +
.../junit4/bugs/github352/GitHub352Test.java | 49 +
.../junit4/bugs/github352/MyAbstractTest.java | 17 +
.../powermockito/junit4/bugs/github352/MyTest.java | 27 +
.../junit4/bugs/github352/package-info.java | 4 +
modules/module-test/mockito/junit4-agent/pom.xml | 45 +
.../junit4/agent/AnnotationUsageTest.java | 77 +
...sertPowerMockRuleDelagatesToOtherRulesTest.java | 90 +
.../powermockito/junit4/agent/FinalDemoTest.java | 141 +
.../powermockito/junit4/agent/LargeMethodTest.java | 58 +
.../agent/MemberModificationExampleTest.java | 193 ++
.../agent/MockFinalUsingAnnotationsTest.java | 76 +
.../powermockito/junit4/agent/MockStaticTest.java | 181 ++
.../agent/MockStaticWithPrivateCtorTest.java | 43 +
.../junit4/agent/PrivateInstanceMockingTest.java | 116 +
.../powermockito/junit4/agent/StubMethodTest.java | 133 +
.../junit4/agent/SuppressConstructorDemoTest.java | 67 +
.../SuppressConstructorHierarchyDemoTest.java | 80 +
.../junit4/agent/SystemClassUserTest.java | 133 +
.../powermockito/junit4/agent/WhenNewTest.java | 600 ++++
.../junit4/agent/github512/Github512Test.java | 26 +
.../junit4/agent/github512/package-info.java | 4 +
.../module-test/mockito/junit4-delegate/pom.xml | 29 +
.../test/mockito/junit4/delegate/EnclosedTest.java | 87 +
.../junit4/delegate/MultipleConstructorsTest.java | 38 +
.../test/mockito/junit4/delegate/SelfieTest.java | 93 +
.../junit4/delegate/SubclassDelegateTest.java | 36 +
.../test/mockito/junit4/delegate/SuperClass.java | 18 +
.../mockito/junit4/delegate/SuppressedMethod.java | 42 +
.../junit4/delegate/SuppressedMethodStubbing.java | 74 +
.../junit4/delegate/SystemClassUserCases.java | 124 +
.../junit4/delegate/SystemClassUserMethod.java | 51 +
.../mockito/junit4/delegate/WhenNewCaseMethod.java | 61 +
.../test/mockito/junit4/delegate/WhenNewCases.java | 588 ++++
.../delegate/parameterized/FinalDemoTest.java | 145 +
.../MockFinalUsingAnnotationsTest.java | 89 +
.../delegate/parameterized/StubMethodTest.java | 77 +
.../parameterized/SuppressConstructorDemoTest.java | 76 +
.../SuppressConstructorHierarchyDemoTest.java | 108 +
.../parameterized/SupressMethodExampleTest.java | 177 ++
.../parameterized/SystemClassUserTest.java | 77 +
.../junit4/delegate/parameterized/WhenNewTest.java | 63 +
.../module-test/mockito/junit4-java8-agent/pom.xml | 48 +
.../junit4/bugs/github510/ClassUsesInterface.java | 12 +
.../junit4/bugs/github510/InterfaceWithStatic.java | 12 +
.../bugs/github510/ClassUsesInterfaceTest.java | 42 +
.../mockito/junit4-java8-rule-xstream/pom.xml | 48 +
.../junit4/bugs/github510/ClassUsesInterface.java | 12 +
.../junit4/bugs/github510/InterfaceWithStatic.java | 12 +
.../bugs/github510/ClassUsesInterfaceTest.java | 42 +
modules/module-test/mockito/junit4-java8/pom.xml | 38 +
.../junit4/bugs/github510/ClassUsesInterface.java | 16 +
.../junit4/bugs/github510/ConstructorObject.java | 10 +
.../junit4/bugs/github510/InterfaceWithStatic.java | 16 +
.../InterfaceMethodExceedingJvmLimit.java | 49 +
.../largemethod/LargeMethodInInterfaceTest.java | 56 +
.../junit4/bugs/github510/Github510Test.java | 51 +
.../junit4/bugs/github510/package-info.java | 4 +
.../mockito/junit4-rule-objenesis/pom.xml | 33 +
.../junit4/rule/objenesis/FinalDemoTest.java | 141 +
.../powermockito/junit4/rule/objenesis/Foo.java | 23 +
.../junit4/rule/objenesis/MockStaticTest.java | 180 ++
.../junit4/rule/objenesis/PowerMockRuleTest.java | 52 +
.../rule/objenesis/PrivateInstanceMockingTest.java | 117 +
.../objenesis/StaticInitializerExampleTest.java | 28 +
.../junit4/rule/objenesis/SystemClassUserTest.java | 134 +
.../junit4/rule/objenesis/WhenNewTest.java | 602 ++++
.../objenesis/bugs/github512/Github512Test.java | 24 +
.../objenesis/bugs/github512/package-info.java | 4 +
.../mockito/junit4-rule-xstream/pom.xml | 33 +
...sertPowerMockRuleDelagatesToOtherRulesTest.java | 89 +
.../junit4/rule/xstream/FinalDemoTest.java | 141 +
.../powermockito/junit4/rule/xstream/Foo.java | 23 +
.../junit4/rule/xstream/MockStaticTest.java | 180 ++
.../junit4/rule/xstream/PowerMockRuleTest.java | 52 +
.../rule/xstream/PrivateInstanceMockingTest.java | 116 +
.../rule/xstream/StaticInitializerExampleTest.java | 28 +
.../junit4/rule/xstream/SystemClassUserTest.java | 134 +
.../junit4/rule/xstream/WhenNewTest.java | 601 ++++
.../rule/xstream/github512/Github512Test.java | 24 +
.../rule/xstream/github512/package-info.java | 4 +
modules/module-test/mockito/junit4/pom.xml | 25 +
.../powermockito/junit4/ClassLoaderBugTest.java | 54 +
.../powermockito/junit4/FinalEqualsClass.java | 33 +
.../powermockito/junit4/FinalEqualsClassTest.java | 50 +
.../abstractmocking/AbstractMethodMockingTest.java | 51 +
.../annotationbased/CaptorAnnotationTest.java | 72 +
.../ChunkingAndStaticInitializerRemovalTest.java | 61 +
.../annotationbased/InjectMocksAnnotationTest.java | 75 +
.../MockFinalUsingAnnotationsTest.java | 73 +
.../MockFinalUsingAnnotationsWithAnswersTest.java | 58 +
.../junit4/annotationbased/SpyAnnotationTest.java | 52 +
.../argumentmatcher/ArgumentMatcherTest.java | 46 +
.../junit4/bugs/github510/package-info.java | 4 +
.../junit4/bugs/github583/ChildClass.java | 20 +
.../bugs/github583/ClassWithInheritanceTest.java | 22 +
.../junit4/bugs/github583/ParenClass.java | 14 +
.../junit4/bugs/github583/package-info.java | 4 +
.../constructor/InnerConstructorsAreFoundTest.java | 122 +
.../powermockito/junit4/doreturn/DoReturnTest.java | 52 +
.../junit4/enums/EnumWithConstructorTest.java | 36 +
.../junit4/equalsmocking/EqualsMockingTest.java | 52 +
.../junit4/finalmocking/FinalDemoTest.java | 135 +
.../powermockito/junit4/getclass/GetClassTest.java | 58 +
.../powermockito/junit4/hashcode/HashCodeTest.java | 51 +
.../junit4/hashcode/InnerClassHashCodeTest.java | 73 +
.../junit4/largemethod/LargeMethodTest.java | 56 +
.../MemberModificationExampleTest.java | 187 ++
.../NestedClassDefinedInsideTestCaseTest.java | 60 +
.../partialmocking/PartialMockingExampleTest.java | 47 +
.../PartialMockingRetainsStateTest.java | 47 +
.../PrivatePartialMockingExampleTest.java | 89 +
.../partialmocking/StaticPartialMockingTest.java | 233 ++
.../privatemocking/PrivateInstanceMockingTest.java | 166 ++
.../junit4/proxymethod/ProxyMethodTest.java | 128 +
.../junit4/simplemix/SimpleMixTest.java | 79 +
.../samples/powermockito/junit4/spy/SpyTest.java | 77 +
.../StaticAndInstanceDemoTest.java | 47 +
.../staticmocking/MockStaticNotPreparedTest.java | 58 +
.../junit4/staticmocking/MockStaticTest.java | 228 ++
.../junit4/stress/PowerMockStressTest.java | 91 +
.../junit4/system/ServiceLoaderTest.java | 41 +
.../junit4/system/SystemClassUserTest.java | 215 ++
.../powermockito/junit4/tostring/ToStringTest.java | 44 +
.../VerifyNoMoreInteractionsTest.java | 133 +
...tSupportCreatingMocksInFieldsWhenNewDefect.java | 51 +
.../junit4/whennew/NewFileExampleTest.java | 46 +
.../junit4/whennew/VerifyNewMultipleTimesTest.java | 63 +
.../whennew/VerifyNewWithoutWhenNewTest.java | 52 +
.../powermockito/junit4/whennew/WhenNewTest.java | 635 +++++
.../junit4/withsettings/WithSettingsTest.java | 59 +
modules/module-test/mockito/junit49/pom.xml | 30 +
.../powermockito/junit4/rules/JUnit49RuleTest.java | 78 +
modules/module-test/mockito/pom.xml | 92 +
modules/module-test/mockito/testng/pom.xml | 82 +
.../staticmocking/MockStaticNotPreparedTest.java | 31 +
.../MockStaticPreparedWithoutMockStaticTest.java | 24 +
.../staticmocking/Mockito1MockStaticTest.java | 74 +
.../staticmocking/Mockito2MockStaticTest.java | 79 +
modules/module-test/mockito/testng/suite.xml | 39 +
modules/module-test/pom.xml | 32 +
modules/module-test/testng/pom.xml | 49 +
.../proxyframework/ProxyFrameworkImpl.java | 18 +
.../test/java/samples/testng/SimpleBaseTest.java | 120 +
.../samples/testng/bugs/github647/GitHub647.java | 93 +
.../testng/bugs/github647/SkipExceptionTest.java | 17 +
.../samples/testng/bugs/github647/SomeClass.java | 12 +
modules/module-test/testng/suite.xml | 8 +
modules/pom.xml | 23 +
pom.xml | 392 +++
powermock.png | Bin 0 -> 11350 bytes
reflect/pom.xml | 27 +
.../main/java/org/powermock/reflect/Whitebox.java | 857 ++++++
.../exceptions/ConstructorNotFoundException.java | 57 +
.../reflect/exceptions/FieldNotFoundException.java | 38 +
.../exceptions/MethodInvocationException.java | 75 +
.../exceptions/MethodNotFoundException.java | 38 +
.../TooManyConstructorsFoundException.java | 39 +
.../exceptions/TooManyFieldsFoundException.java | 38 +
.../exceptions/TooManyMethodsFoundException.java | 38 +
.../internal/CandidateConstructorSearcher.java | 93 +
.../reflect/internal/ParameterTypesMatcher.java | 80 +
.../org/powermock/reflect/internal/TypeUtils.java | 95 +
.../powermock/reflect/internal/WhiteboxImpl.java | 2582 +++++++++++++++++
.../internal/comparator/ComparatorFactory.java | 107 +
.../AllFieldsMatcherStrategy.java | 33 +
.../AssignableFromFieldTypeMatcherStrategy.java | 49 +
.../AssignableToFieldTypeMatcherStrategy.java | 30 +
.../FieldAnnotationMatcherStrategy.java | 65 +
.../matcherstrategies/FieldMatcherStrategy.java | 49 +
.../FieldNameMatcherStrategy.java | 48 +
.../FieldTypeMatcherStrategy.java | 48 +
.../internal/primitivesupport/BoxedWrapper.java | 70 +
.../primitivesupport/PrimitiveWrapper.java | 97 +
.../reflect/matching/FieldMatchingStrategy.java | 36 +
.../ClassLoaderRegisterProxyFramework.java | 31 +
.../proxyframework/ProxyFrameworkHelper.java | 53 +
.../proxyframework/RegisterProxyFramework.java | 20 +
.../org/powermock/reflect/spi/ProxyFramework.java | 23 +
.../powermock/reflect/WhiteBoxGetFieldTest.java | 63 +
.../java/org/powermock/reflect/WhiteBoxTest.java | 947 +++++++
.../context/ClassFieldsNotInTargetContext.java | 38 +
.../context/InstanceFieldsNotInTargetContext.java | 38 +
.../org/powermock/reflect/context/MyContext.java | 37 +
.../powermock/reflect/context/MyIntContext.java | 27 +
.../powermock/reflect/context/MyStringContext.java | 25 +
...InstanceAndOneStaticFieldOfSameTypeContext.java | 32 +
.../reflect/internal/WhiteboxImplTest.java | 88 +
.../reflect/testclasses/AbstractClass.java | 20 +
.../powermock/reflect/testclasses/AnInterface.java | 20 +
.../org/powermock/reflect/testclasses/Child.java | 20 +
.../reflect/testclasses/ClassWithAMethod.java | 27 +
.../ClassWithChildThatHasInternalState.java | 23 +
.../ClassWithInterfaceConstructors.java | 31 +
.../testclasses/ClassWithInternalState.java | 85 +
.../reflect/testclasses/ClassWithList.java | 26 +
.../ClassWithMethodUsingSuperTypeArgument.java | 22 +
.../testclasses/ClassWithObjectConstructors.java | 19 +
.../ClassWithOverloadedConstructors.java | 39 +
.../testclasses/ClassWithOverloadedMethods.java | 27 +
.../testclasses/ClassWithOverriddenMethod.java | 24 +
.../ClassWithPrimitiveConstructors.java | 18 +
.../testclasses/ClassWithPrivateMethods.java | 69 +
.../testclasses/ClassWithSerializableState.java | 34 +
.../ClassWithSeveralMethodsWithSameName.java | 27 +
...ralMethodsWithSameNameOneWithoutParameters.java | 31 +
.../testclasses/ClassWithSimpleInternalState.java | 46 +
.../ClassWithSimpleStateOfSameType.java | 31 +
.../testclasses/ClassWithStandardMethod.java | 24 +
...thStaticAndInstanceInternalStateOfSameType.java | 36 +
.../reflect/testclasses/ClassWithStaticMethod.java | 30 +
.../testclasses/ClassWithUniquePrivateMethods.java | 37 +
.../testclasses/ClassWithVarArgsConstructor.java | 32 +
.../testclasses/ClassWithVarArgsConstructor2.java | 32 +
.../org/powermock/reflect/testclasses/Parent.java | 20 +
release/easymock-extension-api-full/pom.xml | 162 ++
.../src/assembly/full.xml | 15 +
release/junit-without-mock-framework/pom.xml | 71 +
.../src/assembly/full.xml | 15 +
release/mockito-extension-api-full/pom.xml | 162 ++
.../src/assembly/full.xml | 15 +
release/mockito2-extension-api-full/pom.xml | 180 ++
.../src/assembly/full.xml | 33 +
release/pom.xml | 64 +
release/testng-without-mock-framework/pom.xml | 61 +
.../src/assembly/full.xml | 15 +
release/with-junit-easymock-dependencies/pom.xml | 66 +
.../src/assembly/final.xml | 12 +
release/with-junit-mockito-dependencies/pom.xml | 62 +
.../src/assembly/final.xml | 12 +
release/with-junit-mockito2-dependencies/pom.xml | 80 +
.../src/assembly/final.xml | 30 +
release/with-testng-easymock-dependencies/pom.xml | 65 +
.../src/assembly/final.xml | 12 +
release/with-testng-mockito-dependencies/pom.xml | 62 +
.../src/assembly/final.xml | 12 +
release/with-testng-mockito2-dependencies/pom.xml | 80 +
.../src/assembly/final.xml | 30 +
release/without-test-and-mock-framework/pom.xml | 65 +
.../src/assembly/full.xml | 15 +
src/site/apt/docs/gettingStarted.apt | 40 +
src/site/apt/docs/installing.apt | 24 +
src/site/apt/docs/motivation.apt | 130 +
src/site/resources/images/logos/jayway.png | Bin 0 -> 5895 bytes
src/site/resources/images/logos/powermock.png | Bin 0 -> 11350 bytes
src/site/site.xml | 60 +
tests/pom.xml | 22 +
tests/utils/pom.xml | 42 +
tests/utils/src/main/java/samples/Service.java | 27 +
.../abstractmocking/AbstractMethodMocking.java | 30 +
.../samples/annotationbased/AnnotationDemo.java | 35 +
.../samples/anonymousmocking/MyAbstractClass.java | 20 +
.../samples/anonymousmocking/StupidAnonymous.java | 87 +
.../argumentmatcher/ArgumentMatcherDemo.java | 26 +
.../main/java/samples/classhierarchy/ChildA.java | 20 +
.../main/java/samples/classhierarchy/ChildB.java | 20 +
.../main/java/samples/classhierarchy/Parent.java | 29 +
.../ClassWithInnerMembers.java | 115 +
.../constructor/PrivateConstructorDemo.java | 39 +
.../PrivateConstructorInstantiationDemo.java | 38 +
.../samples/constructor/PublicConstructorDemo.java | 39 +
.../PublicConstructorWithDependencyDemo.java | 39 +
.../constructorargs/ConstructorArgsDemo.java | 39 +
.../AnotherSomeObjectInterfaceImpl.java | 24 +
.../samples/enummocking/EnumWithConstructor.java | 36 +
.../src/main/java/samples/enummocking/MyEnum.java | 25 +
.../samples/enummocking/SomeObjectInterface.java | 24 +
.../enummocking/SomeObjectInterfaceImpl.java | 24 +
.../equalswithgetclass/EqualsWithGetClass.java | 54 +
.../main/java/samples/expectnew/ExpectNewDemo.java | 161 ++
.../expectnew/ExpectNewOfFinalSystemClassDemo.java | 24 +
.../samples/expectnew/ExpectNewServiceUser.java | 37 +
.../expectnew/ExpectNewWithMultipleCtorDemo.java | 41 +
.../java/samples/expectnew/NewFileExample.java | 34 +
.../samples/expectnew/PrimitiveAndWrapperDemo.java | 37 +
.../samples/expectnew/PrimitiveAndWrapperUser.java | 29 +
.../samples/expectnew/VarArgsConstructorDemo.java | 70 +
.../java/samples/expectvoid/ExpectVoidDemo.java | 28 +
.../samples/fieldmock/FieldInitializerDemo.java | 40 +
.../main/java/samples/finalmocking/FinalDemo.java | 44 +
.../samples/finalmocking/HoldingFinalDemo.java | 23 +
.../finalmocking/StaticHoldingFinalDemo.java | 23 +
.../hashcode/HashCodeInitializedInCtor.java | 37 +
.../java/samples/injectmocks/DependencyHolder.java | 34 +
.../injectmocks/DependencyHolderQualifier.java | 45 +
.../main/java/samples/injectmocks/InjectDemo.java | 36 +
.../injectmocks/InjectDependencyHolder.java | 34 +
.../InjectDependencyHolderQualifier.java | 43 +
.../ClassWithNonPrivateInnerClass.java | 36 +
.../ClassWithPrivateInnerClass.java | 37 +
.../InterfaceWithStaticFinalField.java | 27 +
.../InterfaceMethodHierarchyUsage.java | 53 +
.../samples/interfacemethodfinding/WsUtil.java | 32 +
.../java/samples/java/ClassInsideJavaPackage.java | 24 +
.../largemethod/MethodExceedingJvmLimit.java | 49 +
.../methodhierarchy/MethodInvocationDemo.java | 25 +
.../MethodInvocationDemoGrandParent.java | 33 +
.../MethodInvocationDemoParent.java | 29 +
.../java/samples/mockpolicy/ResultCalculator.java | 28 +
.../mockpolicy/SimpleClassWithADependency.java | 26 +
.../samples/mockpolicy/SomeClassWithAMethod.java | 24 +
.../mockpolicy/SomeClassWithAMethodParent.java | 23 +
.../mockpolicy/frameworkexample/NativeResult.java | 29 +
.../frameworkexample/SimpleFramework.java | 27 +
.../frameworkexample/SimpleFrameworkUser.java | 23 +
.../samples/nativemocking/NativeMockingSample.java | 32 +
.../java/samples/nativemocking/NativeService.java | 26 +
.../src/main/java/samples/newmocking/MyClass.java | 31 +
.../src/main/java/samples/newmocking/NewDemo.java | 26 +
.../java/samples/newmocking/SomeDependency.java | 27 +
.../main/java/samples/newmocking/StupidNew.java | 34 +
.../utils/src/main/java/samples/nice/NiceDemo.java | 32 +
.../overloading/OverloadedMethodsExample.java | 33 +
.../java/samples/overloading/OverloadingDemo.java | 43 +
.../StaticAndInstanceMethodWithSameName.java | 27 +
.../StaticAndInstanceMethodWithSameNameUser.java | 36 +
.../packageprivate/PackagePrivateClass.java | 33 +
.../java/samples/partialmocking/MockSelfDemo.java | 121 +
.../partialmocking/MockSelfDemoSubClass.java | 28 +
.../partialmocking/MockSelfDemoWithSubClass.java | 31 +
.../MockSelfWithNoDefaultConstructorDemo.java | 34 +
.../partialmocking/MockWithStaticStateDemo.java | 25 +
.../partialmocking/PartialMockingExample.java | 31 +
.../PartialMockingWithConstructor.java | 28 +
.../PrivatePartialMockingExample.java | 30 +
.../powermockignore/PowerMockIgnoreDemo.java | 10 +
.../java/samples/powermockito/MockitoVersion.java | 49 +
.../java/samples/privateandfinal/PrivateFinal.java | 32 +
.../privateandfinal/PrivateFinalOverload.java | 31 +
.../MockSelfPrivateFieldServiceClass.java | 37 +
.../SimplePrivateFieldServiceClass.java | 32 +
.../samples/privatemocking/PrivateMethodDemo.java | 103 +
.../samples/reflection/ReflectionInstantiator.java | 26 +
.../src/main/java/samples/reflection/UseMe.java | 21 +
.../java/samples/reflection/UseMeInterface.java | 22 +
.../src/main/java/samples/rule/SimpleThing.java | 21 +
.../main/java/samples/rule/SimpleThingCreator.java | 24 +
.../main/java/samples/rule/SimpleThingImpl.java | 26 +
.../src/main/java/samples/rule/ThingToTest.java | 31 +
.../java/samples/servletmocking/SampleServlet.java | 34 +
.../src/main/java/samples/simplemix/SimpleMix.java | 33 +
.../samples/simplemix/SimpleMixCollaborator.java | 25 +
.../samples/simplemix/SimpleMixConstruction.java | 23 +
.../java/samples/simplemix/SimpleMixUtilities.java | 24 +
.../samples/simplereturn/SimpleReturnExample.java | 8 +
.../simplereturn/SimpleReturnExampleUser.java | 15 +
.../samples/singleton/SimpleStaticService.java | 8 +
.../main/java/samples/singleton/StaticExample.java | 64 +
.../main/java/samples/singleton/StaticHelper.java | 27 +
.../main/java/samples/singleton/StaticService.java | 109 +
.../samples/singleton/StaticWithPrivateCtor.java | 28 +
.../utils/src/main/java/samples/spy/SpyObject.java | 32 +
.../staticandinstance/StaticAndInstanceDemo.java | 43 +
.../StaticAndInstanceWithConstructorCodeDemo.java | 36 +
.../AbstractStaticInitializerExample.java | 34 +
.../EvilStaticInitializerExample.java | 40 +
.../staticinitializer/InterfaceComputation.java | 51 +
.../SimpleStaticInitializerExample.java | 33 +
.../StaticInitializerExample.java | 35 +
.../main/java/samples/stress/ClassWithStatic.java | 45 +
.../src/main/java/samples/stress/StressSample.java | 44 +
.../src/main/java/samples/strict/StrictDemo.java | 32 +
.../samples/suppressconstructor/AppaleList.java | 41 +
.../suppressconstructor/InvokeConstructor.java | 23 +
.../SuppressConstructorDemo.java | 32 +
...uppressConstructorHeirarchyEvilGrandParent.java | 23 +
.../SuppressConstructorHierarchy.java | 34 +
.../SuppressConstructorHierarchyParent.java | 36 +
.../SuppressConstructorSubclassDemo.java | 29 +
.../SuppressNonParentConstructorDemo.java | 28 +
.../SuppressSpecificConstructorDemo.java | 33 +
.../suppresseverything/SuppressEverything.java | 35 +
.../java/samples/suppressfield/DomainObject.java | 7 +
.../java/samples/suppressfield/ItemRepository.java | 30 +
.../java/samples/suppressfield/SuppressField.java | 61 +
.../samples/suppressmethod/SuppressMethod.java | 82 +
.../suppressmethod/SuppressMethodExample.java | 33 +
.../suppressmethod/SuppressMethodParent.java | 24 +
.../java/samples/swing/ReallySimpleSwingDemo.java | 10 +
.../main/java/samples/swing/SimpleSwingDemo.java | 56 +
.../main/java/samples/system/SystemClassUser.java | 95 +
.../ClassWithPowerMockGeneratedConstructor.java | 32 +
1404 files changed, 139140 insertions(+)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/powermock.git
More information about the pkg-java-commits
mailing list