Showing preview only (2,985K chars total). Download the full file or copy to clipboard to get everything.
Repository: jayway/powermock
Branch: release/2.x
Commit: a0be5c4bbeb0
Files: 969
Total size: 2.6 MB
Directory structure:
gitextract_foq7ud8y/
├── .github/
│ ├── ISSUE_TEMPLATE.md
│ ├── dependabot.yml
│ └── workflows/
│ └── gradle-wrapper-validation.yml
├── .gitignore
├── .travis.yml
├── CONTRIBUTING.md
├── LICENSE.txt
├── README.md
├── build.gradle
├── config/
│ └── checkstyle/
│ └── checkstyle.xml
├── docs/
│ ├── changelog.txt
│ ├── generate_javadoc.sh
│ └── release-notes/
│ └── official.md
├── gradle/
│ ├── java-module.gradle
│ ├── modules.gradle
│ ├── publishing/
│ │ ├── publish-maven.gradle
│ │ ├── publish.gradle
│ │ └── publishable-module.gradle
│ ├── release/
│ │ ├── distZip.gradle
│ │ ├── fullJars.gradle
│ │ ├── publish-distZip.gradle
│ │ ├── publish-fullJar.gradle
│ │ └── publish-jar.gradle
│ ├── shipkit.gradle
│ ├── version.gradle
│ └── wrapper/
│ ├── gradle-wrapper.jar
│ └── gradle-wrapper.properties
├── gradle.properties
├── gradlew
├── gradlew.bat
├── powermock-api/
│ ├── powermock-api-easymock/
│ │ └── src/
│ │ └── main/
│ │ └── java/
│ │ └── org/
│ │ └── powermock/
│ │ └── api/
│ │ ├── easymock/
│ │ │ ├── EasyMockConfiguration.java
│ │ │ ├── PowerMock.java
│ │ │ ├── annotation/
│ │ │ │ ├── Mock.java
│ │ │ │ ├── MockNice.java
│ │ │ │ └── MockStrict.java
│ │ │ ├── internal/
│ │ │ │ ├── invocationcontrol/
│ │ │ │ │ ├── EasyMockMethodInvocationControl.java
│ │ │ │ │ ├── EasyMockNewInvocationControl.java
│ │ │ │ │ └── NewInvocationControlAssertionError.java
│ │ │ │ └── mockstrategy/
│ │ │ │ ├── MockStrategy.java
│ │ │ │ └── impl/
│ │ │ │ ├── AbstractMockStrategyBase.java
│ │ │ │ ├── DefaultMockStrategy.java
│ │ │ │ ├── NiceMockStrategy.java
│ │ │ │ └── StrictMockStrategy.java
│ │ │ ├── mockpolicies/
│ │ │ │ ├── AbstractEasyMockLogPolicyBase.java
│ │ │ │ ├── JclMockPolicy.java
│ │ │ │ ├── Log4jMockPolicy.java
│ │ │ │ └── Slf4jMockPolicy.java
│ │ │ └── powermocklistener/
│ │ │ └── AnnotationEnabler.java
│ │ └── extension/
│ │ ├── InjectFieldSearcher.java
│ │ ├── agent/
│ │ │ └── JavaAgentFrameworkRegisterImpl.java
│ │ └── listener/
│ │ ├── AnnotationEnabler.java
│ │ ├── AnnotationGlobalMetadata.java
│ │ ├── AnnotationMockCreator.java
│ │ ├── AnnotationMockCreatorFactory.java
│ │ ├── AnnotationMockMetadata.java
│ │ ├── AnnotationMockScanner.java
│ │ ├── DefaultInjectFieldSearcher.java
│ │ ├── EasyMockAnnotationSupport.java
│ │ ├── MockMetadata.java
│ │ └── TestSubjectInjector.java
│ ├── powermock-api-mockito2/
│ │ └── src/
│ │ ├── main/
│ │ │ ├── java/
│ │ │ │ └── org/
│ │ │ │ └── powermock/
│ │ │ │ └── api/
│ │ │ │ ├── extension/
│ │ │ │ │ ├── agent/
│ │ │ │ │ │ └── JavaAgentFrameworkRegisterImpl.java
│ │ │ │ │ └── listener/
│ │ │ │ │ └── AnnotationEnabler.java
│ │ │ │ └── mockito/
│ │ │ │ ├── ClassNotPreparedException.java
│ │ │ │ ├── PowerMockito.java
│ │ │ │ ├── expectation/
│ │ │ │ │ ├── ConstructorAwareExpectationSetup.java
│ │ │ │ │ ├── ConstructorExpectationSetup.java
│ │ │ │ │ ├── DefaultConstructorExpectationSetup.java
│ │ │ │ │ ├── PowerMockitoStubber.java
│ │ │ │ │ ├── PrivatelyExpectedArguments.java
│ │ │ │ │ ├── WithAnyArguments.java
│ │ │ │ │ ├── WithExpectedArguments.java
│ │ │ │ │ ├── WithExpectedParameterTypes.java
│ │ │ │ │ ├── WithOrWithoutExpectedArguments.java
│ │ │ │ │ ├── WithoutExpectedArguments.java
│ │ │ │ │ └── reporter/
│ │ │ │ │ └── MockitoPowerMockReporter.java
│ │ │ │ ├── internal/
│ │ │ │ │ ├── PowerMockitoCore.java
│ │ │ │ │ ├── configuration/
│ │ │ │ │ │ ├── PowerMockitoInjectingAnnotationEngine.java
│ │ │ │ │ │ └── PowerMockitoSpyAnnotationEngine.java
│ │ │ │ │ ├── exceptions/
│ │ │ │ │ │ └── StackTraceCleanerProvider.java
│ │ │ │ │ ├── expectation/
│ │ │ │ │ │ ├── DefaultMethodExpectationSetup.java
│ │ │ │ │ │ ├── DefaultPrivatelyExpectedArguments.java
│ │ │ │ │ │ ├── DelegatingToConstructorsOngoingStubbing.java
│ │ │ │ │ │ └── PowerMockitoStubberImpl.java
│ │ │ │ │ ├── invocation/
│ │ │ │ │ │ ├── InvocationControlAssertionError.java
│ │ │ │ │ │ └── MockitoNewInvocationControl.java
│ │ │ │ │ ├── mockcreation/
│ │ │ │ │ │ ├── AbstractMockCreator.java
│ │ │ │ │ │ ├── DefaultMockCreator.java
│ │ │ │ │ │ ├── MockCreator.java
│ │ │ │ │ │ ├── MockTypeValidator.java
│ │ │ │ │ │ ├── MockTypeValidatorFactory.java
│ │ │ │ │ │ └── RuntimeExceptionProxy.java
│ │ │ │ │ ├── stubbing/
│ │ │ │ │ │ ├── MockitoRealMethodInvocation.java
│ │ │ │ │ │ └── PowerMockCallRealMethod.java
│ │ │ │ │ └── verification/
│ │ │ │ │ ├── DefaultConstructorArgumentsVerification.java
│ │ │ │ │ ├── DefaultPrivateMethodVerification.java
│ │ │ │ │ └── VerifyNoMoreInteractions.java
│ │ │ │ ├── invocation/
│ │ │ │ │ ├── InvocationFactory.java
│ │ │ │ │ ├── MockHandlerAdaptor.java
│ │ │ │ │ └── MockitoMethodInvocationControl.java
│ │ │ │ ├── mockmaker/
│ │ │ │ │ ├── MockMakerLoader.java
│ │ │ │ │ └── PowerMockMaker.java
│ │ │ │ ├── mockpolicies/
│ │ │ │ │ └── Slf4jMockPolicy.java
│ │ │ │ ├── powermocklistener/
│ │ │ │ │ └── AnnotationEnabler.java
│ │ │ │ └── verification/
│ │ │ │ ├── ConstructorArgumentsVerification.java
│ │ │ │ ├── PrivateMethodVerification.java
│ │ │ │ ├── WithOrWithoutVerifiedArguments.java
│ │ │ │ ├── WithVerifiedArguments.java
│ │ │ │ └── WithoutVerifiedArguments.java
│ │ │ └── resources/
│ │ │ └── mockito-extensions/
│ │ │ ├── org.mockito.plugins.MockMaker
│ │ │ └── org.mockito.plugins.StackTraceCleanerProvider
│ │ └── test/
│ │ ├── java/
│ │ │ └── org/
│ │ │ └── powermock/
│ │ │ └── api/
│ │ │ └── mockito/
│ │ │ ├── PowerMockMockito2ApiTestSuite.java
│ │ │ ├── internal/
│ │ │ │ ├── expectation/
│ │ │ │ │ └── DefaultMethodExpectationSetupTestCase.java
│ │ │ │ └── mockcreation/
│ │ │ │ └── MockCreatorTestCase.java
│ │ │ └── mockmaker/
│ │ │ └── PowerMockMakerTestCase.java
│ │ └── resources/
│ │ └── org/
│ │ └── powermock/
│ │ └── extensions/
│ │ └── configuration.template
│ └── powermock-api-support/
│ └── src/
│ └── main/
│ └── java/
│ └── org/
│ └── powermock/
│ └── api/
│ └── support/
│ ├── ClassLoaderUtil.java
│ ├── MethodProxy.java
│ ├── SafeExceptionRethrower.java
│ ├── Stubber.java
│ ├── SuppressCode.java
│ └── membermodification/
│ ├── MemberMatcher.java
│ ├── MemberModifier.java
│ └── strategy/
│ ├── ClassReplaceStrategy.java
│ ├── MethodReplaceStrategy.java
│ ├── MethodStubStrategy.java
│ └── impl/
│ ├── MethodReplaceStrategyImpl.java
│ └── MethodStubStrategyImpl.java
├── powermock-classloading/
│ ├── powermock-classloading-base/
│ │ └── src/
│ │ └── main/
│ │ └── java/
│ │ └── org/
│ │ └── powermock/
│ │ └── classloading/
│ │ ├── AbstractClassloaderExecutor.java
│ │ ├── ClassloaderExecutor.java
│ │ ├── SingleClassloaderExecutor.java
│ │ └── spi/
│ │ ├── DeepClonerSPI.java
│ │ └── DoNotClone.java
│ ├── powermock-classloading-objenesis/
│ │ └── src/
│ │ ├── main/
│ │ │ └── java/
│ │ │ └── org/
│ │ │ └── powermock/
│ │ │ └── classloading/
│ │ │ └── DeepCloner.java
│ │ └── test/
│ │ └── java/
│ │ └── powermock/
│ │ └── classloading/
│ │ ├── ObjenesisClassloaderExecutorTest.java
│ │ └── ObjenesisDeepClonerTest.java
│ └── powermock-classloading-xstream/
│ └── src/
│ ├── main/
│ │ └── java/
│ │ └── org/
│ │ └── powermock/
│ │ └── classloading/
│ │ └── DeepCloner.java
│ └── test/
│ └── java/
│ └── powermock/
│ └── classloading/
│ ├── XStreamClassloaderExecutorTest.java
│ └── XStreamDeepClonerTest.java
├── powermock-core/
│ ├── build.gradle
│ └── src/
│ ├── main/
│ │ ├── java/
│ │ │ └── org/
│ │ │ └── powermock/
│ │ │ ├── PowerMockInternalException.java
│ │ │ ├── configuration/
│ │ │ │ ├── Configuration.java
│ │ │ │ ├── ConfigurationFactory.java
│ │ │ │ ├── ConfigurationType.java
│ │ │ │ ├── GlobalConfiguration.java
│ │ │ │ ├── MockitoConfiguration.java
│ │ │ │ ├── PowerMockConfiguration.java
│ │ │ │ └── support/
│ │ │ │ ├── ConfigurationBuilder.java
│ │ │ │ ├── ConfigurationFactoryImpl.java
│ │ │ │ ├── ConfigurationMapper.java
│ │ │ │ ├── PropertiesFinder.java
│ │ │ │ ├── PropertiesLoader.java
│ │ │ │ └── ValueAliases.java
│ │ │ ├── core/
│ │ │ │ ├── ClassLocator.java
│ │ │ │ ├── ClassReplicaCreator.java
│ │ │ │ ├── ConcreteClassGenerator.java
│ │ │ │ ├── DefaultFieldValueGenerator.java
│ │ │ │ ├── IdentityHashSet.java
│ │ │ │ ├── IndicateReloadClass.java
│ │ │ │ ├── InvocationException.java
│ │ │ │ ├── ListMap.java
│ │ │ │ ├── MockGateway.java
│ │ │ │ ├── MockInvocation.java
│ │ │ │ ├── MockRepository.java
│ │ │ │ ├── PowerMockUtils.java
│ │ │ │ ├── WildcardMatcher.java
│ │ │ │ ├── agent/
│ │ │ │ │ ├── JavaAgentClassRegister.java
│ │ │ │ │ ├── JavaAgentFrameworkRegister.java
│ │ │ │ │ └── JavaAgentFrameworkRegisterFactory.java
│ │ │ │ ├── bytebuddy/
│ │ │ │ │ ├── ConditionalStateStackManipulation.java
│ │ │ │ │ ├── Frame.java
│ │ │ │ │ ├── MaxLocalsExtractor.java
│ │ │ │ │ ├── MethodMaxLocals.java
│ │ │ │ │ ├── MockGetawayCall.java
│ │ │ │ │ ├── PrimitiveBoxing.java
│ │ │ │ │ └── Variable.java
│ │ │ │ ├── classloader/
│ │ │ │ │ ├── ByteCodeFramework.java
│ │ │ │ │ ├── ClassMarker.java
│ │ │ │ │ ├── ClassloaderWrapper.java
│ │ │ │ │ ├── DeferSupportingClassLoader.java
│ │ │ │ │ ├── MockClassLoader.java
│ │ │ │ │ ├── MockClassLoaderBuilder.java
│ │ │ │ │ ├── MockClassLoaderConfiguration.java
│ │ │ │ │ ├── MockClassLoaderFactory.java
│ │ │ │ │ ├── PowerMockModified.java
│ │ │ │ │ ├── annotations/
│ │ │ │ │ │ ├── MockPolicy.java
│ │ │ │ │ │ ├── PowerMockIgnore.java
│ │ │ │ │ │ ├── PowerMockListener.java
│ │ │ │ │ │ ├── PrepareEverythingForTest.java
│ │ │ │ │ │ ├── PrepareForTest.java
│ │ │ │ │ │ ├── PrepareOnlyThisForTest.java
│ │ │ │ │ │ ├── SuppressStaticInitializationFor.java
│ │ │ │ │ │ └── UseClassPathAdjuster.java
│ │ │ │ │ └── javassist/
│ │ │ │ │ ├── ClassPathAdjuster.java
│ │ │ │ │ ├── ClassPoolFactory.java
│ │ │ │ │ ├── JavaAssistClassMarkerFactory.java
│ │ │ │ │ └── JavassistMockClassLoader.java
│ │ │ │ ├── reporter/
│ │ │ │ │ ├── MockingFrameworkReporter.java
│ │ │ │ │ ├── PowerMockReporter.java
│ │ │ │ │ └── PowerMockReporterFactory.java
│ │ │ │ ├── spi/
│ │ │ │ │ ├── DefaultBehavior.java
│ │ │ │ │ ├── MethodInvocationControl.java
│ │ │ │ │ ├── NewInvocationControl.java
│ │ │ │ │ ├── PowerMockPolicy.java
│ │ │ │ │ ├── PowerMockTestListener.java
│ │ │ │ │ ├── listener/
│ │ │ │ │ │ └── AnnotationEnablerListener.java
│ │ │ │ │ ├── support/
│ │ │ │ │ │ ├── AbstractPowerMockTestListenerBase.java
│ │ │ │ │ │ └── InvocationSubstitute.java
│ │ │ │ │ └── testresult/
│ │ │ │ │ ├── Result.java
│ │ │ │ │ ├── TestMethodResult.java
│ │ │ │ │ ├── TestSuiteResult.java
│ │ │ │ │ └── impl/
│ │ │ │ │ ├── TestMethodResultImpl.java
│ │ │ │ │ └── TestSuiteResultImpl.java
│ │ │ │ ├── testlisteners/
│ │ │ │ │ ├── FieldDefaulter.java
│ │ │ │ │ └── GlobalNotificationBuildSupport.java
│ │ │ │ └── transformers/
│ │ │ │ ├── ClassWrapper.java
│ │ │ │ ├── ClassWrapperFactory.java
│ │ │ │ ├── MethodSignatureWriter.java
│ │ │ │ ├── MethodSignatures.java
│ │ │ │ ├── MockTransformer.java
│ │ │ │ ├── MockTransformerChain.java
│ │ │ │ ├── MockTransformerChainFactory.java
│ │ │ │ ├── TestClassAwareTransformer.java
│ │ │ │ ├── TestClassTransformer.java
│ │ │ │ ├── TestClassTransformerBuilder.java
│ │ │ │ ├── TransformStrategy.java
│ │ │ │ ├── javassist/
│ │ │ │ │ ├── AbstractJavaAssistMockTransformer.java
│ │ │ │ │ ├── ClassFinalModifierMockTransformer.java
│ │ │ │ │ ├── ConstructorsMockTransformer.java
│ │ │ │ │ ├── InstrumentMockTransformer.java
│ │ │ │ │ ├── JavassistMockTransformerChainFactory.java
│ │ │ │ │ ├── MethodMockTransformer.java
│ │ │ │ │ ├── MethodSizeMockTransformer.java
│ │ │ │ │ ├── PackagePrivateClassesMockTransformer.java
│ │ │ │ │ ├── StaticFinalFieldsMockTransformer.java
│ │ │ │ │ ├── StaticFinalNativeMethodMockTransformer.java
│ │ │ │ │ ├── SuppressStaticInitializerMockTransformer.java
│ │ │ │ │ ├── support/
│ │ │ │ │ │ ├── JavaAssistClassWrapperFactory.java
│ │ │ │ │ │ ├── PowerMockExpressionEditor.java
│ │ │ │ │ │ ├── Primitives.java
│ │ │ │ │ │ └── TransformerHelper.java
│ │ │ │ │ └── testclass/
│ │ │ │ │ ├── ForMethodsJavaAssistTestClassTransformer.java
│ │ │ │ │ ├── FromAllMethodsExceptJavaAssistTestClassTransformer.java
│ │ │ │ │ └── JavaAssistTestClassTransformer.java
│ │ │ │ └── support/
│ │ │ │ ├── DefaultMockTransformerChain.java
│ │ │ │ └── FilterPredicates.java
│ │ │ ├── mockpolicies/
│ │ │ │ ├── MockPolicyClassLoadingSettings.java
│ │ │ │ ├── MockPolicyInterceptionSettings.java
│ │ │ │ ├── impl/
│ │ │ │ │ ├── MockPolicyClassLoadingSettingsImpl.java
│ │ │ │ │ └── MockPolicyInterceptionSettingsImpl.java
│ │ │ │ └── support/
│ │ │ │ └── LogPolicySupport.java
│ │ │ ├── tests/
│ │ │ │ └── utils/
│ │ │ │ ├── ArrayMerger.java
│ │ │ │ ├── IgnorePackagesExtractor.java
│ │ │ │ ├── Keys.java
│ │ │ │ ├── MockPolicyInitializer.java
│ │ │ │ ├── PowerMockTestNotifier.java
│ │ │ │ ├── RunnerTestSuiteChunker.java
│ │ │ │ ├── TestChunk.java
│ │ │ │ ├── TestClassesExtractor.java
│ │ │ │ ├── TestSuiteChunker.java
│ │ │ │ └── impl/
│ │ │ │ ├── AbstractCommonTestSuiteChunkerImpl.java
│ │ │ │ ├── AbstractTestClassExtractor.java
│ │ │ │ ├── AbstractTestSuiteChunkerImpl.java
│ │ │ │ ├── ArrayMergerImpl.java
│ │ │ │ ├── MockPolicyInitializerImpl.java
│ │ │ │ ├── PowerMockIgnorePackagesExtractorImpl.java
│ │ │ │ ├── PowerMockTestNotifierImpl.java
│ │ │ │ ├── PrepareForTestExtractorImpl.java
│ │ │ │ ├── StaticConstructorSuppressExtractorImpl.java
│ │ │ │ ├── TestCaseEntry.java
│ │ │ │ └── TestChunkImpl.java
│ │ │ └── utils/
│ │ │ ├── ArrayUtil.java
│ │ │ ├── Asserts.java
│ │ │ ├── IOUtils.java
│ │ │ ├── JavaVersion.java
│ │ │ ├── NumberUtils.java
│ │ │ └── StringJoiner.java
│ │ └── resources/
│ │ └── org/
│ │ └── powermock/
│ │ └── default.properties
│ └── test/
│ ├── java/
│ │ ├── org/
│ │ │ └── powermock/
│ │ │ ├── WildcardMatcherTest.java
│ │ │ ├── configuration/
│ │ │ │ └── support/
│ │ │ │ ├── ConfigurationBuilderTest.java
│ │ │ │ └── ConfigurationFactoryImplTest.java
│ │ │ ├── core/
│ │ │ │ ├── classloader/
│ │ │ │ │ ├── Collaborator.java
│ │ │ │ │ ├── HardToTransform.java
│ │ │ │ │ ├── MockClassLoaderBuilderTest.java
│ │ │ │ │ ├── MockClassLoaderConfigurationTest.java
│ │ │ │ │ ├── MockClassLoaderFactoryTest.java
│ │ │ │ │ ├── MockClassLoaderTest.java
│ │ │ │ │ └── ResourcePrefixClassLoader.java
│ │ │ │ ├── test/
│ │ │ │ │ ├── ClassLoaderTestHelper.java
│ │ │ │ │ ├── ContainsCondition.java
│ │ │ │ │ └── MockClassLoaderFactory.java
│ │ │ │ ├── testlisteners/
│ │ │ │ │ └── GlobalNotificationBuildSupportTest.java
│ │ │ │ └── transformers/
│ │ │ │ ├── AbstractBaseMockTransformerTest.java
│ │ │ │ ├── ClassFinalModifierMockTransformerTest.java
│ │ │ │ ├── ConstructorCallMockTransformerTest.java
│ │ │ │ ├── ConstructorModifiersMockTransformerTest.java
│ │ │ │ ├── InstrumentMockTransformerTest.java
│ │ │ │ ├── MethodSizeMockTransformerTest.java
│ │ │ │ ├── MethodsMockTransformerTest.java
│ │ │ │ ├── MockTransformerChainTest.java
│ │ │ │ ├── MockTransformerTestHelper.java
│ │ │ │ ├── NativeMethodsMockTransformerTest.java
│ │ │ │ ├── StaticFinalFieldsMockTransformerTest.java
│ │ │ │ ├── StaticMethodsMockTransformerTest.java
│ │ │ │ ├── SuppressStaticInitializerMockTransformerTest.java
│ │ │ │ ├── TestClassTransformerTest.java
│ │ │ │ ├── javassist/
│ │ │ │ │ └── TestPrimitives.java
│ │ │ │ └── mock/
│ │ │ │ └── MockGatewaySpy.java
│ │ │ ├── tests/
│ │ │ │ └── utils/
│ │ │ │ └── impl/
│ │ │ │ ├── PowerMockIgnorePackagesExtractorImplTest.java
│ │ │ │ └── PrepareForTestExtractorImplTest.java
│ │ │ └── utils/
│ │ │ ├── JavaVersionTest.java
│ │ │ └── NumberUtilsTest.java
│ │ └── powermock/
│ │ └── test/
│ │ └── support/
│ │ ├── ClassForMockClassLoaderTestCase.java
│ │ ├── ClassWithLargeMethods.java
│ │ ├── MainMockTransformerTestSupport.java
│ │ └── TestWithTwoTestMethods.java
│ └── resources/
│ └── org/
│ └── powermock/
│ ├── core/
│ │ └── classloader/
│ │ └── foo/
│ │ └── bar/
│ │ └── baz/
│ │ └── test.txt
│ ├── extensions/
│ │ ├── test.properties
│ │ ├── test_configuration.properties
│ │ ├── test_with_alias.properties
│ │ └── test_without_prefix.properties
│ └── test_default_configuration.properties
├── powermock-modules/
│ ├── powermock-module-javaagent/
│ │ ├── jmockit-license.txt
│ │ └── src/
│ │ └── main/
│ │ ├── java/
│ │ │ ├── com/
│ │ │ │ └── sun/
│ │ │ │ └── tools/
│ │ │ │ └── attach/
│ │ │ │ ├── AgentInitializationException.java
│ │ │ │ ├── AgentLoadException.java
│ │ │ │ ├── AttachNotSupportedException.java
│ │ │ │ ├── VirtualMachine.java
│ │ │ │ ├── VirtualMachineDescriptor.java
│ │ │ │ └── spi/
│ │ │ │ └── AttachProvider.java
│ │ │ ├── org/
│ │ │ │ └── powermock/
│ │ │ │ └── modules/
│ │ │ │ └── agent/
│ │ │ │ ├── AbstractClassTransformer.java
│ │ │ │ ├── AgentInitialization.java
│ │ │ │ ├── AgentLoader.java
│ │ │ │ ├── DefinalizingClassTransformer.java
│ │ │ │ ├── DefinalizingClassVisitor.java
│ │ │ │ ├── PowerMockAgent.java
│ │ │ │ ├── PowerMockClassRedefiner.java
│ │ │ │ ├── PowerMockClassTransformer.java
│ │ │ │ └── support/
│ │ │ │ ├── JavaAgentClassRegisterImpl.java
│ │ │ │ └── PowerMockAgentTestInitializer.java
│ │ │ └── sun/
│ │ │ └── tools/
│ │ │ └── attach/
│ │ │ ├── BsdVirtualMachine.java
│ │ │ ├── HotSpotVirtualMachine.java
│ │ │ ├── LinuxVirtualMachine.java
│ │ │ ├── SolarisVirtualMachine.java
│ │ │ └── WindowsVirtualMachine.java
│ │ └── javadoc/
│ │ └── resources/
│ │ └── org,powermock/
│ │ └── modules/
│ │ └── agent/
│ │ └── package.html
│ ├── powermock-module-junit4/
│ │ └── src/
│ │ ├── main/
│ │ │ └── java/
│ │ │ └── org/
│ │ │ └── powermock/
│ │ │ └── modules/
│ │ │ └── junit4/
│ │ │ ├── PowerMockRunner.java
│ │ │ ├── PowerMockRunnerDelegate.java
│ │ │ └── internal/
│ │ │ └── impl/
│ │ │ ├── DelegatingPowerMockRunner.java
│ │ │ ├── NotificationBuilder.java
│ │ │ ├── PowerMockJUnit44RunnerDelegateImpl.java
│ │ │ ├── PowerMockJUnit47RunnerDelegateImpl.java
│ │ │ ├── PowerMockJUnit49RunnerDelegateImpl.java
│ │ │ ├── PowerMockRunNotifier.java
│ │ │ └── testcaseworkaround/
│ │ │ └── PowerMockJUnit4MethodValidator.java
│ │ └── test/
│ │ └── java/
│ │ └── org/
│ │ └── powermock/
│ │ └── modules/
│ │ └── junit4/
│ │ └── internal/
│ │ └── impl/
│ │ └── PowerMockRunNotifierTest.java
│ ├── powermock-module-junit4-common/
│ │ └── src/
│ │ ├── main/
│ │ │ └── java/
│ │ │ └── org/
│ │ │ └── powermock/
│ │ │ └── modules/
│ │ │ └── junit4/
│ │ │ └── common/
│ │ │ └── internal/
│ │ │ ├── JUnit4TestSuiteChunker.java
│ │ │ ├── PowerMockJUnitRunnerDelegate.java
│ │ │ └── impl/
│ │ │ ├── AbstractCommonPowerMockRunner.java
│ │ │ ├── JUnit4TestMethodChecker.java
│ │ │ ├── JUnit4TestSuiteChunkerImpl.java
│ │ │ ├── JUnitVersion.java
│ │ │ ├── PowerMockJUnit4RunListener.java
│ │ │ ├── VersionComparator.java
│ │ │ └── VersionTokenizer.java
│ │ └── test/
│ │ └── java/
│ │ └── org/
│ │ └── powermock/
│ │ └── modules/
│ │ └── junit4/
│ │ └── common/
│ │ └── internal/
│ │ └── impl/
│ │ └── JUnitVersionTest.java
│ ├── powermock-module-junit4-legacy/
│ │ └── src/
│ │ └── main/
│ │ └── java/
│ │ └── org/
│ │ └── powermock/
│ │ └── modules/
│ │ └── junit4/
│ │ └── legacy/
│ │ ├── PowerMockRunner.java
│ │ └── internal/
│ │ └── impl/
│ │ ├── PowerMockJUnit4LegacyFilter.java
│ │ ├── PowerMockJUnit4LegacyRunnerDelegateImpl.java
│ │ └── testcaseworkaround/
│ │ ├── PowerMockJUnit4LegacyTestClassMethodsRunner.java
│ │ ├── PowerMockJUnit4LegacyTestIntrospector.java
│ │ └── PowerMockJUnit4LegacyTestMethodRunner.java
│ ├── powermock-module-junit4-rule/
│ │ └── src/
│ │ └── main/
│ │ └── java/
│ │ └── org/
│ │ └── powermock/
│ │ └── modules/
│ │ └── junit4/
│ │ └── rule/
│ │ ├── PowerMockRule.java
│ │ └── PowerMockRuleTestSuiteChunker.java
│ ├── powermock-module-junit4-rule-agent/
│ │ └── src/
│ │ └── main/
│ │ └── java/
│ │ └── org/
│ │ └── powermock/
│ │ └── modules/
│ │ └── junit4/
│ │ └── rule/
│ │ └── PowerMockRule.java
│ ├── powermock-module-testng/
│ │ └── src/
│ │ └── main/
│ │ └── java/
│ │ └── org/
│ │ └── powermock/
│ │ └── modules/
│ │ └── testng/
│ │ ├── PowerMockObjectFactory.java
│ │ └── internal/
│ │ ├── Assumes.java
│ │ ├── PowerMockClassloaderObjectFactory.java
│ │ ├── PowerMockExpectedExceptionsExtractorImpl.java
│ │ ├── PowerMockTestNGMethodHandler.java
│ │ ├── TestClassInstanceFactory.java
│ │ ├── TestNGMethodFilter.java
│ │ └── TestNGMockClassLoaderFactory.java
│ ├── powermock-module-testng-agent/
│ │ └── src/
│ │ └── main/
│ │ └── java/
│ │ └── org/
│ │ └── powermock/
│ │ └── modules/
│ │ └── testng/
│ │ └── PowerMockObjectFactory.java
│ └── powermock-module-testng-common/
│ └── src/
│ └── main/
│ └── java/
│ └── org/
│ └── powermock/
│ └── modules/
│ └── testng/
│ └── PowerMockTestCase.java
├── powermock-reflect/
│ ├── build.gradle
│ └── src/
│ ├── main/
│ │ └── java/
│ │ └── org/
│ │ └── powermock/
│ │ └── reflect/
│ │ ├── Whitebox.java
│ │ ├── exceptions/
│ │ │ ├── ConstructorNotFoundException.java
│ │ │ ├── FieldNotFoundException.java
│ │ │ ├── MethodInvocationException.java
│ │ │ ├── MethodNotFoundException.java
│ │ │ ├── TooManyConstructorsFoundException.java
│ │ │ ├── TooManyFieldsFoundException.java
│ │ │ └── TooManyMethodsFoundException.java
│ │ ├── internal/
│ │ │ ├── CandidateConstructorSearcher.java
│ │ │ ├── Constructor.java
│ │ │ ├── ConstructorFinder.java
│ │ │ ├── ParameterTypesMatcher.java
│ │ │ ├── ParametersMatcher.java
│ │ │ ├── TypeUtils.java
│ │ │ ├── WhiteboxImpl.java
│ │ │ ├── comparator/
│ │ │ │ └── ComparatorFactory.java
│ │ │ ├── matcherstrategies/
│ │ │ │ ├── AllFieldsMatcherStrategy.java
│ │ │ │ ├── AssignableFromFieldTypeMatcherStrategy.java
│ │ │ │ ├── AssignableToFieldTypeMatcherStrategy.java
│ │ │ │ ├── FieldAnnotationMatcherStrategy.java
│ │ │ │ ├── FieldMatcherStrategy.java
│ │ │ │ ├── FieldNameMatcherStrategy.java
│ │ │ │ └── FieldTypeMatcherStrategy.java
│ │ │ ├── primitivesupport/
│ │ │ │ ├── BoxedWrapper.java
│ │ │ │ └── PrimitiveWrapper.java
│ │ │ └── proxy/
│ │ │ ├── ProxyFrameworks.java
│ │ │ ├── UnproxiedType.java
│ │ │ └── UnproxiedTypeFactory.java
│ │ └── matching/
│ │ └── FieldMatchingStrategy.java
│ └── test/
│ └── java/
│ └── org/
│ └── powermock/
│ └── reflect/
│ ├── WhiteBoxGetFieldTest.java
│ ├── WhiteBoxTest.java
│ ├── context/
│ │ ├── ClassFieldsNotInTargetContext.java
│ │ ├── InstanceFieldsNotInTargetContext.java
│ │ ├── MyContext.java
│ │ ├── MyIntContext.java
│ │ ├── MyStringContext.java
│ │ └── OneInstanceAndOneStaticFieldOfSameTypeContext.java
│ ├── internal/
│ │ ├── WhiteboxImplTest.java
│ │ └── proxy/
│ │ ├── AnotherInterface.java
│ │ ├── ClassFactory.java
│ │ ├── ProxyFrameworksTest.java
│ │ ├── SomeClass.java
│ │ └── SomeInterface.java
│ └── testclasses/
│ ├── AbstractClass.java
│ ├── AnInterface.java
│ ├── Child.java
│ ├── ClassWithAMethod.java
│ ├── ClassWithChildThatHasInternalState.java
│ ├── ClassWithInterfaceConstructors.java
│ ├── ClassWithInternalState.java
│ ├── ClassWithList.java
│ ├── ClassWithMethodUsingBothPrimitiveTypeAndWrappedTypeArguments.java
│ ├── ClassWithMethodUsingSuperTypeArgument.java
│ ├── ClassWithObjectConstructors.java
│ ├── ClassWithOverloadedConstructors.java
│ ├── ClassWithOverloadedMethods.java
│ ├── ClassWithOverriddenMethod.java
│ ├── ClassWithPrimitiveConstructors.java
│ ├── ClassWithPrivateMethods.java
│ ├── ClassWithSerializableState.java
│ ├── ClassWithSeveralMethodsWithSameName.java
│ ├── ClassWithSeveralMethodsWithSameNameOneWithoutParameters.java
│ ├── ClassWithSimpleInternalState.java
│ ├── ClassWithSimpleStateOfSameType.java
│ ├── ClassWithStandardMethod.java
│ ├── ClassWithStaticAndInstanceInternalStateOfSameType.java
│ ├── ClassWithStaticMethod.java
│ ├── ClassWithUniquePrivateMethods.java
│ ├── ClassWithVarArgsConstructor.java
│ ├── ClassWithVarArgsConstructor2.java
│ └── Parent.java
├── powermock-release/
│ └── build.gradle
├── settings.gradle
├── tests/
│ ├── build.gradle
│ ├── easymock/
│ │ ├── build.gradle
│ │ ├── junit4/
│ │ │ └── src/
│ │ │ └── test/
│ │ │ └── java/
│ │ │ └── samples/
│ │ │ ├── interfacemethodfinding/
│ │ │ │ └── InterfaceMethodHierarchyUsageTest.java
│ │ │ ├── junit4/
│ │ │ │ ├── abstractmocking/
│ │ │ │ │ └── AbstractMethodMockingTest.java
│ │ │ │ ├── annotationbased/
│ │ │ │ │ ├── AnnotationDemoWithSetupMethodTest.java
│ │ │ │ │ ├── FinalDemoWithAnnotationInjectionAndFieldDefaulterTest.java
│ │ │ │ │ ├── FinalDemoWithAnnotationInjectionTest.java
│ │ │ │ │ ├── FinalDemoWithNiceAnnotationInjectionTest.java
│ │ │ │ │ ├── FinalDemoWithStrictAnnotationInjectionTest.java
│ │ │ │ │ ├── TestSubjectEasymockAnnotationTest.java
│ │ │ │ │ └── TestSubjectPowermockAnnotationTest.java
│ │ │ │ ├── assume/
│ │ │ │ │ └── AssumeTest.java
│ │ │ │ ├── classhierarchy/
│ │ │ │ │ └── CommonParentTest.java
│ │ │ │ ├── classwithinnermembers/
│ │ │ │ │ └── ClassWithInnerMembersTest.java
│ │ │ │ ├── console/
│ │ │ │ │ └── ConsoleTest.java
│ │ │ │ ├── constructor/
│ │ │ │ │ ├── PrivateConstructorInstantiationDemoTest.java
│ │ │ │ │ └── PublicConstructorWithDependencyDemoTest.java
│ │ │ │ ├── constructorargs/
│ │ │ │ │ └── ConstructorArgsDemoTest.java
│ │ │ │ ├── easymock/
│ │ │ │ │ └── EasyMockAndPowerMockMixTest.java
│ │ │ │ ├── enummocking/
│ │ │ │ │ └── EnumMockingTest.java
│ │ │ │ ├── equalswithgetclass/
│ │ │ │ │ └── EqualsWithGetClassTest.java
│ │ │ │ ├── expectnew/
│ │ │ │ │ ├── ExpectNewCases.java
│ │ │ │ │ ├── ExpectNewDemoTest.java
│ │ │ │ │ ├── ExpectNewOfFinalSystemClassTest.java
│ │ │ │ │ ├── MockDateTest.java
│ │ │ │ │ ├── PrimitiveAndWrapperDemoTest.java
│ │ │ │ │ └── PrimitiveAndWrapperUserTest.java
│ │ │ │ ├── expectvoid/
│ │ │ │ │ └── ExpectVoidDemoTest.java
│ │ │ │ ├── finalmocking/
│ │ │ │ │ ├── FinalDemoTest.java
│ │ │ │ │ ├── MockingOfInstanceMethodsInFinalSystemClassTest.java
│ │ │ │ │ └── NoDuplicateTest.java
│ │ │ │ ├── hashcode/
│ │ │ │ │ └── PowerMockUsesIdentityHashMapToStoreMocks.java
│ │ │ │ ├── interfacefieldchange/
│ │ │ │ │ └── ChangeValueOfStaticFinalFieldInInterfacesDefect.java
│ │ │ │ ├── java/
│ │ │ │ │ └── MockClassesInsideJavaPackage.java
│ │ │ │ ├── largemethod/
│ │ │ │ │ └── LargeMethodTest.java
│ │ │ │ ├── misc/
│ │ │ │ │ └── PrivateInnerInterfacesInTestClassTest.java
│ │ │ │ ├── mockpolicy/
│ │ │ │ │ ├── MockPolicyUsageExampleTest.java
│ │ │ │ │ ├── MockPolicyWithExpectationsTest.java
│ │ │ │ │ ├── MockPolicyWithInvocationHandlerTest.java
│ │ │ │ │ └── frameworkexample/
│ │ │ │ │ ├── SimpleFrameworkMockPolicy.java
│ │ │ │ │ └── SimpleFrameworkUserTest.java
│ │ │ │ ├── multireplayverify/
│ │ │ │ │ └── MultiReplayVerifyTest.java
│ │ │ │ ├── nativemocking/
│ │ │ │ │ └── NativeMockingSampleTest.java
│ │ │ │ ├── newmocking/
│ │ │ │ │ └── StupidNewTest.java
│ │ │ │ ├── nice/
│ │ │ │ │ └── NiceDemoTest.java
│ │ │ │ ├── noannotation/
│ │ │ │ │ ├── NoAnnotationUsageTest.java
│ │ │ │ │ ├── SetUpAndTearDownWhenExtendingTestCaseTest.java
│ │ │ │ │ ├── SetUpAndTearDownWhenNotExtendingTestCaseTest.java
│ │ │ │ │ ├── SetUpIsOnlyCalledOnceWhenExtendingTestCaseTest.java
│ │ │ │ │ └── StringConstructorWorksWhenExtendingTestCase.java
│ │ │ │ ├── overloading/
│ │ │ │ │ ├── MethodWithSameNameButDifferentDefinitionTypeTest.java
│ │ │ │ │ └── OverloadingDemoTest.java
│ │ │ │ ├── partialmocking/
│ │ │ │ │ ├── MockSelfDemoTest.java
│ │ │ │ │ ├── MockSelfDemoWithSubClassTest.java
│ │ │ │ │ ├── PartialMockingWithConstructorTest.java
│ │ │ │ │ └── PartialMockingWithConstructorUsingEasyMockTest.java
│ │ │ │ ├── powermockignore/
│ │ │ │ │ └── PowerMockIgnoreAndPrepareForTest.java
│ │ │ │ ├── prepareeverything/
│ │ │ │ │ └── ExpectNewDemoUsingThePrepareEverythingAnnotationTest.java
│ │ │ │ ├── privateandfinal/
│ │ │ │ │ └── PrivateFinalTest.java
│ │ │ │ ├── privatefield/
│ │ │ │ │ ├── MockSelfPrivateFieldServiceClassTest.java
│ │ │ │ │ └── SimplePrivateFieldServiceClassTest.java
│ │ │ │ ├── privatemocking/
│ │ │ │ │ └── PrivateMethodDemoTest.java
│ │ │ │ ├── reflection/
│ │ │ │ │ └── ReflectionInstantiatorTest.java
│ │ │ │ ├── replayall/
│ │ │ │ │ ├── ReplayAllForExpectNewTest.java
│ │ │ │ │ └── ReplayAllForStaticMethodsTest.java
│ │ │ │ ├── resetmock/
│ │ │ │ │ ├── ResetForStaticMethodsTest.java
│ │ │ │ │ └── ResetMockTest.java
│ │ │ │ ├── servletmocking/
│ │ │ │ │ └── SampleServletTest.java
│ │ │ │ ├── simplereturn/
│ │ │ │ │ └── SimpleReturnExampleUserTest.java
│ │ │ │ ├── singleton/
│ │ │ │ │ ├── LogicAndTestInSameClassTest.java
│ │ │ │ │ ├── MockStaticTest.java
│ │ │ │ │ └── SimpleStaticServiceTest.java
│ │ │ │ ├── stackoverflow/
│ │ │ │ │ ├── EvilHashCode.java
│ │ │ │ │ └── StackOverFlowTest.java
│ │ │ │ ├── staticandinstance/
│ │ │ │ │ ├── StaticAndInstanceDemoTest.java
│ │ │ │ │ └── StaticAndInstanceWithConstructorCodeDemoTest.java
│ │ │ │ ├── staticinitializer/
│ │ │ │ │ ├── AbstractStaticInitializerTest.java
│ │ │ │ │ ├── EvilStaticInitializerExampleTest.java
│ │ │ │ │ ├── InterfaceStaticInitializerExampleTest.java
│ │ │ │ │ └── StaticInitializerExampleTest.java
│ │ │ │ ├── strict/
│ │ │ │ │ └── StrictDemoTest.java
│ │ │ │ ├── stubmethod/
│ │ │ │ │ └── StubMethodTest.java
│ │ │ │ ├── suppressconstructor/
│ │ │ │ │ ├── CreateUnmockedTest.java
│ │ │ │ │ ├── SuppressConstructorDemoTest.java
│ │ │ │ │ ├── SuppressConstructorHierarchyDemoTest.java
│ │ │ │ │ └── SuppressNonParentConstructorDemoTest.java
│ │ │ │ ├── suppressfield/
│ │ │ │ │ ├── ItemRepositoryTest.java
│ │ │ │ │ └── SuppressFieldTest.java
│ │ │ │ ├── suppressmethod/
│ │ │ │ │ └── SuppressMethodTest.java
│ │ │ │ ├── swing/
│ │ │ │ │ └── ReallySimpleSwingDemoTest.java
│ │ │ │ ├── system/
│ │ │ │ │ ├── FieldMockDefect.java
│ │ │ │ │ └── SystemClassUserTest.java
│ │ │ │ ├── testhierarchy/
│ │ │ │ │ ├── RunWithHierarchyTest.java
│ │ │ │ │ └── TestParent.java
│ │ │ │ ├── verify/
│ │ │ │ │ └── AssertVerifyWorksTest.java
│ │ │ │ └── whitebox/
│ │ │ │ └── PowerMockConstructorFiltrationTest.java
│ │ │ ├── methodhierarchy/
│ │ │ │ └── MethodInvocationDemoTest.java
│ │ │ ├── packageprivate/
│ │ │ │ └── PackagePrivateClassTest.java
│ │ │ └── suppressconstructor/
│ │ │ ├── SuppressDefaultConstructorTest.java
│ │ │ └── SuppressSpecificConstructorDemoTest.java
│ │ ├── junit4-agent/
│ │ │ └── src/
│ │ │ └── test/
│ │ │ └── java/
│ │ │ └── samples/
│ │ │ └── powermockito/
│ │ │ └── junit4/
│ │ │ └── agent/
│ │ │ ├── AnnotationUsageTest.java
│ │ │ └── LargeMethodTest.java
│ │ ├── junit4-legacy/
│ │ │ └── src/
│ │ │ └── test/
│ │ │ └── java/
│ │ │ └── samples/
│ │ │ └── junit4/
│ │ │ └── legacy/
│ │ │ ├── annotationbased/
│ │ │ │ ├── AnnotationDemoWithSetupMethodTest.java
│ │ │ │ └── FinalDemoWithAnnotationInjectionTest.java
│ │ │ ├── noannotation/
│ │ │ │ ├── NoAnnotationUsageTest.java
│ │ │ │ ├── SetUpAndTearDownWhenExtendingTestCaseTest.java
│ │ │ │ └── SetUpAndTearDownWhenNotExtendingTestCaseTest.java
│ │ │ ├── singleton/
│ │ │ │ └── MockStaticTest.java
│ │ │ └── suppressconstructor/
│ │ │ └── SuppressConstructorHierarchyDemoTest.java
│ │ ├── junit410/
│ │ │ └── src/
│ │ │ └── test/
│ │ │ └── java/
│ │ │ └── samples/
│ │ │ └── junit410/
│ │ │ ├── assume/
│ │ │ │ └── AssumeForJUnit410Test.java
│ │ │ ├── expectnew/
│ │ │ │ ├── ExpectNewDemoTest.java
│ │ │ │ └── ExpectNewOfFinalSystemClassTest.java
│ │ │ ├── github668/
│ │ │ │ ├── Github668.java
│ │ │ │ ├── IncidentPropertyChangeDAO.java
│ │ │ │ └── package-info.java
│ │ │ └── rules/
│ │ │ ├── AssertThatJUnit410RulesWorks.java
│ │ │ ├── ExceptionHandlingRuleTest.java
│ │ │ ├── NoRuleAssertionErrorTest.java
│ │ │ └── impl/
│ │ │ └── SimpleEasyMockJUnitRule.java
│ │ ├── junit412/
│ │ │ └── src/
│ │ │ └── test/
│ │ │ └── java/
│ │ │ └── samples/
│ │ │ └── junit412/
│ │ │ ├── bug/
│ │ │ │ └── github755/
│ │ │ │ ├── TwoObjectsAnnotatedTest.java
│ │ │ │ └── package-info.java
│ │ │ ├── expectnew/
│ │ │ │ ├── ExpectNewDemoTest.java
│ │ │ │ └── ExpectNewOfFinalSystemClassTest.java
│ │ │ └── github668/
│ │ │ ├── Github668Test.java
│ │ │ ├── IncidentPropertyChangeDAO.java
│ │ │ ├── TwoMockFieldsWithDifferentTypesClass.java
│ │ │ ├── TwoMockFieldsWithSameTypeCase.java
│ │ │ └── package-info.java
│ │ ├── junit45/
│ │ │ └── src/
│ │ │ ├── main/
│ │ │ │ └── java/
│ │ │ │ └── demo/
│ │ │ │ └── org/
│ │ │ │ └── powermock/
│ │ │ │ └── modules/
│ │ │ │ └── test/
│ │ │ │ └── junit45/
│ │ │ │ └── failure/
│ │ │ │ ├── MyClass.java
│ │ │ │ ├── MyException.java
│ │ │ │ └── MyUtils.java
│ │ │ └── test/
│ │ │ └── java/
│ │ │ └── demo/
│ │ │ └── org/
│ │ │ └── powermock/
│ │ │ └── modules/
│ │ │ └── test/
│ │ │ └── junit45/
│ │ │ └── failure/
│ │ │ └── AssertThatJUnit45FailuresWorkTest.java
│ │ ├── junit47/
│ │ │ └── src/
│ │ │ └── test/
│ │ │ └── java/
│ │ │ └── samples/
│ │ │ └── junit4/
│ │ │ ├── annotationbased/
│ │ │ │ └── FinalDemoWithAnnotationInjectionAndFieldDefaulterTest.java
│ │ │ ├── expectnew/
│ │ │ │ ├── ExpectNewDemoTest.java
│ │ │ │ └── ExpectNewOfFinalSystemClassTest.java
│ │ │ └── rules/
│ │ │ ├── AssertThatJUnit47RulesWorks.java
│ │ │ ├── NoRuleAssertionErrorTest.java
│ │ │ ├── RuleOrderTest.java
│ │ │ └── ThrowingRuleTest.java
│ │ ├── junit48/
│ │ │ └── src/
│ │ │ └── test/
│ │ │ └── java/
│ │ │ └── samples/
│ │ │ └── junit48/
│ │ │ ├── expectnew/
│ │ │ │ ├── ExpectNewDemoTest.java
│ │ │ │ └── ExpectNewOfFinalSystemClassTest.java
│ │ │ └── rules/
│ │ │ ├── AssertThatJUnit48RulesWorks.java
│ │ │ ├── ExceptionHandlingRuleTest.java
│ │ │ ├── NoRuleAssertionErrorTest.java
│ │ │ ├── RuleOrderTest.java
│ │ │ ├── ThrowingRuleTest.java
│ │ │ └── impl/
│ │ │ └── SimpleEasyMockJUnitRule.java
│ │ ├── testng/
│ │ │ ├── src/
│ │ │ │ └── test/
│ │ │ │ └── java/
│ │ │ │ └── samples/
│ │ │ │ └── testng/
│ │ │ │ ├── AnnotationDemoTest.java
│ │ │ │ ├── AnnotationDemoWithBeforeMethodTest.java
│ │ │ │ ├── DocumentBuilderFactoryTest.java
│ │ │ │ ├── FinalTest.java
│ │ │ │ ├── MockStaticExtendsPowerMockTestCaseTest.java
│ │ │ │ ├── MockStaticTest.java
│ │ │ │ ├── NotAnnotatedWithPrepareForTest.java
│ │ │ │ ├── PartialMockingWithBeforeClassTest.java
│ │ │ │ ├── PrivateFinalTest.java
│ │ │ │ ├── SampleServletTest.java
│ │ │ │ ├── StaticInitializerExampleTest.java
│ │ │ │ └── SystemClassUserTest.java
│ │ │ └── suite.xml
│ │ └── testng-agent/
│ │ ├── src/
│ │ │ └── test/
│ │ │ └── java/
│ │ │ └── samples/
│ │ │ └── testng/
│ │ │ └── agent/
│ │ │ ├── AnnotationDemoTest.java
│ │ │ ├── AnnotationDemoWithBeforeMethodTest.java
│ │ │ ├── FinalDemoTest.java
│ │ │ ├── MockStaticExtendsPowerMockTestCaseTest.java
│ │ │ ├── MockStaticTest.java
│ │ │ ├── NotAnnotatedWithPrepareForTest.java
│ │ │ ├── PartialMockingWithBeforeClassTest.java
│ │ │ ├── PrivateFinalTest.java
│ │ │ ├── SampleServletTest.java
│ │ │ └── SystemClassUserTest.java
│ │ └── suite.xml
│ ├── java11/
│ │ ├── build.gradle
│ │ └── mockito-junit4/
│ │ └── src/
│ │ ├── main/
│ │ │ └── java/
│ │ │ └── samples/
│ │ │ └── powermockito/
│ │ │ └── junit4/
│ │ │ └── bugs/
│ │ │ └── github958/
│ │ │ └── OuterClass.java
│ │ └── test/
│ │ └── java/
│ │ └── samples/
│ │ └── powermockito/
│ │ └── junit4/
│ │ └── bugs/
│ │ └── github958/
│ │ └── Github958Test.java
│ ├── java8/
│ │ ├── build.gradle
│ │ ├── easymock-junit4/
│ │ │ └── src/
│ │ │ ├── main/
│ │ │ │ └── java/
│ │ │ │ └── samples/
│ │ │ │ └── powermockito/
│ │ │ │ └── junit4/
│ │ │ │ └── bugs/
│ │ │ │ └── github717/
│ │ │ │ ├── Instance.java
│ │ │ │ ├── InstanceFacade.java
│ │ │ │ ├── InstanceFacadeImpl.java
│ │ │ │ └── InstanceStatus.java
│ │ │ └── test/
│ │ │ └── java/
│ │ │ └── samples/
│ │ │ └── powermockito/
│ │ │ └── junit4/
│ │ │ └── bugs/
│ │ │ └── github717/
│ │ │ ├── InstanceFacadeImplTest.java
│ │ │ └── package-info.java
│ │ ├── mockito-junit4/
│ │ │ └── src/
│ │ │ ├── main/
│ │ │ │ └── java/
│ │ │ │ └── samples/
│ │ │ │ └── powermockito/
│ │ │ │ └── junit4/
│ │ │ │ ├── bugs/
│ │ │ │ │ └── github510/
│ │ │ │ │ ├── ClassUsesInterface.java
│ │ │ │ │ ├── ConstructorObject.java
│ │ │ │ │ └── InterfaceWithStatic.java
│ │ │ │ └── largemethod/
│ │ │ │ └── InterfaceMethodExceedingJvmLimit.java
│ │ │ └── test/
│ │ │ └── java/
│ │ │ ├── org/
│ │ │ │ └── powermock/
│ │ │ │ └── modules/
│ │ │ │ └── junit4/
│ │ │ │ └── largemethod/
│ │ │ │ └── LargeMethodInInterfaceTest.java
│ │ │ └── samples/
│ │ │ └── powermockito/
│ │ │ └── junit4/
│ │ │ └── bugs/
│ │ │ └── github510/
│ │ │ ├── Github510Test.java
│ │ │ └── package-info.java
│ │ ├── mockito-junit4-agent/
│ │ │ └── src/
│ │ │ ├── main/
│ │ │ │ └── java/
│ │ │ │ └── samples/
│ │ │ │ └── powermockito/
│ │ │ │ └── junit4/
│ │ │ │ └── bugs/
│ │ │ │ └── github510/
│ │ │ │ ├── ClassUsesInterface.java
│ │ │ │ └── InterfaceWithStatic.java
│ │ │ └── test/
│ │ │ └── java/
│ │ │ └── samples/
│ │ │ └── powermockito/
│ │ │ └── junit4/
│ │ │ └── bugs/
│ │ │ └── github510/
│ │ │ └── ClassUsesInterfaceTest.java
│ │ └── mockito-junit4-rule-xstream/
│ │ └── src/
│ │ ├── main/
│ │ │ └── java/
│ │ │ └── samples/
│ │ │ └── powermockito/
│ │ │ └── junit4/
│ │ │ └── bugs/
│ │ │ └── github510/
│ │ │ ├── ClassUsesInterface.java
│ │ │ └── InterfaceWithStatic.java
│ │ └── test/
│ │ └── java/
│ │ └── samples/
│ │ └── powermockito/
│ │ └── junit4/
│ │ └── bugs/
│ │ └── github510/
│ │ └── ClassUsesInterfaceTest.java
│ ├── junit4/
│ │ └── src/
│ │ └── test/
│ │ └── java/
│ │ └── samples/
│ │ └── powermockito/
│ │ └── junit4/
│ │ └── bugs/
│ │ ├── github352/
│ │ │ ├── GitHub352Test.java
│ │ │ ├── MyAbstractTest.java
│ │ │ ├── MyTest.java
│ │ │ └── package-info.java
│ │ ├── github722/
│ │ │ ├── GitHub722Test.java
│ │ │ ├── UseJUnitTest.java
│ │ │ └── UseTheoriesTest.java
│ │ └── github733/
│ │ ├── GitHub733Test.java
│ │ └── UseTestAnnotatedTest.java
│ ├── mockito/
│ │ ├── build.gradle
│ │ ├── inline/
│ │ │ └── src/
│ │ │ ├── main/
│ │ │ │ └── java/
│ │ │ │ └── samples/
│ │ │ │ └── powermockito/
│ │ │ │ └── inline/
│ │ │ │ └── bugs/
│ │ │ │ └── github793/
│ │ │ │ ├── FinalClass.java
│ │ │ │ └── StaticClass.java
│ │ │ └── test/
│ │ │ ├── java/
│ │ │ │ └── samples/
│ │ │ │ └── powermockito/
│ │ │ │ └── inline/
│ │ │ │ └── bugs/
│ │ │ │ └── github793/
│ │ │ │ ├── MockitoFinalClassMockingTest.java
│ │ │ │ ├── PartialMockingExampleTest.java
│ │ │ │ └── PowerMockStaticMockingTest.java
│ │ │ └── resources/
│ │ │ └── org/
│ │ │ └── powermock/
│ │ │ └── extensions/
│ │ │ └── configuration.properties
│ │ ├── junit4/
│ │ │ └── src/
│ │ │ ├── main/
│ │ │ │ └── java/
│ │ │ │ └── samples/
│ │ │ │ └── powermockito/
│ │ │ │ └── junit4/
│ │ │ │ └── bugs/
│ │ │ │ ├── github731/
│ │ │ │ │ ├── AType.java
│ │ │ │ │ ├── OptionalInterface.java
│ │ │ │ │ └── SomeInterface.java
│ │ │ │ ├── github801/
│ │ │ │ │ └── GlobalPowerMockIgnore.java
│ │ │ │ └── github806/
│ │ │ │ ├── CustomException.java
│ │ │ │ └── DoThrowTMockClass.java
│ │ │ └── test/
│ │ │ ├── java/
│ │ │ │ └── samples/
│ │ │ │ └── powermockito/
│ │ │ │ └── junit4/
│ │ │ │ ├── FinalEqualsClass.java
│ │ │ │ ├── FinalEqualsClassTest.java
│ │ │ │ ├── abstractmocking/
│ │ │ │ │ └── AbstractMethodMockingTest.java
│ │ │ │ ├── annotationbased/
│ │ │ │ │ ├── CaptorAnnotationTest.java
│ │ │ │ │ ├── ChunkingAndStaticInitializerRemovalTest.java
│ │ │ │ │ ├── InjectMocksAnnotationTest.java
│ │ │ │ │ ├── MockFinalUsingAnnotationsTest.java
│ │ │ │ │ ├── MockFinalUsingAnnotationsWithAnswersTest.java
│ │ │ │ │ └── SpyAnnotationTest.java
│ │ │ │ ├── argumentmatcher/
│ │ │ │ │ └── ArgumentMatcherTest.java
│ │ │ │ ├── bugs/
│ │ │ │ │ ├── ClassLoaderBugTest.java
│ │ │ │ │ ├── github510/
│ │ │ │ │ │ └── package-info.java
│ │ │ │ │ ├── github583/
│ │ │ │ │ │ ├── ChildClass.java
│ │ │ │ │ │ ├── ClassWithInheritanceTest.java
│ │ │ │ │ │ ├── ParenClass.java
│ │ │ │ │ │ └── package-info.java
│ │ │ │ │ ├── github668/
│ │ │ │ │ │ ├── GitHub668Test.java
│ │ │ │ │ │ └── package-info.java
│ │ │ │ │ ├── github701/
│ │ │ │ │ │ ├── GitHub701Test.java
│ │ │ │ │ │ ├── MapWrapper.java
│ │ │ │ │ │ ├── OverridesEquals.java
│ │ │ │ │ │ └── package-info.java
│ │ │ │ │ ├── github704/
│ │ │ │ │ │ ├── PrepareForTestSignedTest.java
│ │ │ │ │ │ ├── SomeClassUseSignedClasses.java
│ │ │ │ │ │ └── package-info.java
│ │ │ │ │ ├── github716/
│ │ │ │ │ │ ├── A.java
│ │ │ │ │ │ ├── B.java
│ │ │ │ │ │ ├── C.java
│ │ │ │ │ │ ├── MyService.java
│ │ │ │ │ │ ├── WhenNewWithAnyArgumentsTest.java
│ │ │ │ │ │ └── package-info.java
│ │ │ │ │ ├── github731/
│ │ │ │ │ │ ├── MockingInterfacesTest.java
│ │ │ │ │ │ └── SomeException.java
│ │ │ │ │ ├── github781/
│ │ │ │ │ │ ├── EqualsStatic.java
│ │ │ │ │ │ ├── GitHub781Test.java
│ │ │ │ │ │ └── SpyObject.java
│ │ │ │ │ ├── github801/
│ │ │ │ │ │ └── GlobalPowerMockIgnoreTest.java
│ │ │ │ │ └── github806/
│ │ │ │ │ ├── DoThrowTest.java
│ │ │ │ │ └── package-info.java
│ │ │ │ ├── constructor/
│ │ │ │ │ └── InnerConstructorsAreFoundTest.java
│ │ │ │ ├── doreturn/
│ │ │ │ │ └── DoReturnTest.java
│ │ │ │ ├── enums/
│ │ │ │ │ └── EnumWithConstructorTest.java
│ │ │ │ ├── equalsmocking/
│ │ │ │ │ └── EqualsMockingTest.java
│ │ │ │ ├── finalmocking/
│ │ │ │ │ ├── MockFinalMethodsCases.java
│ │ │ │ │ └── MockFinalNonStaticMethodsTest.java
│ │ │ │ ├── getannotation/
│ │ │ │ │ └── GetAnnotationTest.java
│ │ │ │ ├── getclass/
│ │ │ │ │ └── GetClassTest.java
│ │ │ │ ├── hashcode/
│ │ │ │ │ ├── HashCodeTest.java
│ │ │ │ │ └── InnerClassHashCodeTest.java
│ │ │ │ ├── jacoco/
│ │ │ │ │ ├── InstanceMethods.java
│ │ │ │ │ ├── JacocoCoverageTest.java
│ │ │ │ │ ├── StaticMethods.java
│ │ │ │ │ └── TargetTest.java
│ │ │ │ ├── largemethod/
│ │ │ │ │ └── LargeMethodTest.java
│ │ │ │ ├── membermodification/
│ │ │ │ │ └── MemberModificationExampleTest.java
│ │ │ │ ├── nested/
│ │ │ │ │ └── NestedClassDefinedInsideTestCaseTest.java
│ │ │ │ ├── partialmocking/
│ │ │ │ │ ├── PartialMockingExampleTest.java
│ │ │ │ │ ├── PartialMockingRetainsStateTest.java
│ │ │ │ │ ├── PrivatePartialMockingExampleTest.java
│ │ │ │ │ └── StaticPartialMockingTest.java
│ │ │ │ ├── privatemocking/
│ │ │ │ │ ├── PrivateInstanceMockingCases.java
│ │ │ │ │ └── PrivateInstanceMockingTest.java
│ │ │ │ ├── proxymethod/
│ │ │ │ │ └── ProxyMethodTest.java
│ │ │ │ ├── simplemix/
│ │ │ │ │ └── SimpleMixTest.java
│ │ │ │ ├── spy/
│ │ │ │ │ └── SpyTest.java
│ │ │ │ ├── stacktracecleaner/
│ │ │ │ │ ├── LocationFromStackTraceTest.java
│ │ │ │ │ └── SomethingWithStaticMethod.java
│ │ │ │ ├── staticandinstance/
│ │ │ │ │ └── StaticAndInstanceDemoTest.java
│ │ │ │ ├── staticmocking/
│ │ │ │ │ ├── MockStaticCases.java
│ │ │ │ │ └── MockStaticTest.java
│ │ │ │ ├── stress/
│ │ │ │ │ └── PowerMockStressTest.java
│ │ │ │ ├── system/
│ │ │ │ │ ├── ServiceLoaderTest.java
│ │ │ │ │ └── SystemClassUserTest.java
│ │ │ │ ├── tostring/
│ │ │ │ │ └── ToStringTest.java
│ │ │ │ ├── verify/
│ │ │ │ │ ├── VerifyNoMoreInteractionsTest.java
│ │ │ │ │ └── VerifyZeroInteractionsTest.java
│ │ │ │ ├── whennew/
│ │ │ │ │ ├── DoesntSupportCreatingMocksInFieldsWhenNewDefect.java
│ │ │ │ │ ├── NewFileExampleTest.java
│ │ │ │ │ ├── VerifyNewMultipleTimesTest.java
│ │ │ │ │ ├── VerifyNewWithoutWhenNewTest.java
│ │ │ │ │ ├── WhenNewCases.java
│ │ │ │ │ ├── WhenNewCases.java.orig
│ │ │ │ │ └── WhenNewTest.java
│ │ │ │ └── withsettings/
│ │ │ │ └── WithSettingsTest.java
│ │ │ └── resources/
│ │ │ └── org/
│ │ │ └── powermock/
│ │ │ └── extensions/
│ │ │ └── configuration.properties
│ │ ├── junit4-agent/
│ │ │ └── src/
│ │ │ └── test/
│ │ │ └── java/
│ │ │ └── samples/
│ │ │ └── powermockito/
│ │ │ └── junit4/
│ │ │ └── agent/
│ │ │ ├── AnnotationUsageTest.java
│ │ │ ├── AssertPowerMockRuleDelagatesToOtherRulesTest.java
│ │ │ ├── LargeMethodTest.java
│ │ │ ├── MemberModificationExampleTest.java
│ │ │ ├── MockFinalNonStaticMethodsTest.java
│ │ │ ├── MockFinalUsingAnnotationsTest.java
│ │ │ ├── MockStaticTest.java
│ │ │ ├── MockStaticWithPrivateCtorTest.java
│ │ │ ├── PrivateInstanceMockingTest.java
│ │ │ ├── StubMethodTest.java
│ │ │ ├── SuppressConstructorDemoTest.java
│ │ │ ├── SuppressConstructorHierarchyDemoTest.java
│ │ │ ├── SystemClassUserTest.java
│ │ │ ├── WhenNewTest.java
│ │ │ └── github512/
│ │ │ ├── Github512Test.java
│ │ │ └── package-info.java
│ │ ├── junit4-delegate/
│ │ │ └── src/
│ │ │ └── test/
│ │ │ └── java/
│ │ │ └── powermock/
│ │ │ └── modules/
│ │ │ └── test/
│ │ │ └── mockito/
│ │ │ └── junit4/
│ │ │ └── delegate/
│ │ │ ├── EnclosedTest.java
│ │ │ ├── JUnitParamsTest.java
│ │ │ ├── MultipleConstructorsTest.java
│ │ │ ├── SelfieTest.java
│ │ │ ├── SubclassDelegateTest.java
│ │ │ ├── SuperClass.java
│ │ │ ├── SuppressedMethod.java
│ │ │ ├── SuppressedMethodStubbing.java
│ │ │ ├── SystemClassUserCases.java
│ │ │ ├── SystemClassUserMethod.java
│ │ │ ├── WhenNewCaseMethod.java
│ │ │ └── parameterized/
│ │ │ ├── FinalDemoTest.java
│ │ │ ├── MockFinalUsingAnnotationsTest.java
│ │ │ ├── StubMethodTest.java
│ │ │ ├── SuppressConstructorDemoTest.java
│ │ │ ├── SuppressConstructorHierarchyDemoTest.java
│ │ │ ├── SupressMethodExampleTest.java
│ │ │ ├── SystemClassUserTest.java
│ │ │ └── WhenNewTest.java
│ │ ├── junit4-rule-objenesis/
│ │ │ └── src/
│ │ │ └── test/
│ │ │ └── java/
│ │ │ └── samples/
│ │ │ └── powermockito/
│ │ │ └── junit4/
│ │ │ └── rule/
│ │ │ └── objenesis/
│ │ │ ├── Foo.java
│ │ │ ├── MockFinalNonStaticMethodsTest.java
│ │ │ ├── MockStaticTest.java
│ │ │ ├── PowerMockRuleTest.java
│ │ │ ├── PrivateInstanceMockingTest.java
│ │ │ ├── StaticInitializerExampleTest.java
│ │ │ ├── SystemClassUserTest.java
│ │ │ ├── WhenNewTest.java
│ │ │ └── bugs/
│ │ │ └── github512/
│ │ │ ├── Github512Test.java
│ │ │ └── package-info.java
│ │ ├── junit4-rule-xstream/
│ │ │ └── src/
│ │ │ └── test/
│ │ │ └── java/
│ │ │ └── samples/
│ │ │ └── powermockito/
│ │ │ └── junit4/
│ │ │ └── rule/
│ │ │ └── xstream/
│ │ │ ├── AssertPowerMockRuleDelagatesToOtherRulesTest.java
│ │ │ ├── Foo.java
│ │ │ ├── MockFinalNonStaticMethodsTest.java
│ │ │ ├── MockStaticTest.java
│ │ │ ├── PowerMockRuleTest.java
│ │ │ ├── PrivateInstanceMockingTest.java
│ │ │ ├── StaticInitializerExampleTest.java
│ │ │ ├── SystemClassUserTest.java
│ │ │ ├── WhenNewTest.java
│ │ │ └── github512/
│ │ │ ├── Github512Test.java
│ │ │ └── package-info.java
│ │ ├── junit49/
│ │ │ └── src/
│ │ │ └── test/
│ │ │ └── java/
│ │ │ └── samples/
│ │ │ └── powermockito/
│ │ │ └── junit4/
│ │ │ └── rules/
│ │ │ └── JUnit49RuleTest.java
│ │ └── testng/
│ │ ├── src/
│ │ │ └── test/
│ │ │ └── java/
│ │ │ └── samples/
│ │ │ ├── powermockito/
│ │ │ │ └── testng/
│ │ │ │ └── staticmocking/
│ │ │ │ ├── MockStaticNotPreparedTest.java
│ │ │ │ ├── MockStaticPreparedWithoutMockStaticTest.java
│ │ │ │ └── MockitoMockStaticTest.java
│ │ │ └── testng/
│ │ │ └── bugs/
│ │ │ └── github656/
│ │ │ ├── GitHub656Test.java
│ │ │ └── package-info.java
│ │ └── suite.xml
│ ├── testng/
│ │ ├── src/
│ │ │ └── test/
│ │ │ └── java/
│ │ │ └── samples/
│ │ │ └── testng/
│ │ │ ├── SimpleBaseTest.java
│ │ │ └── bugs/
│ │ │ └── github647/
│ │ │ ├── GitHub647.java
│ │ │ ├── SkipExceptionTest.java
│ │ │ └── SomeClass.java
│ │ └── suite.xml
│ └── utils/
│ └── src/
│ └── main/
│ └── java/
│ ├── org/
│ │ └── powermock/
│ │ └── api/
│ │ └── mockito/
│ │ ├── ConfigurationTestUtils.java
│ │ └── MockitoVersion.java
│ └── samples/
│ ├── Service.java
│ ├── abstractmocking/
│ │ └── AbstractMethodMocking.java
│ ├── annotationbased/
│ │ ├── AnnotatedClassDemo.java
│ │ ├── AnnotationDemo.java
│ │ └── testannotations/
│ │ └── RuntimeAnnotation.java
│ ├── anonymousmocking/
│ │ ├── MyAbstractClass.java
│ │ └── StupidAnonymous.java
│ ├── argumentmatcher/
│ │ └── ArgumentMatcherDemo.java
│ ├── classhierarchy/
│ │ ├── ChildA.java
│ │ ├── ChildB.java
│ │ └── Parent.java
│ ├── classwithinnermembers/
│ │ └── ClassWithInnerMembers.java
│ ├── constructor/
│ │ ├── PrivateConstructorDemo.java
│ │ ├── PrivateConstructorInstantiationDemo.java
│ │ ├── PublicConstructorDemo.java
│ │ └── PublicConstructorWithDependencyDemo.java
│ ├── constructorargs/
│ │ └── ConstructorArgsDemo.java
│ ├── enummocking/
│ │ ├── AnotherSomeObjectInterfaceImpl.java
│ │ ├── EnumWithConstructor.java
│ │ ├── MyEnum.java
│ │ ├── SomeObjectInterface.java
│ │ └── SomeObjectInterfaceImpl.java
│ ├── equalswithgetclass/
│ │ └── EqualsWithGetClass.java
│ ├── expectnew/
│ │ ├── CreationException.java
│ │ ├── ExpectNewDemo.java
│ │ ├── ExpectNewOfFinalSystemClassDemo.java
│ │ ├── ExpectNewServiceUser.java
│ │ ├── ExpectNewWithMultipleCtorDemo.java
│ │ ├── ITarget.java
│ │ ├── MultiConstructor.java
│ │ ├── NewFileExample.java
│ │ ├── PrimitiveAndWrapperDemo.java
│ │ ├── PrimitiveAndWrapperUser.java
│ │ ├── SimpleVarArgsConstructorDemo.java
│ │ ├── Target.java
│ │ └── VarArgsConstructorDemo.java
│ ├── expectvoid/
│ │ └── ExpectVoidDemo.java
│ ├── fieldmock/
│ │ └── FieldInitializerDemo.java
│ ├── finalmocking/
│ │ ├── FinalDemo.java
│ │ ├── HoldingFinalDemo.java
│ │ └── StaticHoldingFinalDemo.java
│ ├── hashcode/
│ │ └── HashCodeInitializedInCtor.java
│ ├── injectmocks/
│ │ ├── DependencyHolder.java
│ │ ├── DependencyHolderQualifier.java
│ │ ├── InjectDemo.java
│ │ ├── InjectDependencyHolder.java
│ │ └── InjectDependencyHolderQualifier.java
│ ├── innerclassmocking/
│ │ ├── ClassWithNonPrivateInnerClass.java
│ │ └── ClassWithPrivateInnerClass.java
│ ├── interfacefieldchange/
│ │ └── InterfaceWithStaticFinalField.java
│ ├── interfacemethodfinding/
│ │ ├── InterfaceMethodHierarchyUsage.java
│ │ └── WsUtil.java
│ ├── java/
│ │ └── ClassInsideJavaPackage.java
│ ├── largemethod/
│ │ └── MethodExceedingJvmLimit.java
│ ├── methodhierarchy/
│ │ ├── MethodInvocationDemo.java
│ │ ├── MethodInvocationDemoGrandParent.java
│ │ └── MethodInvocationDemoParent.java
│ ├── mockpolicy/
│ │ ├── ResultCalculator.java
│ │ ├── SimpleClassWithADependency.java
│ │ ├── SomeClassWithAMethod.java
│ │ ├── SomeClassWithAMethodParent.java
│ │ └── frameworkexample/
│ │ ├── NativeResult.java
│ │ ├── SimpleFramework.java
│ │ └── SimpleFrameworkUser.java
│ ├── nativemocking/
│ │ ├── NativeMockingSample.java
│ │ └── NativeService.java
│ ├── newmocking/
│ │ ├── MyClass.java
│ │ ├── NewDemo.java
│ │ ├── SomeDependency.java
│ │ └── StupidNew.java
│ ├── nice/
│ │ └── NiceDemo.java
│ ├── overloading/
│ │ ├── OverloadedMethodsExample.java
│ │ ├── OverloadingDemo.java
│ │ ├── StaticAndInstanceMethodWithSameName.java
│ │ └── StaticAndInstanceMethodWithSameNameUser.java
│ ├── packageprivate/
│ │ └── PackagePrivateClass.java
│ ├── partialmocking/
│ │ ├── MockSelfDemo.java
│ │ ├── MockSelfDemoSubClass.java
│ │ ├── MockSelfDemoWithSubClass.java
│ │ ├── MockSelfWithNoDefaultConstructorDemo.java
│ │ ├── MockWithStaticStateDemo.java
│ │ ├── PartialMockingExample.java
│ │ ├── PartialMockingWithConstructor.java
│ │ └── PrivatePartialMockingExample.java
│ ├── powermockignore/
│ │ └── PowerMockIgnoreDemo.java
│ ├── privateandfinal/
│ │ ├── PrivateFinal.java
│ │ └── PrivateFinalOverload.java
│ ├── privatefield/
│ │ ├── MockSelfPrivateFieldServiceClass.java
│ │ └── SimplePrivateFieldServiceClass.java
│ ├── privatemocking/
│ │ └── PrivateMethodDemo.java
│ ├── reflection/
│ │ ├── ReflectionInstantiator.java
│ │ ├── UseMe.java
│ │ └── UseMeInterface.java
│ ├── rule/
│ │ ├── SimpleThing.java
│ │ ├── SimpleThingCreator.java
│ │ ├── SimpleThingImpl.java
│ │ └── ThingToTest.java
│ ├── servletmocking/
│ │ └── SampleServlet.java
│ ├── simplemix/
│ │ ├── SimpleMix.java
│ │ ├── SimpleMixCollaborator.java
│ │ ├── SimpleMixConstruction.java
│ │ └── SimpleMixUtilities.java
│ ├── simplereturn/
│ │ ├── SimpleReturnExample.java
│ │ └── SimpleReturnExampleUser.java
│ ├── singleton/
│ │ ├── SimpleStaticService.java
│ │ ├── StaticExample.java
│ │ ├── StaticHelper.java
│ │ ├── StaticService.java
│ │ └── StaticWithPrivateCtor.java
│ ├── spy/
│ │ └── SpyObject.java
│ ├── staticandinstance/
│ │ ├── StaticAndInstanceDemo.java
│ │ └── StaticAndInstanceWithConstructorCodeDemo.java
│ ├── staticinitializer/
│ │ ├── AbstractStaticInitializerExample.java
│ │ ├── EvilStaticInitializerExample.java
│ │ ├── InterfaceComputation.java
│ │ ├── SimpleStaticInitializerExample.java
│ │ └── StaticInitializerExample.java
│ ├── stress/
│ │ ├── ClassWithStatic.java
│ │ └── StressSample.java
│ ├── strict/
│ │ └── StrictDemo.java
│ ├── suppressconstructor/
│ │ ├── AppaleList.java
│ │ ├── InvokeConstructor.java
│ │ ├── SuppressConstructorDemo.java
│ │ ├── SuppressConstructorHeirarchyEvilGrandParent.java
│ │ ├── SuppressConstructorHierarchy.java
│ │ ├── SuppressConstructorHierarchyParent.java
│ │ ├── SuppressConstructorSubclassDemo.java
│ │ ├── SuppressNonParentConstructorDemo.java
│ │ └── SuppressSpecificConstructorDemo.java
│ ├── suppresseverything/
│ │ └── SuppressEverything.java
│ ├── suppressfield/
│ │ ├── DomainObject.java
│ │ ├── ItemRepository.java
│ │ └── SuppressField.java
│ ├── suppressmethod/
│ │ ├── SuppressMethod.java
│ │ ├── SuppressMethodExample.java
│ │ └── SuppressMethodParent.java
│ ├── swing/
│ │ ├── ReallySimpleSwingDemo.java
│ │ └── SimpleSwingDemo.java
│ ├── system/
│ │ └── SystemClassUser.java
│ └── whitebox/
│ └── ClassWithPowerMockGeneratedConstructor.java
└── version.properties
================================================
FILE CONTENTS
================================================
================================================
FILE: .github/ISSUE_TEMPLATE.md
================================================
Hey there and thank you for using PowerMock
Please read the following tips before filing an issue:
Is this something you can debug and fix?
-------------------------------------------------------
Can you see anything in the logs? Can you debug why this happens? **Send a pull request**! Bug fixes and documentation fixes are very welcome.
Is this question about PowerMock usage?
---------------------------------------
The better way to ask question:
* The PowerMock [mailing-list](https://groups.google.com/forum/#!forum/powermock/)
* [Stackoverflow](http://stackoverflow.com/questions/tagged/powermock) with the tag 'powermock'. (Make sure you **include a short code snippet to demonstrate the problem** and if you have an exception then make sure **include stack trace**.)
None of the above, want to create a GitHub issue
------------------------------------------------------------------
Issues should always have a [Short, Self Contained, Correct (Compilable)](http://sscce.org), Example (same as any question on stackoverflow.com)
In order to help us to clarify issue can you answer the following question:
What steps will reproduce the problem?
What is the expected output?
What do you see instead?
What version of the product are you using?
================================================
FILE: .github/dependabot.yml
================================================
version: 2
updates:
- package-ecosystem: "gradle"
directory: "/"
schedule:
interval: "weekly"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
================================================
FILE: .github/workflows/gradle-wrapper-validation.yml
================================================
name: "Validate Gradle Wrapper"
on: [push, pull_request]
jobs:
validation:
name: "Gradle wrapper validation"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: gradle/wrapper-validation-action@v1
================================================
FILE: .gitignore
================================================
target
*.iws
*.ipr
*.iml
.classpath
.project
.settings
.springBeans
repo
.idea
**/build/**
.gradle
**/out/**
**/classes/**
**/bin/**
================================================
FILE: .travis.yml
================================================
# More details on how to configure the Travis build
# https://docs.travis-ci.com/user/customizing-the-build/
# Speed up build by leveraging travis caches
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
# Note that OracleJDK 9 is available for jdk_switcher only on Trusty.
# https://github.com/travis-ci/travis-ci/issues/7253#issuecomment-283671037
dist: trusty
group: edge
language: java
matrix:
include:
- jdk: oraclejdk8
env:
- SKIP_RELEASE=true
- powermock.byte-code-framework=Javassist
- jdk: oraclejdk9
env:
- SKIP_RELEASE=true
- powermock.byte-code-framework=Javassist
- jdk: oraclejdk8
#Below skips the installation step completely (https://docs.travis-ci.com/user/customizing-the-build/#Skipping-the-Installation-Step)
#We need it because otherwise Travis CI injects an awkward './gradlew assemble' step into the CI workflow
#We want to control and decide what Gradle tasks are executed
install:
- true
script:
# We are using && below on purpose
# ciPerformRelease must run only when the entire build has completed
# This guarantees that no release steps are executed when the build or tests fail
- ./gradlew assemble -s -PcheckJava6Compatibility && ./gradlew -i -s check && ./gradlew -i ciPerformRelease
================================================
FILE: CONTRIBUTING.md
================================================
# Contributing to PowerMock #
First of all, thank you for considering contributing to PowerMock. Please, read the guideline before start. Following these guidelines helps to communicate that you respect the time of the developers managing and developing PowerMock.
## Content ##
* [If looking for support](#if-looking-for-support)
* [Pull request criteria](#pull-request-criteria)
* [General info](#general-info)
* [More on pull requests](#more-on-pull-requests)
## If looking for support ##
Search / Ask question on [stackoverflow](https://stackoverflow.com/questions/tagged/powermock)
Go to the PowerMock [mailing-list](https://groups.google.com/forum/#!forum/powermock/) (moderated)
Issues should always have a [Short, Self Contained, Correct (Compilable)](http://sscce.org), Example (same as any question on stackoverflow.com)
## Pull request criteria ##
* At least one commit message in the PR starts with Fixes #id : where id is an [issue tracker](https://github.com/powermock/powermock/issues) id. This allows track release notes. Also GitHub will track the issue and [close it](https://github.com/blog/1386-closing-issues-via-commit-messages) when the PR is merged.
* Use `@since` tags for new public APIs
* Include tests
* Document public APIs with examples
* PowerMock provides two APIs: EasyMock and Mockito. If you add a new feature, please follow the same API style as the mocking framework which API you extend.
* For new features consider adding new documentation item in `PowerMock`/`PowerMockito` class.
* Also, look at the [GitHub's Pull Request guide](https://github.com/blog/1943-how-to-write-the-perfect-pull-request)
## General info ##
* Comment on issues or pull requests
* If you know the answer to a question posted to our mailing list - don't hesitate to write a reply. That helps us a lot.
* Also, don't hesitate to ask questions on the mailing list - that helps us improve javadocs/FAQ.
* Please suggest changes to javadoc/exception messages when you find something unclear.
* If you miss a particular feature in PowerMock - browse or ask on the mailing list, show us a sample code and describe the problem.
* Wondering what to work on? See task/bug labeled with ["for new contributors"](https://github.com/powermock/powermock/issues?q=is%3Aopen+is%3Aissue+label%3A%22for+new+contributors%22). Remember that some feature requests we somewhat not agree with so not everything we want to work on.
* PowerMock currently uses GitHub for deployment, so you can create a fork of PowerMock. Go to the github project and "Create your own fork". Create a new branch, commit, ..., when you're ready raise a your pull request.
* Note the project now uses gradle, when your Gradle install is ready, make your IDE project's files (for example gradle idea). Other gradle commands are listed via gradle tasks.
## More on pull requests ##
* On pull requests, please document the change, what it brings, what is the benefit.
* **Clean commit history** in the topic branch in your fork of the repository, even during review. That means that commits are _rebased_ and _squashed_ if necessary, so that each commit clearly changes one things and there are no extraneous fix-ups.
For that matter it's possible to commit [_semantic_ changes](http://lemike-de.tumblr.com/post/79041908218/semantic-commits). _Tests are an asset, so is history_.
_Exemple gratia_:
```
Fixes #777 : The new feature
Fixes #777 : Refactors this part of PowerMock to make feature possible
```
* In the code, always test your feature / change, in unit tests and in our acceptance test suite located in [tests](https://github.com/powermock/powermock/tree/master/tests) module. Older tests will be migrated when a test is modified.
* New test methods should follow a snake case convention (`ensure_that_stuff_is_doing_that`), this allows the test name to be fully expressive on intent while still readable.
* Documentation !!! Always document the public API with love. Internals could use some love too but it's argubly not as important. In all cases the code should _auto-document_ itself like any [well designed API](rebased and squashed if necessary, so that each commit clearly changes one things and there are no extraneous fix-ups).
* We use (4) spaces instead of tabs. Make sure line ending is Unix style (LF). More on line ending on the [Github help](https://help.github.com/articles/dealing-with-line-endings/).
================================================
FILE: LICENSE.txt
================================================
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright 2007-2017 PowerMock Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
================================================
FILE: README.md
================================================

[](https://travis-ci.org/powermock/powermock)
[](https://maven-badges.herokuapp.com/maven-central/org.powermock/powermock-core)
[  ](https://bintray.com/powermock/maven/powermock/_latestVersion)
[](http://www.javadoc.io/doc/org.powermock/powermock-core)
Writing unit tests can be hard and sometimes good design has to be sacrificed for the sole purpose of testability. Often testability corresponds to good design, but this is not always the case. For example final classes and methods cannot be used, private methods sometimes need to be protected or unnecessarily moved to a collaborator, static methods should be avoided completely and so on simply because of the limitations of existing frameworks.
PowerMock is a framework that extends other mock libraries such as EasyMock with more powerful capabilities. PowerMock uses a custom classloader and bytecode manipulation to enable mocking of static methods, constructors, final classes and methods, private methods, removal of static initializers and more. By using a custom classloader no changes need to be done to the IDE or continuous integration servers which simplifies adoption. Developers familiar with the supported mock frameworks will find PowerMock easy to use, since the entire expectation API is the same, both for static methods and constructors. PowerMock aims to extend the existing API's with a small number of methods and annotations to enable the extra features. Currently PowerMock supports EasyMock and Mockito.
When writing unit tests it is often useful to bypass encapsulation and therefore PowerMock includes several features that simplifies reflection specifically useful for testing. This allows easy access to internal state, but also simplifies partial and private mocking.
Please note that PowerMock is mainly intended for people with expert knowledge in unit testing. Putting it in the hands of junior developers may cause more harm than good.
## News
* 2019-04-21: PowerMock 2.0.2 has been released and is avaliable in Maven Central. The release includes fixes for [issue](https://github.com/powermock/powermock/issues/979) with PowerMock JavaAgent and the latest JDK and a [security issue](https://github.com/powermock/powermock/issues/973) with the build script.
* 2019-01-07: PowerMock 2.0.0 has been released. Main changes: offical supporting Mockito 2.x and dropping supporting Mockito 1.x. This release also supports Java 9. Other change read in [release notes](https://github.com/powermock/powermock/releases/tag/powermock-2.0.0).
* 2017-08-12: PowerMock 1.7.1 has been released with one, but significant change: the old API for verifying static mock has been deprecated and a new one has been added. Old API will be removed in version PowerMock 2.0 due to incompatibility with Mockito Public API.
* 2017-06-16: PowerMock 1.7.0 has been released with support for Mockito 2 (not only beta versions) and new features such as global `@PowerMockIgnore` as well as bug fixes and other improvements. See [release notes](https://github.com/powermock/powermock/releases/tag/powermock-1.7.0) and [change log](https://raw.githubusercontent.com/powermock/powermock/master/docs/changelog.txt) for details.
* 2017-02-03: Johan blogs about how to mock slf4j with PowerMock at his [blog](http://code.haleby.se/2017/02/03/a-case-for-powermock/)
[Older News](https://github.com/powermock/powermock/wiki/OldNews)
## Documentation
* [Getting Started](https://github.com/powermock/powermock/wiki/Getting-Started)
* [Downloads](https://github.com/powermock/powermock/wiki/Downloads)
* [Motivation](https://github.com/powermock/powermock/wiki/Motivation)
* Javadoc
* [EasyMock API extension](http://www.javadoc.io/doc/org.powermock/powermock-api-easymock/1.7.0) ([PowerMock class](http://static.javadoc.io/org.powermock/powermock-api-easymock/1.7.0/org/powermock/api/easymock/PowerMock.html))
* [Mockito API extension](http://www.javadoc.io/doc/org.powermock/powermock-api-mockito/1.7.0) ([PowerMockito class](http://static.javadoc.io/org.powermock/powermock-api-mockito/1.7.0/org/powermock/api/mockito/PowerMockito.html))
* [Mockito2 API extension](http://www.javadoc.io/doc/org.powermock/powermock-api-mockito2/1.7.0) ([PowerMockito class](http://static.javadoc.io/org.powermock/powermock-api-mockito2/1.7.0/org/powermock/api/mockito/PowerMockito.html))
* [PowerMock Reflect](http://www.javadoc.io/doc/org.powermock/powermock-reflect/1.7.0) ([Whitebox class](http://static.javadoc.io/org.powermock/powermock-reflect/1.7.0/org/powermock/reflect/Whitebox.html))
* Common
* [PowerMock Configuration](https://github.com/powermock/powermock/wiki/PowerMock-Configuration)
* [Bypass Encapsulation](https://github.com/powermock/powermock/wiki/Bypass-Encapsulation)
* [Suppress Unwanted Behavior](https://github.com/powermock/powermock/wiki/Suppress-Unwanted-Behavior)
* [Test Listeners](https://github.com/powermock/powermock/wiki/Test-Listeners)
* [Mock Policies](https://github.com/powermock/powermock/wiki/Mock-Policies)
* [Mock system classes](https://github.com/powermock/powermock/wiki/Mock-System)
* [EasyMock](https://github.com/powermock/powermock/wiki/EasyMock)
* [Mockito](https://github.com/powermock/powermock/wiki/Mockito)
* [TestNG](https://github.com/powermock/powermock/wiki/TestNG)
* [Delegate to another JUnit Runner](https://github.com/powermock/powermock/wiki/JUnit_Delegating_Runner)
* [Bootstrap using a JUnit Rule](https://github.com/powermock/powermock/wiki/PowerMockRule)
* [Bootstrap using a Java Agent](https://github.com/powermock/powermock/wiki/PowerMockAgent)
* [OSGi](https://github.com/powermock/powermock/wiki/osgi)
* [Release Notes](https://github.com/powermock/powermock/wiki/ReleaseNotes)
* [FAQ](https://github.com/powermock/powermock/wiki/FAQ)
## Contributing to PowerMock
Please, read [the guideline](CONTRIBUTING.md) for a new contributor before start.
### Support and discussion
Join the mailing-list [here](http://groups.google.com/group/powermock) for questions, feedback and support.
================================================
FILE: build.gradle
================================================
buildscript {
repositories {
mavenCentral()
jcenter()
maven {
url 'https://repo.spring.io/plugins-release'
}
maven {
url 'https://plugins.gradle.org/m2/'
}
}
dependencies {
classpath 'org.springframework.build.gradle:propdeps-plugin:0.0.7'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
classpath 'net.researchgate:gradle-release:2.4.0'
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.4'
classpath 'org.shipkit:shipkit:2.3.4'
classpath 'ru.vyarus:gradle-animalsniffer-plugin:1.4.1'
}
}
ext{
gradleScriptDir = "${rootProject.projectDir}/gradle"
byteBuddy = "1.12.7"
easymockVersion = "4.0.1"
hamcrestVersion = "1.3"
assertjVersion = "2.6.0"
cglibVersion = "3.2.9"
objenesisVersion = "3.2"
javassistVersion = "3.27.0-GA"
junitVersion = "4.12"
junitRulesVersion = "4.8.2"
testngVersion = "6.9.10"
xstreamVersion = "1.4.10"
mockitoVersion = "4.3.1"
servletVersion = "2.5"
jacocoVersion = "0.7.7.201606060606"
eclipseJdt = "3.3.0-v_771"
checkstyleVersion= "7.6.1"
systemRulesVersion="1.18.0"
}
apply plugin: 'org.shipkit.java'
description = 'PowerMock allows you to unit test code normally regarded as untestable.\n' +
' For instance it is possible to mock static methods, remove static initializers, allow mocking without dependency\n' +
' injection and more.\n' +
' PowerMock works by bytecode manipulation.\n' +
' PowerMock also contain some utilities that gives you easier access to an objects internal state.\n' +
' PowerMock can be used to test otherwise untestable code and also to achieve a cleaner separation between test\n' +
' and production code.'
apply from: "${gradleScriptDir}/version.gradle"
allprojects{
apply plugin: 'propdeps-idea'
}
apply from: "${gradleScriptDir}/modules.gradle"
jar{
enabled = false
}
task wrapper(type: Wrapper) {
gradleVersion = '4.10.2'
}
================================================
FILE: config/checkstyle/checkstyle.xml
================================================
<?xml version="1.0"?>
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.3//EN" "http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
<module name="Checker">
<module name="UniqueProperties"/>
<module name="Translation"/>
<module name="TreeWalker">
<module name="MissingOverride"/>
<module name="StringLiteralEquality"/>
<module name="ParenPad">
<property name="tokens" value="LITERAL_WHILE, ENUM_CONSTANT_DEF, EXPR, LITERAL_DO, QUESTION, LITERAL_CATCH, ANNOTATION_FIELD_DEF, LITERAL_FOR, CTOR_CALL, LITERAL_SWITCH, RESOURCE_SPECIFICATION, LITERAL_SYNCHRONIZED, LAMBDA"/>
</module>
<module name="UnnecessaryParentheses">
<property name="tokens" value="STAR_ASSIGN, MINUS_ASSIGN, LITERAL_FALSE, BAND_ASSIGN, NUM_LONG, DIV_ASSIGN, NUM_DOUBLE, ASSIGN, MOD_ASSIGN, STRING_LITERAL, SR_ASSIGN, SL_ASSIGN, LITERAL_NULL, LITERAL_TRUE, NUM_INT, NUM_FLOAT, PLUS_ASSIGN, BXOR_ASSIGN, BSR_ASSIGN"/>
</module>
<module name="OuterTypeFilename"/>
<module name="NoLineWrap"/>
<module name="HiddenField">
<property name="ignoreConstructorParameter" value="true"/>
<property name="ignoreSetter" value="true"/>
<property name="tokens" value="LAMBDA"/>
</module>
<module name="MutableException"/>
<module name="RightCurly">
<property name="tokens" value="LITERAL_ELSE, LITERAL_FINALLY"/>
</module>
<module name="OuterTypeNumber">
<property name="max" value="4"/>
</module>
<module name="NoFinalizer"/>
<module name="EmptyLineSeparator">
<property name="allowNoEmptyLineBetweenFields" value="true"/>
<property name="tokens" value="INSTANCE_INIT, ENUM_DEF, STATIC_INIT"/>
</module>
<module name="InterfaceTypeParameterName"/>
<module name="CovariantEquals"/>
<module name="NestedForDepth"/>
<module name="RedundantModifier">
<property name="tokens" value="INTERFACE_DEF, ANNOTATION_FIELD_DEF, ENUM_DEF, RESOURCE"/>
</module>
<module name="AbstractClassName">
<property name="ignoreModifier" value="true"/>
<property name="ignoreName" value="true"/>
</module>
<module name="ConstantName">
<property name="applyToPackage" value="false"/>
<property name="applyToPrivate" value="false"/>
</module>
<module name="ThrowsCount"/>
<module name="AnnotationLocation">
<property name="allowSamelineMultipleAnnotations" value="true"/>
<property name="tokens" value="IMPLEMENTS_CLAUSE, INTERFACE_DEF, TYPECAST, PARAMETER_DEF, CTOR_DEF, VARIABLE_DEF, LITERAL_NEW, ANNOTATION_FIELD_DEF, LITERAL_THROWS, ENUM_DEF, ANNOTATION_DEF, CLASS_DEF, DOT, TYPE_ARGUMENT"/>
</module>
<module name="AnonInnerLength">
<property name="max" value="60"/>
</module>
<module name="NoWhitespaceAfter">
<property name="tokens" value="LNOT, INC, DOT, UNARY_MINUS, ARRAY_DECLARATOR, INDEX_OP, DEC, UNARY_PLUS, BNOT"/>
</module>
<module name="NoWhitespaceBefore">
<property name="tokens" value="POST_DEC, GENERIC_END, COMMA, POST_INC"/>
</module>
<module name="StaticVariableName">
<property name="applyToPublic" value="false"/>
<property name="applyToPrivate" value="false"/>
</module>
<module name="NeedBraces">
<property name="allowSingleLineStatement" value="true"/>
<property name="tokens" value="LITERAL_DO, LITERAL_WHILE, LAMBDA"/>
</module>
<module name="AvoidEscapedUnicodeCharacters">
<property name="allowIfAllCharactersEscaped" value="true"/>
</module>
<module name="IllegalInstantiation"/>
<module name="PackageName"/>
<module name="LocalFinalVariableName">
<property name="tokens" value="PARAMETER_DEF"/>
</module>
<module name="AvoidStarImport">
<property name="allowClassImports" value="true"/>
<property name="allowStaticMemberImports" value="true"/>
</module>
<module name="ReturnCount">
<property name="max" value="5"/>
<property name="maxForVoid" value="3"/>
<property name="tokens" value="CTOR_DEF, LAMBDA"/>
</module>
<module name="ClassTypeParameterName"/>
<module name="TypecastParenPad"/>
<module name="EmptyForInitializerPad"/>
<module name="SeparatorWrap">
<property name="tokens" value="SEMI, RBRACK, COMMA, ARRAY_DECLARATOR, ELLIPSIS"/>
</module>
<module name="RequireThis"/>
<module name="SuperFinalize"/>
<module name="IllegalType">
<property name="tokens" value="METHOD_DEF, PARAMETER_DEF"/>
</module>
<module name="IllegalToken">
<property name="tokens" value="EOF, STAR_ASSIGN, DIV_ASSIGN, RESOURCES, MOD_ASSIGN, BSR_ASSIGN, TYPE_EXTENSION_AND, RESOURCE_SPECIFICATION, UNARY_PLUS, METHOD_REF, SL_ASSIGN, STRICTFP, RESOURCE, DOUBLE_COLON"/>
</module>
<module name="ParameterNumber">
<property name="max" value="8"/>
</module>
<module name="AbbreviationAsWordInName">
<property name="allowedAbbreviationLength" value="8"/>
</module>
<module name="PackageDeclaration">
<property name="matchDirectoryStructure" value="false"/>
</module>
<module name="DescendantToken"/>
<module name="BooleanExpressionComplexity">
<property name="max" value="7"/>
</module>
<module name="SuppressWarnings"/>
<module name="MethodParamPad">
<property name="tokens" value="METHOD_CALL, ENUM_CONSTANT_DEF, CTOR_DEF, LITERAL_NEW, SUPER_CTOR_CALL"/>
</module>
<module name="SuppressWarningsHolder"/>
<module name="RedundantImport"/>
<module name="MethodLength">
<property name="countEmpty" value="false"/>
<property name="tokens" value="CTOR_DEF"/>
</module>
<module name="EmptyBlock">
<property name="option" value="text"/>
<property name="tokens" value="LITERAL_DEFAULT, LITERAL_ELSE, LITERAL_CASE, LITERAL_DO, INSTANCE_INIT, LITERAL_FOR, ARRAY_INIT, LITERAL_IF, LITERAL_TRY, LITERAL_SWITCH, STATIC_INIT, LITERAL_FINALLY, LITERAL_SYNCHRONIZED"/>
</module>
<module name="MethodTypeParameterName"/>
<module name="IllegalTokenText"/>
<module name="PackageAnnotation"/>
<module name="UpperEll"/>
<module name="MemberName">
<property name="applyToPrivate" value="false"/>
</module>
<module name="NestedTryDepth">
<property name="max" value="2"/>
</module>
<module name="DefaultComesLast"/>
<module name="TypeName">
<property name="applyToPublic" value="false"/>
</module>
<module name="ImportOrder">
<property name="ordered" value="false"/>
</module>
<module name="SuperClone"/>
<module name="MethodName">
<property name="applyToPublic" value="false"/>
<property name="applyToPackage" value="false"/>
<property name="applyToPrivate" value="false"/>
</module>
<module name="ParameterName">
<property name="accessModifiers" value="protected, public, private"/>
</module>
<module name="ExecutableStatementCount">
<property name="max" value="50"/>
<property name="tokens" value="STATIC_INIT, CTOR_DEF, INSTANCE_INIT"/>
</module>
<module name="NoClone"/>
<module name="OperatorWrap">
<property name="tokens" value="STAR, BOR_ASSIGN, STAR_ASSIGN, MINUS_ASSIGN, BOR, EQUAL, BAND_ASSIGN, DIV_ASSIGN, DIV, MINUS, LAND, BXOR, QUESTION, LE, BSR, LT, COLON, GT, SL, BAND, GE, NOT_EQUAL, LITERAL_INSTANCEOF, MOD_ASSIGN, SR_ASSIGN, SR, TYPE_EXTENSION_AND, METHOD_REF, SL_ASSIGN, PLUS_ASSIGN, BXOR_ASSIGN, BSR_ASSIGN, MOD"/>
</module>
</module>
</module>
================================================
FILE: docs/changelog.txt
================================================
Change log 2.0.0
* PowerMockito changes:
** `verifyStatic` is replaced by `verifyStatic(Class)`
** `mockStatic` does not reset mocking process anymore. As result you may get the `UnfinishedVerificationException` or `UnfinishedStubbingException`
** Possible incapability due toString methods returns by default name of mocked.
Change log 1.7.1
* Fixed #832 Provide a new API for verifying static mock and deprecate old for Mockito
Change log 1.7.0
-----------------------------
* Added supporting Mockito 2.8.9 for PowerMock 2.x (thanks to Gregor Stamac @gstamac for pull request)
* Added supporting global ignore via configuration (issue # #801)
* Added supporting org.mockito.internal.creation.bytebuddy.InlineByteBuddyMockMaker via PowerMock configuration (issues #793, #774)
* Optimizations in powermock-reflect (thanks to Roman Leventov @leventov for pull request) (#724)
* Migrated from Maven to Gradle (#728)
* Implement #793 PowerMockMaker for Mockito 2: A new version of PowerMockMaker implemented. It does not conflict with Mockito MockMaker any more. Fix for #701 partially does not work any more, because ByteBuddy implementation of MockMaker always intercept calls to equals and return `true` only in case if passed object is the same instance of mocked object.
* Fixed issue #722 IllegalArgumentException is output to standard error (thanks to Kotaro Nanri @k-nanri for pull request)
* Fixed issue #717 Regression: MethodNotFoundException
* Fixed issue #731 No methods matching the name(s) get were found in the class hierarchy for interfaces
* Fixed issue #753 fix to upgrade code to be compatible with later versions of Mockito (thanks to emmaLP @emmaLP for pull request)
* Fixed issue #763 whenNew not matching constructor when null is passed as first or last argument. (thanks to @podarsmarty podarsmarty for pull request)
* Fixed issue #781 Call mocked equals static method instead of real (thanks to @Ilya-Gh Ilya Ghirici for pull request)
* Fixed issue #772: PowerMockIgnorePackagesExtractorImpl should visit interfaces. (thanks to François Jacques @hypnoce for pull request)
* Fixed issue with javax.xml and org.w3c. Previously when PowerMock was used with class which works with XML adding ``@PowerMockIgnore({"org.w3c.*", "javax.xml.*"})` was required. See examples: https://github.com/powermock/powermock-examples-maven/blob/master/spring-mockito-xml/src/test/java/org/powermock/examples/spring/mockito/SpringExampleTest.java
Change log 1.6.6 (2016-11-04)
-----------------------------
* Added support for setting private static final fields in Whitebox.setInternalState (thanks to Andrei Petcu @andreicristianpetcu for pull request)
* Added support for specifying constructor parameters for Mockito for whenNew case (Only mock specific calls to new #31)
* Fixed #668 @Mock fields are not injected anymore (1.6.5 regression)
* Fixed #676 Using Powermock with Roo/AspectJ gives NullPointerException (thanks to Sebastian Saip @ssaip for pull request)
* Fixed #656 TooManyActualInvocations when class is prepared for test.
* Fixed #695 ClassNotFoundException when loading cglib enhanced classes created by Spring
* Fixed Java 6 compatibility issue in org.powermock.utils.StringJoiner (which accidentally referenced Java 7 API's)
* Fixed #701 StackOverflowError mocking final class extending non-public abstract class overriding equals method
* Fixed #707 PowerMock should ignore and keep synthetic method/fields when modifies class
* Fixed #645 jacoco offline instrumentation incompatibility with powermock byte-code manipulation when using @SuppressStaticInitializationFor
* Fixed #704 PowerMockito 1.6.5 throws java.lang.SecurityException signer information mismatch
* Refactoring: Move ProxyFramework from api modules to `reflect` module.
* Renamed org.powermock.reflect.internal.WhiteboxImpl.getAllMetodsExcept to org.powermock.reflect.internal.WhiteboxImpl.getAllMethodsExcept (typo)
* Refactoring: Fix performance issues, fix error handling issues, remove unused imports, remove verbose or redundant code constructs. (thanks to Mykhailo Kovalskyi @kovalsky for pull request)
* Upgraded Assertj dependency from 3.4.1 to version 3.5.2
* Upgraded Javaassist dependency from 3.20.0-GA to version 3.21.0-GA
* Upgraded Objenesis dependency from 2.2 to version 3.4
Change log 1.6.5 (2016-04-30)
-----------------------------
* Add ability to chain returns with doReturn() (thanks to "gauee" for pull request) (issue #599)
* Code quality improvement, @Override annotation should be used on any method overriding (since Java 5) or implementing (since Java 6) another one
* PowerMockRunner now processes JUnit Rules correctly (thanks to Stefan Birkner for pull request) (issue 427)
* Added support for @TestSubject in EasyMock API. This is the equivalent of @InjectMocks in Mockito (big thanks to Arthur Zagretdinov for pull request)
* Added experimental support for mockito 2.x
* Ensuring JVM method size limit is never exceeded. Throw an user frendly exception if method size is exceeded. (thanks to Tomasz Przybyla for pull request) (issue #661)
* Fix #214: Whitebox.invokeConstructor may not work as expected with overloaded constructors
* Fix #352: PowerMockRunner should run tests defined in super class
* Fix #510: Static method mocking with Mockito 1.9.5 and Powermock fails with Java 8 Consumer Interface
* Fix #512: @PrepareForTest on method not working with PowerMockRule
* Fix #652: PowerMock stubbing void method don't work for overloaded methods
* Fix #648: TestNG SkipException doesn't work with PowerMock
* Fix #634/#632: Add workaround as fix for Mockito 1+. Wait fix from Mockito team for Mockito 2.
* Fix #590: suppress(method) doesn't work on a @Spy/PowerMockito.spy
* Upgraded commons-logging dependency to version 1.2
* Upgraded objenesis dependency to version 2.2
* Upgraded TestNG dependency to version 6.9.10.
* Upgraded xStream dependency to version 1.4.9.
* ASM for PowerMock Javaagent repackaged from new version 5.0.4
Change log 1.6.4 (2015-12-11)
-----------------------------
* DelegatingPowerMockRunner now implements Filterable interface to allow running for example individual test methods (thanks to chang-chao for pull request)
* Fixed jacoco/powermock integration issue (thanks to Evgeny Astafyev for pull request)
* Improvements to StackTraceCleanerProvider which cleans powermock classes from a stack trace
* Replaced usage of uberjar mockito-all with mockito-core (thanks to Petr Široký and René Scheibe for helping out)
* Code quality improvement, constructors only call non-overridable methods (thanks to Christian Ivan for pull request)
Change log 1.6.3 (2015-10-02)
----------------------------
* Mock name in @Mock(name="abc") annotations are no longer ignored for the Mockito API extension
* Fixed NPE in withArguments() constructor (thanks to Tomoyuki Saito for pull request)
* Upgraded Javassist dependency to version 3.20.0-GA.
* Using soft reference in classloader cache
* MockClassloader now extends Javassist Loader classloader to implement findClass etc
* PowerMock now works better with ByteBuddy (issue 579)
* This allows creating mocks in the applyInterceptionPolicy method of MockPolicy, which in turn allows using MockPolicy together with PowerMockRule (issue 581).
* Upgraded the powermock-easymock extension to use EasyMock 3.4
Change log 1.6.2 (2015-01-03)
----------------------------
* PowerMockRunnerDelegate annotation now uses @Inherited (thanks to Henrik Kaipe for pull request)
* Tests can now have multiple constructors (thanks to Henrik Kaipe for pull request)
* Cleanup pom files and added version numbers (thanks to René Scheibe for pull request)
* Fix "Test class can only have one constructor" issue that occurs when a JUnit or 3rd-party delegate runner (specified by a PowerMockRunnerDelegate annotation) can only deal with one public constructor. (thanks to Henrik Kaipe for pull request)
* Packaged some of the Mocktio classes internally since Mockito is moving from CgLib to ByteBuddy. (thanks to Brice Dutheil for the pull request).
* Upgraded Javassist dependency to version 3.19.0-GA.
* Upgraded TestNG dependency to version 6.8.21.
* The PowerMock EasyMock Api now depends on EasyMock 3.3.1.
Change log 1.6.1 (2015-01-03)
----------------------------
* The PowerMock EasyMock Api now depends on EasyMock 3.3. Note that 1.6.0 also works with this version of EasyMock _if_ cglib-nodep 2.2.2 is used as EasyMock transitive dependency.
* PowerMock JUnit Module now supports JUnit 4.12 (Thanks to Henri Tremblay for the pull request).
* Upgraded TestNG from 6.8.8 to 6.8.13.
* Fixed Mockito 1.10.9+ incompatibility, by repackaging CGLIB MockMaker (issue 524). Thanks to Brice Dutheil for the pull request.
Change log 1.6.0 (2014-11-27)
-----------------------------
* It's now possible to verify private final overloaded methods in the Mockito Extension API. For example:
verifyPrivate(tested).invoke(method(MyClass.class, "myOverloadedMethodName", String.class, String.class)).withArguments(anyString(), captor.capture());
* Upgraded Mockito API extension to work with version Mockito 1.10.8.
* PowerMock now builds for Java 6 and not Java 5.
* You can now use other runners in combination with the PowerMockRunner without using a JUnit Rule. This leaves the actual test-execution to or another runner of your choice.
For example tests can delegate to "SpringJUnit4ClassRunner", "Parameterized" or the "Enclosed" runner. This also allows PowerMock to (without any modifications) support future new JUnit-features from day one! Usage example:
@RunWith(PowerMockRunner.class)
@PowerMockRunnerDelegate(Parameterized.class) // Use the parameterized JUnit in combination with the PowerMockRunner
@PrepareForTest(SuppressConstructorDemo.class)
public class SuppressConstructorDemoTest {
...
}
(Big thanks to Henrik Kaipe for this excellent pull request).
Change log 1.5.6 (2014-09-04)
-----------------------------
* Changed so that the MockClassLoader throws ClassNotFoundException instead of Javassist's NotFoundException when a class isn't found (thanks to Mikael Petterson for the pull request).
* Final equals methods should now work with Mockito and not cause stackoverflow (thanks to Peer Hartmann for pull request)
* Removed redundant cast when creating a class replicas for final system classes.
* Cleaned up some code in the ClassReplicaCreator class
* Added support for answers, name and extract interfaces in PowerMockito when using annotations (@Mock). Note that answers doesn't work for final classes or methods! (issue 486).
* PowerMockIgnore is now taken into account when using the Java Agent PowerMockRule.
* Improved java agent automatic bootstrap mechanism to work better for newer JDK's.
* PowerMock now finds default methods in Java 8 (issue 513).
* Annotations such as @Mock and @InjectMocks can now be used with the JUnit Java Agent.
* Proxy framework is loaded from the the JUnit Java Agent which means that all Whitebox methods work as expected.
Change log 1.5.5 (2014-05-28)
-----------------------------
* Updated OSGi metadata
* MockClassLoader.getResources no longer loads same file twice (thanks to Kelsey Rider for the patch)
* Added getResourceAsStream and getResource to DeferSupportingClassLoader which defers loading to the deferring classloader.
* Added ability to adjust the classpath when running the a test using the @UseClassPathAdjuster annotation. This is useful when integrating PowerMock with certain third-party JUnit runners (thanks to Jonas Berlin for the patch).
* Upgraded to Javassist 3.18.2-GA.
* Moved project to github (issue 493).
* Upgraded to TestNG 6.8.8.
* Removed accidental JUnit dependency to Objenesis and XStream classloading projects.
Change log 1.5.4 (2014-01-29)
-----------------------------
* Removed OSGi metadata because they didn't work properly
* Fixed an issue when setting up private method expectations with multiple arguments in Mockito.
* Added support for suppressing static initializers using TestNG (issue 256) (thanks to majorpetya for the patch).
* PowerMock Java agent works in Java 8 (issue 475) (thanks to iirekm for help).
* Moved bundled asm packages into the powermock package for the PowerMock Java Agent module to avoid classloading issues.
Change log 1.5.3 (2014-01-10)
-----------------------------
* Added OSGi metadata to manifest files (issue 204) (thanks to Gabor Liptak for patch)
* Upgraded to Javassist 3.18.1-GA.
* Test case with expectedExceptions no longer fails when using PowerMock with TestNG (issue 366) (thanks to majorpetya for the patch).
* Fixed a classloading issue with the JUnit4TestSuiteChunkerImpl (thanks to Robert Gay for the patch)
* Updated objenesis to version 2.1
Change log 1.5.2 (2013-11-18)
-----------------------------
* Fixed PowerMock OOM (OutOfMemory) issues with Mockito (big thanks to Henrik Karlsson for the patch).
* PowerMock EasyMock extension API now supports EasyMock version 3.2.
* Added jacoco agent to be deferred by the PowerMock classloader
* Updated TestNG dependency to 6.8.7.
Change log 1.5.1 (2013-06-19)
-----------------------------
* Maven no longer adds classpath to jar manifests when building PowerMock (issue 413).
* PowerMockRunner now supports both MethodRules and TestRules to comply with JUnit 4.11 (thanks to "Boris Code" for the patch) (issue 419).
* Slf4j MockPolicy in Mockito now works again (issue 431).
* Removed synchronized from all MockGateway methods in order to make it work with multi-threaded Mockito.
* The PowerMock runner for JUnit now supports assumeTrue(..) statements (issue 408).
* Mocked system classes are now invoked when it's casted into another (non-final) type (thanks to Jonatan Jonsson for the patch) (issue 445).
* TestNG state is cleaned up in a better way when a test fails (thanks to Jonatan Jonsson for the patch).
* PowerMock byte-code manipulation transformers now ignores classes it cannot load. This means that PowerMock works with better SPI's that have compile-time dependencies that are not available at runtime.
* Upgraded Javassist to version 1.8.0-GA.
* Upgraded to TestNG module to version 6.8.5
* Upgraded to JUnit module to version 4.11
Change log 1.5 (2012-12-04)
---------------------------
* Added var-args to mockStatic in the PowerMockito API. You can now do:
mockStatic(A.class, B.class, C.class);
* Suppression is now working for overridden methods (issue 364, 51). Thanks to hpbeem for the patch.
* PowerMock junit module now supports JUnit rules for version 4.9+ (issue 344). Thanks to Andreas Kutschera for the patch.
* Fixed is with PowerMock JUnit runner that failed to parse JUnit versions including characters such as 4.9b2. (issue 381).
* Mockito extension API now uses Mockito 1.9.5 (issue 398)
* Updated TestNG dependency to version 6.8
* Added support for easily mocking all constructors of a class in the Mockito extension API. For example: whenNew(X.class).withAnyArguments().thenReturn(xMock); (issue 405).
* Upgraded to Javassist 3.17.1-GA, this means that PowerMock works in Java 7!
Change log 1.4.12 (2012-04-05)
------------------------------
* Really added missing class, PowerMockTestCase, to testng full release jar (issue 327).
* PowerMock JUnit module now works with JUnit 4.10 (thanks to Diego Coronel for the patch) (issue 367)
* Changed name from org.powermock.api.mockito.mockpolicies.Slf4jMockPolicy to org.powermock.api.mockito.mockpolicies.Slf4jMockPolicy in the Mockito extension API.
* Upgraded Javassist to version 3.16.1.GA.
* DeferSupportingClassLoader now overrides ClassLoader.findResources() which enables classes loaded by MockClassLoader to be to find resources via ClassLoader.findResources(...). Thanks to wrussellmorris for the patch (issue 380).
* Updated TestNG dependency to version 6.4
Change log 1.4.11 (2012-01-05)
------------------------------
* Fixed an OutOfMemory issue in PowerMockRunner (issue 346).
* Added Sfl4jMockPolicy to the Mockito extension API, thanks to Alexandre Normand for the patch.
* Replaced ${version} to ${project.version} in all pom files (thanks to pvdissel for the patch) (issue 287).
* Added work-around to stub some final system classes (such as java.util.UUID) (issue 354).
* Improved the PowerMock Java agent support. It should now work together with multiple java agents (thanks to Magnus Jungsbluth for the patch) (issue 357).
* Upgraded TestNG module to 6.3.1.
* Upgraded EasyMock extension API to use version 3.1 of EasyMock. This version should fix a couple of OutOfMemory issues.
* PowerMockito is updated to use Mockito 1.9.0
* setUp-method with @Before annotation is no longer executed twice when extending TestCase (issue 356)
* Upgraded classloader xstream deepcloner to XStream 1.4.2 (issue 345)
Change log 1.4.10 (2011-08-23)
------------------------------
* Added missing class, PowerMockTestCase, to testng full release jar (issue 327).
* Fixed test initialization error when using PowerMock Mockito API in Ant (issue 333).
* Upgraded to Javassist 3.15 GA (issue 338).
* Upgraded TestNG module to TestNG 6.2.
* Mockito @InjectMocks annotations on superclasses of test class are no longer ignored (issue 343).
* MockClassloader now defers the loading of classes in "org.pitest.*" to the system classloader. This means that you should be able to use PIT (http://pitest.org) without adding @PowerMockIgnore("org.pitest.*") to each test class (issue 337).
* PowerMockito now works with Mockito 1.9-rc1 but will not include the new artifact by default because it's still rc (issue 339).
* Removed PowerMockRule from full jar in release process (issue 325).
Change log 1.4.9 (2011-05-02)
-----------------------------
* Fixed an issue when mocking system classes containing fields of type Class, Classloader or synthetic fields such as java.util.ServiceLoader.
* TestNG PowerMockObjectFactory now sets the thread context classloader to the PowerMock mock classloader (issue 315).
* TestNG PowerMockObjectFactory now only uses PowerMock classloader and byte-code manipulation if the test class or a method declared in this method is annotated with @PrepareForTest or @SuppressStaticInitializerFor. This introduces a non-backward compatible change so if you're currently using mock injection (e.g. annotating a field with @Mock) you must now also use @PrepareForTest or @SuppressStaticInitializerFor for the mocks to be injected (issue 299).
* Upgraded TestNG module to TestNG 6.0.1 (issue 316).
* Fixed an issue with the PowerMock JUnit runner that prevented a JUnit Rule to throw an exception failing the test (issue 311).
* Fixed an issue with test state clearing while running a PowerMock enabled test as an Eclipse PDE test (issue 309).
* Classloader based PowerMock JUnit Rules now supports suppressing static initializers
* Improved state clean-up in TestNG module when extending from PowerMockTestCase.
* Automatic creation and injection of mocks to a field annotated with @Mock does no longer work if you're not extending from PowerMockTestCase in the TestNG classloading module (side-effect of issue 299).
* Removed the classloading version of PowerMockRule from the powermock-easymock-full and powermock-mockito-full release jars. You need to download the rule implementations manually since there are now two different implementations to choose from. (issue 318)
* Implemented experimental support for bootstrapping PowerMock using a Java agent. With the agent you won't run into classloading issues that you may with the standard way of bootstrapping. The new project is called junit4-rule-agent for JUnit and testng-agent for TestNG.
Change log 1.4.8 (2011-02-26)
-----------------------------
* Fixed a bug in Whitebox which prevented passing null parameters to methods.
* PowerMock now supports mocking static final inner classes and member Enums (issue 95).
* Fixed a bug in PowerMockito that sometimes caused the finalize method to be called instead of the expecting method when setting up expectations (issue 308).
* Upgraded TestNG module to TestNG 5.14.6
Change log 1.4.7 (2010-12-27)
-----------------------------
* The MemberModifier API now checks that the replacing method returns the same type and have the same number of parameters as the original method otherwise an IllegalArgumentException is thrown (issue 285).
* Fixed a bug which made it impossible to mock private methods with multiple arguments (issue 289).
* Removed some unwanted debug messages from the TestNG module.
* Updated javadoc in Whitebox and WhiteboxImpl.
* EasyMock and Mockito extension API now supports mocking new invocations with var args parameters when var args paramters is not the first parameter (issue 163).
* Various improvements to var args handling for both methods and constructors.
* Upgraded to Javassist 3.14 (issue 295).
* Upgraded junit module to use JUnit 4.8.2 (issue 296).
* You no longer need to prepare system classes that are not final and whose methods are not static, final or native in a special way (by prepare the class calling the system class method) (issue 300).
* Added method "defaultConstructorIn" to the MemberMatcher API so that you can e.g. suppress a default constructor using suppress(defaultConstructorIn(SomeClass.class)) (issue 302).
* PowerMock now cleans up EasyMock state after each test case which significantly decreases memory consumption.
* PowerMock now cleans up most Mockito state after each test case which decreases memory consumption.
* Major refactoring of the classloading module. It has been split up in a way that allows for different object deep-cloning mechanisms. The previous implementation is now called powermock-classloading-objenesis and there's also a new one called powermock-classload-xstream. The latter uses X-Stream for deep-cloning. This means that if you're using the PowerMock JUnit Rule you must also depend on one of the two deep-cloner implementations.
Change log 1.4.6 (2010-10-13)
-----------------------------
* Changed project structure, all group id's are now "org.powermock" but most artifact id's are the same. There are two exceptions, org.powermock.tests and org.powermock.examples. Artifact module-test-powermock has been renamed to module-test-easymock and module-test-powermockito has been renamed to module-test-mockito (issue 234).
* Removed all third-party repositories from the pom's to allow for Maven central syncing.
* PowerMock can now be built with Maven 3 (issue 283).
* Prepared pom's for Maven central synching.
* Upgraded the TestNG module to version 5.14 (issue 275).
* Fixed a bug in Whitebox which caused some overriden methods to be treated as overloaded (issue 276).
Change log 1.4.5 (2010-08-30)
-----------------------------
* The EasyMock API extension should now work when testing Eclipse plugins and running the tests as PDE (JUnit Plugin) tests (issue 264)
* Deprecated "andReturn" in the stubber API and added "toReturn" instead. The API now reads e.g. "stub(method("methodName")).toReturn(new Object());"
* Added the "toThrow" method to the stubber API. You can now do e.g. "stub(method("methodName")).toThrow(new Exception());" (issue 182)
* Whitebox#setInternalStateFromContext now support field matching strategies. By default all context fields that matches a field in the target class or instance is copied to the instance. If the strategy is changed from MATCHING to STRICT then an exception will be thrown if the context contains a field that cannot be copied to the target. Note that this change may cause backward incompatibility if you're currently using setInternalStateFromContext in your code. (issue 221)
* Fixed an issue that was introduced in version 1.4 when support for partial mocking of instance methods in final system classes not having a default constructor was added. The bug caused an javassist.CannotCompileException exception when mocking certain classes such as java.lang.Console (issue 272).
* Removed PowerMock specific classes to support mocking of signed classes in the EasyMock extension API since nowadays EasyMock supports this out of the box. This makes PowerMock less dependent on a specific EasyMock version and fixes and patches in EasyMock automatically applies to PowerMock in the future as well. (issue 273)
* Upgraded the TestNG module to version 5.13.1.
* Whitebox#newInstance(..) now supports instantiating interfaces and arrays. An exception is thrown when trying to instantiate an abstract type (issue 193).
Change log 1.4 (2010-07-22)
---------------------------
* Implemeted support for mocking instance methods of final system classes with the Mockito extension API (issue 169)
* Partial mocking of instance methods in final system classes not having a default constructor now works in the EasyMock extension API (issue 170)
* The deep cloner can now clone java.reflect.Method objects correctly to a different classloader.
* Fixed a critical bug in the ClassloaderExecutor which prevented it from running methods returning void. This affected the PowerMockRule which prevented it from executing test methods (even though it looked like it did) (issue 268, also closes issue 245)
* Upgraded to Javassist 3.13 (issue 269)
* Fixed some problems with Withbox regarding invocation of var args member class constructors and methods (issue 267).
* Partial mocking of public static methods now works in Mockito (issue 261)
* Better clean-up in test runner which fixes some java.lang.OutOfMemoryError errors in large test suites.
Change log 1.3.9 (2010-07-14)
----------------------------------
* Upgraded the Mockito extension API to support Mockito 1.8.5
* Upgraded the EasyMock extension API to support EasyMock 3.0 (issue 259)
* Spying with PowerMockito now retains object state (issue 263)
Change log 1.3.8 (2010-05-13)
-----------------------------
* Fixed a bug in DeepCloner which caused a NullPointerException for arrays containing null values.
* Changed groupId of the PowerMock JUnit Rule project to org.powermock.modules.
* Included PowerMock rule in the released artifacts
* verifyNew with arguments no longer throws NullPointerException when missing expectation in the Mockito extension API.
* EasyMock API extension now supports mock creation of classes whose hashCode implementation depends on constructor initialization.
* It's now allowed to use verifyNew multiple times just as with verify in standard Mockito (issue 251)
* Mockito extension API now supports mocking and stubbing equals and hashcode.
* Fixed an issue in the core mock classloader that accidentally caused any previous deferred packages to be overwritten when adding new packages to be ignored.
* Upgraded to Javassist 3.12 (issue 254)
* Upgraded to TestNG 5.12 (issue 250)
* Improved error messages in TestNG when running inside Eclipse
Change log 1.3.7 (2010-03-22)
-----------------------------
* Added support for JUnit 4.8.1 (issue 226)
* Added support for Mockito 1.8.4
* Fixed so that a "mock name" is set in the Mockito extension API. Fixes NullPointerException when e.g. toString is invoked on a mock. (issue 239)
* Changed method signature on "mockStatic" to return void in the Mockito extension API.
* Fixed the "Internal error: Run delegates were 0" bug when using a test class hierarchy and the PowerMock JUnit runner when no tests are defined in a parent test class (issue 241).
* Added support for deep cloning objects containing self references using the DeepCloner.
* New experimental approach for bootstrapping PowerMock is supported using a JUnit rule called PowerMockRule (available in JUnit 4.7+). This allows you to use other JUnit runners than the PowerMock one (PowerMockRunner) while still benefiting from PowerMock's functionality.
* Added support for suppressing all constructors in a class using suppress(constructorsDeclaredIn(X.class)).
* Added support for suppressing all constructors and methods in a class suppress(everythingDeclaredIn(X.class)).
Change log 1.3.6 (2010-03-10)
-----------------------------
* Added testng to full release project.
* Fixed so that classloader executor supports runnable's.
* DeepCloner now supports reference cloning.
* DeepCloner now supports cloning enum constants.
* DeepCloner now supports cloning standard java types (using simple serialization).
* DeepCloner now supports cloning fields in a hierarchy.
* DeepCloner now supports cloning class fields.
* Fixed a bug in the Wildcard matcher which resulted in that classes located in packages containing "junit.", "java.", "sun." in their name was never prepared for test (issue 225).
* Fixed so that you can mock anonymous inner classes with the Mockito API extension (issue 227).
* Nested classes declared inside the test case are automatically prepared for test.
* Minor improvement in the byte-code manipulation; only package private classes are changed to public.
* Upgraded he EasyMock extension API to use EasyMock class extension 2.5.2 (due to internal changes in EasyMock it's not backward compatible with older versions).
* Upgraded to Objenesis for powermock-reflect to 1.2.
* Fixed so that MockGateway now finds the correct method to invoke when several overloaded method candidates are found (issue 229).
* Upgraded to Mockito 1.8.3.
* Added support for Mockito annotations @Spy, @Captor and @InjectMocks.
* Mockito extension now supports real partial mocking for private (and private final) methods (both static and instance methods) using PowerMockito.doReturn(..), PowerMockito.doThrow(..) etc.
* Added support for MockSettings and Answers when creating class or instance mocks in Mockito extension, e.g. "FinalClass mock = mock(FinalClass.class, Mockito.RETURNS_MOCKS);".
Change log 1.3.5 (2009-12-13)
-----------------------------
* Removed EasyMock maven dependencies from the JUnit legacy runner since they're not needed.
* Fixed a bug in WhiteboxImpl#findUniqueConstructorOrThrowException which caused an additional constructor to be found when a class was prepared for test (issue 189).
* Fixed the maven assembly so that it now produces two full jar files, one for Mockito and one for EasyMock. These contains the sources as well.
* Mockito extension API now supports Mockito 1.8.1 & 1.8.2.
* java.lang.Object#getClass is no longer mockable by default. The reason is that it may lead to an unexpected method invocation exception using EasyMock in some equal implementations. It's possible to override this behavior.
* DeepCloner should now support cloning of static final fields on SUN JVM.
* Fixed a minor bug in Whitebox#getInternalState so that a better error message is given when the instance argument is null (issue 205).
* Fixed some typos in the javadoc of PowerMockito#verifyNew (issue 187).
* Fixed so that Whitebox#getInternalState(..) now supports passing in super types as field-type critiera (issue 210).
* Fixed so that Whitebox#getInternalState(..) and Whitebox#setInternalState(..) doesn't cause NPE when too many fields matched the criteria (issue 211).
* Basic support for TestNG (5.11) implemented.
* Fixed so that Whitebox#invokeMethod now works for overridden methods.
* Implemented findResource in classloader, this means that you should be able to locate resources in classpath (issue 143).
* JUnit runner and TestNG object factory now clears MockRepository state upon instantiation. This is useful in cases where a previous test has used e.g. PowerMock#createMock(..) to create a mock without using the runner/factory which means that there would be some state left in the MockRepository that hasn't been cleared.
Change log 1.3.1 (released 2009-10-28)
--------------------------------------
* Critial bug resolved in the PowerMock JUnit 4.7 runner: Before tests would not be executed at all if a JUnit rule was used in the test (even though it looked like they were). This has now been resolved an thus support for JUnit 4.7 rules should _really_ work.
* DeepCloner now supports cloning of one dimensional arrays, primitives, enums and collections.
* Test case is now always prepared for test even if no @PrepareForTest annotation is specified
* Fixed a bug in Whitebox#setInternalState so that it now works to supply an array when specifying a method name again.
* Improved javadoc in Whitebox class
* Upgraded EasyMock extension API to depend on EasyMock 2.5.2 (EasyMock class extensions are still version 2.4 since that's the latest release right now).
Change log 1.3 (released 2009-10-06)
------------------------------------
* Classes that will have their static initializers suppressed are automatically added to prepare for test in mock policies.
* Added a toString implementation for TestMethodResultImpl
* Added a toString implementation for TestSuiteResultImpl
* suppressMethod(Class...classes) now takes a class and additional classes as var args (i.e. suppressMethod(Class cls, Class...classes). This makes it easier to suppress all methods of a particular class for only one class.
* Invoking reflection methods now works again. This failed in version 1.2 and 1.2.5 when PowerMock begun supporting mocking of system classes. E.g. MyClass.class.getClassloader() now works again even if MyClass is prepared for test.
* The standard JUnit 4 runner has been verified to work with JUnit 4.6 and 4.7. The version dependency for JUnit4 is thus changed from [4.4,4.5] to [4.4,4.7].
* Classes prepared for test in parent test classes are now automatically prepared for test as well. I.e. if Test Case A extends Test Case B and A prepares X.class and B prepares Y.class then both X and Y will be prepared for test. Before only X was prepared for test.
* Fixed a bug in Whitebox which prevented it from instantiating classes with constructors combining normal and var-arg parameters. The same was fix was applied to method invocations as well.
* Fixed so that WhiteboxImpl#findMethodOrThrowException(..) throws a TooManyMethodsFoundException if a potential method had previously been found and a new matching var-args method was found.
* Fixed so that WhiteboxImpl#findConstructorOrThrowException(..) throws a TooManyConstructorsFoundException if a potential constructor had previously been found and a new matching var-args constructor was found.
* Fixed a bug so that when Whitebox looks for a var args method it now also checks that the component type of the var args array is the same as the supplied argument type(s).
* Implemented so that expectPrivate in the EasyMock extension API can be used without specifying a method name. The method is looked up by using the argument types.
* Extended the Whitebox.setInternalState functionality to accept a var-args list of values to set on an object. I.e. you can now do Whitebox.setInternalState(object, myState1, .., myStateN).
* Upgraded to Javassist 3.10 (3.11 doesn't work with PowerMock due to a bug or backward incompatibility in Javassist).
* Fixed a bug in the EasyMock extension API regarding suppression of methods so that it now uses Whitebox.getMethods(..) instead of Whitebox.getMethod(..).
* Mocking of static methods in final system classes now works with the Mockito extension (because of a bug fix in Javassist 3.10)
* PowerMock now changes the context class-loader to the MockClassloader which means that you don't need to use @PowerMockIgnore as often as before. This solves many issues with frameworks that creates new instances using reflection like log4j, hibernate and many XML frameworks. This fix is not backward compatible with version 1.2.5! If you've been using PowerMockIgnore in your test you may need to remove it (or update the ignored package list) otherwise the test might fail.
* Implemented support for setting internal state from a context (using Whitebox.setInternalStateFromContext(..)).
* Error message differ between static or instance type fields when internal state cannot be set because a field wasn't found.
* PowerMock now supports mocking instance methods of final system classes (such as java.lang.String). To do this you need to prepare the class that invokes the method of the system class. Note that partial mocking of instance methods in final system classes doesn't yet work if a constructor needs to be invoked on the mock.
* You can now mock new instance calls to final system classes in the same was you'd mock any other new instance call.
* Improved error message in Whitebox when getting a method or constructor which was not found and no parameter types were supplied.
* The state of classes that should have their static intializers suppressed are no longer clear after each atomic test. This means that suppression of static initializers works (again) in test suites.
* Begun working with support for TestNG (thanks to Dan Fabulich for helping us with this).
* Deprecated Whitebox#getInternalState(Object object, String fieldName, Class<?> where, Class<T> type), use "Whitebox.<Type> getInternalState(Object object, String fieldName, Class<?> where)" instead.
* Changed return type of Whitebox#getInternalState(Object object, String fieldName) from Object to T. This means that you can avoid cast using e.g. "Whitebox.<MyType> getInternalState(instance, "myFieldName")".
* Changed return type of Whitebox#invokeMethod(..) from Object to T. This means that you can avoid cast using e.g. "Whitebox.<MyType> invokeMethod(..)".
* JUnit test runner now supports JUnit 4.7 rules
* Upgraded the Mockito extension to use Mockito 1.8
* Created a reusable component (PowerMockIgnorePackagesExtractorImpl) that can be used by test runners to extract which packages that should be ignored in a test case.
* Removed mockStatic(Class<?> type, Method method, Method... methods), mockStaticPartial, mockPartial, mock(Class<T> type, Method... methods) & mock(Class<T> type, Method... methods) from the Mockito extension API. You should use PowerMockito.spy instead.
* When using the PowerMock Mock annotation with Mockito the method names (previously used for partial mocking) are ignored. They are no longer needed, just use PowerMockito.spy instead.
* Mockito extension API support for private methods expectations using PowerMockito.when(..).
* Fixed so that Whitebox error message prints correct parameter types when a MethodNotFoundException is thrown if a method with correct name but wrong parameter types were specified.
* EasyMock extension API: You can now manually use replay(..) or verify(..) and then fall back on replayAll(..) verifyAll(..) even if a mock has previously been replayed/verified. I.e. replayAll/verifyAll only replays and verifies mocks that has previously not been manually replayed/verified.
* WhiteboxImpl#getField(..) now check for null returned from Class.getSuperclass() to avoid NullPointerException when type is an interface (thanks to Ben Chatelain for the patch)
* Deprecated org.powermock.core.classloader.annotations.Mock, you should now use the Mock annotation in respective extension API instead. For EasyMock this is org.powermock.api.easymock.annotation.Mock and for Mockito it's org.mockito.Mock.
* Packages ignored for test in parent test classes are now automatically ignored as well when using @PowerMockIgnore. I.e. if Test Case A extends Test Case B and A ignores X and B ignores Y then both X and Y will be ignored in the test case. Before only X was ignored.
* The method IExpectationSetters<Object> expectNew(String fullyQualifiedName, Object... arguments) in the EasyMock extension API changed return type to <T> IExpectationSetters<T> expectNew(String fullyQualifiedName, Object... arguments).
* Improved error message for Whitebox#getConstructor when no constructor was found.
* Fixed a bug in PowerMockito's CgLibProxyFramework#getUnproxiedType(..) so that it now _really_ returns the unproxied type.
* You can now mock construction of new objects using the Mockito extension. To do so use PowerMockito#whenNew(..), e.g. whenNew(MyClass.class).withArguments(myObject1, myObject2).thenReturn(myMock). Verification can be done with PowerMockito#verifyNew(..), e.g. verifyNew(MyClass.class).withArguments(myObject1, myObject2).
* Annotation support has been integrated in the test runners (both for JUnit and TestNG) so there's no need to specify the AnnotationEnabler listener using @PowerMockListener(AnnotationEnabler.class). It works both for the EasyMock and Mockito extension API's. This means that org.powermock.api.easymock.powermocklistener.AnnotationEnabler and org.powermock.api.mockito.powermocklistener.AnnotationEnabler has been deprecated.
* Whitebox#getInternalState(..) and Whitebox#setInternalState(..) now uses isAssignableFrom instead of equals when looking for field types.
* Added a new api-support project that contains functionality shared between all mock API projects
* Mockito extension API now supports suppressing constructors, fields and methods.
* ProxyFramework is now registered from the test runner instead of the extension API. This means that Whitebox always works correctly in the test cases regardless if the mock api is used or not.
* Test classes are now always prepared for test automatically. This means that you can use suppressConstructor(..) and mock final system classes more easily since you don't have to prepare the actual test class for test. In some cases this change is not backward compatible with version 1.2.5. These cases are when you've tried to suppress a constructor but have forgot to prepare the test class for test as well.
* @PowerMockIgnore now accept wildcards, this means that if you want to ignore all classes in the "com.mypackage" package you now have to specify @PowerMockIgnore("org.mypackage.*") (before you did @PowerMockIgnore("org.mypackage.")).
* @PrepareForTest now accepts wildcards in the fullyQualifiedName attribute, e.g. you can now do @PrepareForTest(fullyQualifiedName={"*name*"}) to prepare all classes in containing "name" in its fully-qualified name.
* Fixed a major issue with the prepare for test algorithm. Before classes were accidentally prepared for test automatically if the fully qualified name of the class started with the same fully qualified name as a class that were prepared for test. This has now been resolved. This may lead to backward incompatibility issues in cases where tests didn't prepare all necessary artifacts for test.
* Mockito extension API now supports verification of private methods (for both static and instance methods). Use verifyPrivate(..).invoke(..), e.g. verifyPrivate(myObject, times(2)).invoke("myMethod", argument1, argument2).
* Verification behavior of static method in the Mockito extension API has changed. Before you did "verifyStatic(MyClass.class); MyClass.methodToVerify(argument);", now you do "verifyStatic(); MyClass.methodToVerify(argument);". You can also pass a verification mode when verifying static methods: "verifyStatic(times(2)); MyClass.methodToVerify(argument);". This change is NOT backward compatible with version 1.2.5.
* Mockito extension API now supports "verifyNoMoreInteractions" and "verifyZeroInteractions" for both instance mocks, class mocks and new instance mocks.
* Deprecated setSubstituteReturnValues, getSubstituteReturnValues and addSubtituteReturnValue in MockPolicyInterceptionSettings, you should now use setMethodsToStub, getStubbedMethods and stubMethod instead.
* Renamed MockRepository#getSubstituteReturnValue to getMethodToStub and MockRepository#putSubstituteReturnValue to putMethodToStub.
* PowerMockito now supports, doAnswer, doThrow, doCallRealMethod, doNothing and doReturn for void methods defined in final classes, final void methods and static methods. Note that if a method is a private void method you should still use PowerMockito#when.
* Removed the deprecated classes "org.powermock.PowerMock" and "org.powermock.Whitebox".
* PowerMock support API now has a DeepCloner class that you can use to create a clone of an object. This clone can also be cloned to a different classloader.
* Added a PowerMock classloading project which can be used to execute any Runnable or Callable in a different classloader. The result of a callable operation will be cloned to the the callers classloader.
* Mocking static methods in final system classes works in the Mockito extension API.
* AnnotationEnablers only injects to fields that haven't previously been set (i.e. if the field is null).
* Added org.powermock.core.spi.listener.AnnotationEnablerListener interface that all AnnotationEnablers must implement.
* Implemented a fluent API for suppression, replacing and stubbing (org.powermock.api.support.membermodification.MemberModifier). It uses matcher methods defined in org.powermock.api.support.membermodification.MemberMatcher. Some examples:
replace(method(X)).with(method(Y)); // Works only for static methods
replace(method(X)).with(invocationHandler);
stub(method(X)).andReturn(Y);
suppress(methodsDeclaredIn(X.class, Y.class))
suppress(method(X.class, "methodName"))
suppress(methods(method(X.class, "methodName"), method(Y.class, "methodName2")))
suppress(methods(X.class, "methodName1", "methodName2"))
suppress(field(..))
suppress(constructor(..));
* Deprecated all suppressMethod, suppressField and suppressConstructor methods in the EasyMock extension API. You should now use PowerMock#suppress instead.
* PowerMock and PowerMockito now supports stubbing methods (including private methods). Use PowerMock#stub or PowerMockito#stub to accomplish this.
* PowerMock and PowerMockito now supports proxying methods, including private methods using replace(..), e.g. replace(method(MyClass.class, "methodToProxy")).with(myInvocationHandler). Every call to the "methodToProxy" method will be routed to the supplied invocation handler instead.
* PowerMock and PowerMockito now supports duck typing of static methods, including static private methods using replace(..), e.g. replace(method(MyClass.class, "methodToDuckType")).with(method(MyOtherClass.class, "methodToInvoke")). Every call to the "methodToDuckType" method will be routed to the "methodToInvoke" method instead.
* Mock policies now supports proxing methods using proxyMethod(..).
* Private inner memeber interfaces are not changed to public anymore during the byte-code manipulation session
* PowerMock JUnit4 Runner can now instantiate test classes that have a String constructor if the test class extends from junit.framework.TestCase.
Change log 1.2.5 (released 2009-05-05)
--------------------------------------
* Mocking of static methods in final system classes such as java.lang.System now works. To do this you need to prepare the class that invokes the method of the system class as well as the actual test case.
* Fixed a major issue with mock policies which caused them to fail if a test case had more than one test method. Also fixed so that mock policies works in "setup" methods.
* Fixed so that WhiteboxImpl#getMethod no longer fails when invoking proxified interface methods declared in extended interfaces. Previously if e.g. interface A extended B & C and a method was declared in B it wouldn't be found by WhiteboxImpl#getMethod since it only used to traverse the class hierarchy and not the structure of the extended interfaces.
* Whitebox#invokeMethod now works without specifying any method name which can increase the refactoring possibilities of the code when invoking unique private methods.
* Fixed the error message when a method couldn't be found and only one method was specified (for example when using Whitebox.getMethods(MyClass.class, "onlyOneMethod")).
* All field matcher strategies now throws FieldNotFoundException's instead of IllegalArgumentException's.
* Upgraded the Mockito API extension to use Mockito 1.7.
* Added mockPartial and mockStaticPartial to the Mockito API to allow for easier creation of partial mocks.
Change log 1.2 (released 2009-01-30)
------------------------------------
* Upgraded to Javassist 3.9
* The test result related artifacts were moved from package org.powermock.tests.result to org.powermock.core.spi.testresult.
* Structural refactoring to remove Structure 101 XS: Moved org.powermock.api.easymock.internal.proxyframework.spi.ProxyFramework to org.powermock.reflect.internal.proxy.ProxyFramework.
* Added PowerMock specific exceptions to the reflect project. Instead of getting RuntimeExceptions or IllegalArgument exceptions a more appropriate runtime exception is thrown. For example ConstructorNotFoundException or TooManyFieldsFoundException etc.
* Whitebox.getMethods(..) and Whitebox.getFields(..) now throw an MethodNotFoundException if no method or field was found.
* Error messages when expecting new now works correctly for inner classes.
* Added three new methods to the Whitebox class, these are Whitebox.getInnerClassType(..), Whitebox.getLocalClassType(..) and Whitebox.getAnonymousInnerClassType(..). These methods helps with getting the class type for private inner, local or anonymous inner classes.
* Inner member classes declared in class X are automatically prepared for test when X is prepared for test.
* PowerMock now follows the semantics of EasyMock verification. This means that invoking an unexpected method of a mock object will cause an AssertionError to be thrown even if verify has been called prior to the method invocation.
* Interfaces will now be bytecode manipulated if included in @PrepareForTest or @SuppressStaticInitializationFor. This is useful since interfaces can also contain evil static initializers (using bytecode manipulation or other tricks). Concrete example found in XMLBeans.
* Fixed problem with infinite recursion with some hashCode implementations
* Possible to mock non-final system classes such as java.net.URLEncoder. To do this you need to prepare the class that invokes the method of the system class as well as the actual test case.
* Fixed a NPE bug in WhiteboxImpl#findSingleFieldUsingStrategy when the startClass was null and a field name haven't been found.
Change log 1.1.1 (released 2008-12-15)
--------------------------------------
* Fixed maven version issues for the junit4-legacy module and junit3 module.
* Fixed a major issue with PowerMock test listeners. The PowerMockTestListener.beforeTestMethod(..) was invoked too late which could cause a NullPointerException when invoking setup methods.
* Updated javadoc (some errors in the java doc text).
Change log 1.1 (released 2008-12-12)
------------------------------------
* Only signed classes are loaded by the signed supporting CGLib naming policy.
* Whitebox.invokeConstructor now propagates InvocationTargetExceptions correctly.
* Restructured release assemblies to include just the correct things.
* Set sources:jar and javadocs:jar to run on every build.
* LoggerTest now creates its test log file in ./target/ directory instead of ./
* Major refactoring of project structure, it's now be possible to use PowerMock as a foundation for testability for other mock frameworks. PowerMock core is no longer coupled to EasyMock.
* Fixed a serious issue with the classloading hierarchy of PowerMock's JUnit runners.
* Implemented support for PowerMock test listeners, to create a listener you need to implement the org.powermock.core.spi.PowerMockTestListener interface and pass the implementation class to the PowerMockListener annotation.
* Started Mockito integration. It supports final, static (non-void) and partial mocking using the PowerMock Mockito API. It also supports the Mockito annotations if using the @PowerMockListener(AnnotationEnabler.class) at the class-level of the test case.
* Added a new Mock annotation which can be placed on fields to allow for a PowerMock listener to create and inject mock objects. Use the AnnotationEnabler listener from the EasyMock or Mockito API.
* Exceptions are no longer wrapped in run-time exceptions when invoking a method using Whitebox.invokeMethod(..).
* Major refactoring of the classloader structure and delegation.
* Added two new methods to the Whitebox API, getAllInstanceFields and getAllStaticFields. One takes an object as parameter and one takes a class. They return all instance/class fields of the object/class.
* Added a FieldDefaulter test listeners that set all instance field to their default value after each test method. This listener can be used to automatically set all instances to null after each test method instead of doing so manually in a tearDown method.
* Added three new methods to the PowerMock API, reset(Object...mocks), reset(Class<?>...classMocks) and resetAll(). The methods can be used to reset instance mocks, class mocks or let PowerMock reset all mocks automatically.
* mockStaticNice(Class<?> clazz, String... methodNames) was renamed to mockStaticPartialNice in the PowerMock API.
* PowerMock and PowerMockito now _really_ follows the EasyMock semantics for partial mocking (e.g. PowerMock.createMock(MyClass.class, null) now mocks all methods of a class whereas PowerMock.createMock(MyClass.class, new Method[0]) mocks no methods of a class).
* The @PrepareForTest annotation now accepts interfaces as types. This is useful in situations where you wan't to make sure that a certain interface is loaded by the same classloader as the rest of the mocks.
* Updated the tutorial projects to reflect the latest changes in PowerMock.
* Errors are propagated correctly when invoking the PowerMock.replay(..) method (i.e. they are no longer wrapped in run-time exceptions).
* Added a MockNice and MockStrict annotation which can be placed on fields to allow for the AnnotationEnabler of the EasyMock api to create and inject mock objects.
* Changed so that the default suppression value for methods returning java.lang.String is null to conform with EasyMock and Mockito.
* Added Whitebox.getFieldsOfType(..) that can be used to retreive all fields of a particular type in a class hierarchy.
* Added support for mock policies. A mock policy can be used to make it easier to unit test some code with PowerMock in isolation from a certain framework. Three mock policies are available in the EasyMock API, JclMockPolicy, Slf4jMockPolicy and Log4jMockPolicy which helps with mocking java commons-lang, log4j or slf4j in PowerMock. Use the @MockPolicy annotation at the class-level of the test case to use one of the mock policies.
* Whitebox.getMethod(..) sets the accessable flag to true if a method is found.
* Added Whitebox.getMethod(Class<?> type, Class<?>... parameterTypes) that let's you get a single method without specifying the method name.
* Fixed a bug in WhiteboxImpl.checkIfTypesAreSame(..) that prevented classes to be identified correctly.
* Fixed a bug in the PowerMockJUnit44RunnerDelegateImpl that caused a NoClassDefFoundError to be thrown when using JUnit 4.5 when a AssumptionViolatedException was thrown. The reason for this was that JUnit has changed to locatation of this exception.
* Added spy functionality of final classes and methods to the Mockito API (experimental).
* Fixed so that it works to place the PrepareForTest annotation at methods without specifying it at the class-level first.
* Added Whitebox.getField(..) method to get a field somewhere in the hierarchy.
* Added Whitebox.getFields(..) method to get fields in a class matching a specific name.
* Added methods to the PowerMock API, PowerMock.suppressField(..), that allows to suppress specific fields of a class (no support for primitive final fields right now).
* Deprecation: org.powermock.PowerMock and org.powermock.Whitebox have been deprecated, you should now use org.powermock.api.easymock.PowerMock and org.powermock.reflect.Whitebox instead.
Change log 1.0 (released 2008-11-18)
------------------------------------
* Changed the pom.xml for the tutorial project so that it's now a stand-alone project.
* Fixed so that replay all and verify all also works for createMockAndExpectNew.
* Added method createStrictMockAndExpectNew and createNiceMockAndExpectNew
* Fixed so that suppressMethodCode returns an empty string for methods returning String.
* Fixed a bug in the byte-code manipulation of constructors, modifiers that doesn't need change are now preserved.
* Added the PrepareEverythingForTestAnnotation, this annotation can be used to tell PowerMock to modify all classes.
* MockGateway doMethodCall now also supports java proxy types.
* Implemented the ability to set and get internal state based on field type. This means that you get more refactor friendly code while still being able to set or get internal state.
* Implemented the ability to set internal state based on an object type, i.e. you can now do setInternalState(object, myServiceImpl) to set the first field in object which can be assignable to myServiceImpl. This means that you get more refactor friendly code while still being able to set internal state.
* Get and setInternalState now separates between class and instance fields, i.e. you cannot set static fields by specifying an instance object.
* Updated the tutorial projects to take advantage of the latest features in PowerMock.
* Fixed a NPE bug in the AbstractTestClassExtractor.isPrepared(..) method.
* The test class is no longer recommended as a PrepareForTest candidate if a NPE occurs inside the test class.
* Added createStrictPartialMockForAllMethodsExcept and createNicePartialMockForAllMethodsExcept to the PowerMock API.
* The Whitebox API method getAllMethodExcept now traverses the class hierarchy looking for methods.
* Fixed a bug in the verifyAll method of the PowerMock API, the state is now properly disposed.
* Verify now only clears state of the artifact being verified, this means that you use sequential verify statements again. However you must always use a PowerMockRunner in order to make sure that the full state is properly disposed.
* The suppressConstructorCode method of the PowerMock API was renamed to suppressConstructor.
* The suppressMethodCode method of the PowerMock API was renamed to suppressMethod.
* The suppressConstructorCodeHierarchy method of the PowerMock API was removed, suppressConstructor(..) automatically suppress the full hierarchy so use this method instead.
* Added the PowerMockIgnore annotation that can be used to specify packages or classes that should not be loaded by PowerMock's classloader.
* Fixed a bug in MockGateway that prevented wrapper/primitive constructors from being correctly executed.
* Added support for specifying parameter types for expectNew and createMockAndExpectNew, createNiceMockAndExpectNew, createStrictMockAndExpectNew.
* Added expectNiceNew and expectStrictNew, expectNiceNew can be used with no parameters.
* Internal refactoring of the chunking mechanism
* Fixed a bug in the chunking algorithm that made the test listener clear state for all class loaders even though it should only clear the state for the last one. Fixed this for JUnit4 and JUnit3.
Change log 0.9 (released 2008-11-10)
------------------------------------
* Structural refactoring to remove Structure 101 XS: moved WhiteBox implementation to separate class in core and moved IndicateReloadClass
* By default Whitebox.getInternalState and Whitebox.setInternalState now traverses the class hierarchy when looking for a field.
* Better error message if a NPE is caught in a subclass of a class being prepared for test.
* The PrepareForTest annotation now manipulates the full (super) class hierachy by default. This makes it easier to perform mocking of super class methods.
* A new annotation called PrepareOnlyThisForTest has been added and works in the same way that PrepareForTest previously did, i.e. ONLY the specified classes are prepared and not the entire hierarchy.
* Fixed a bug that made it impossible to invoke vararg constructors.
* createMockAndExpectNew now takes expected arguments as the second parameter.
* expectNew takes expected arguments as the second parameter.
* Invocations of var arg methods, constructors and expectPrivate now works for sub-types of the declared parameter types.
* More consistent error messages when expectNew fails. Error messages now takes the parameters into account.
* Renamed mockStaticMethodX to mockStaticPartialX
* Added javadoc to the release phase
* The JUnit4 legacy runner now throws NoTestsRemainException if no tests are found in the test case.
* All JUnit4 runners now executes the setUp method before each test and the tearDown method after each test if the test class extends from TestCase.
* Fixed an issue in the getAllChunkEntries method of the AbstractTestSuiteChunkerImpl class that caused test methods to be executed in a different order when running in a test suite than running the test stand alone.
* Fixed a serious issue when the suppress static constructor state disappeared between chunking sessions. Fixed this for all versions of JUnit 4. This means that chunking and suppression of static initializers now work as expected.
* The PowerMock API methods with a syntax like createPartialMockX are renamed to createXPartialMock, e.g. createPartialMockNice is renamed to createNicePartialMock to be more consistent with the normal createMock methods.
* Added createNicePartialMockAndInvokeDefaultConstructor and createStrictPartialMockAndInvokeDefaultConstructor to the PowerMock API.
* Updated the tutorial projects with
* Changed the clean-up mechanisms of PowerMock.replay(..) and PowerMock.verify(..). Should no longer clear unnecessary state.
* Implemented two new PowerMock API methods: replayAll and verifyAll(). These can be used to replay and verify all classes and mocks created by the PowerMock API without having to explicitly specify each and everyone.
Change log 0.8.5 (releasd 2008-10-30)
-------------------------------------
* Fixed so that it's now possible to mock abstract methods
* WhiteBox.getMethod(..) now also returns protected and package-private methods.
* Whitebox.invokeMethod can now execute methods in a super class.
* Whitebox.invokeMethod no longer throws NullPointerException when an argument is null when the method cannot be found
* It's is now possible to use sub-types of method parameters when using Whitebox.invokeMethod.
* Tests methods starting with "test" are now executed only if the method is annotated with @Test or if the test class extends from TestCase.
* Tests are now executed in the order that they are defined in the test case.
Change log 0.8.1 (released 2008-10-26)
--------------------------------------
* Added PowerMock API method "createPartialMockAndInvokeDefaultConstructor" that invokes a default constructor after mock creation (even if it's private).
* createPartialMock now works as expected
* Fixed so that it works to mock package private classes (even if they're signed)
* It now works to set a static final field after the static initializes have been suppressed.
* Fixed a serious bug that caused classes extending java.lang.Object to be non-mockable.
Change log 0.8 (released 2008-10-22)
-----------------------------------
* The junit4 test module now work with JUnit 4.5 (although using the old, now deprecated, approach of JUnit 4.4).
* Upgraded to EasyMock 2.4
* Upgraded to JavaAssist 3.8.0.GA
* WhiteBox invoke method and invoke constructor methods now throws an IllegalArgumentException if the first argument is null.
* Replay/verify works as expected when mixing classes and instance mocks.
* Better error message when expectNew fails due to too few calls to new when a method was invoked using reflection.
* Implemented support for nice mocks.
* Added more documentation
* expectNew(..).andThrow(..) now works with checked exceptions
* Added WhiteBox functionality to instantiate a class without invoking its constructor without using byte-code manipulation. Works in multiple JVM's.
* mockMethodX is renamed to createPartialMockX
* Fixed the error message that was thrown when a constructor was not found when using mocks as arguments with createPartialMock.
* Suppress constructor code now works as expected
* mockConstruction(..) was removed. You should always use expectNew(..) instead. There's a utility method in PowerMock called createMockAndExpectNew that can be used as a substitute for mockConstruction(..).
* Better error message when a class is not replayed when doing expectNew.
* Added support to easy suppress several methods in the same class.
* doInvokeMethod in PowerMock now catches and deals correctly with InvocationTargetExceptions.
* It's now possible to run a single test case in junit4
* Test delegates now implements Sortable
* Added support for mocking classes in signed jar files
* EasyMock matchers now works in combination with PowerMock's expectPrivate(..)
* Added support for invoking var args constructors and methods using Whitebox
* Added support for expecting private methods with var args parameter
* PowerMock now supports Hamcrest matchers
* Exceptions are now propagated correctly from the junit runners.
Change log 0.7 (released)
-------------------------
* Do not mock hashCode and equals
* Added ugly hack for cglib classloading issue with maven
* Fixed problems with mocking methods in superclass and modifying multiple classes with same parent
* Strict mocking with interface work as expected
* Added niceReplayAndVerify
* Added logo and improved documentation structure
* Follow EasyMock semantics for partial mocking
* WhiteBox internalstate support for static fields as expected
* Updated assembly and create sources jar files
Change log 0.6 (released)
-------------------------
* Updated to EasyMock 2.3 and classextension 2.3
* Implemented support for ConstructorArgs
* Implemented support for StrictMock
* Added possibility to invoke a private method in a subclass of an instance using Whitebox.
* Added a support for test classes extending from TestCase when using a custom JUnit runner such as PowerMockRunner. This fix was created for both JUnit4 legacy and JUnit 4.4.
* Major internal refactoring.
* Fixed major classloading and byte-code manipulation issues. Code coverage tools such as EMMA now works.
* Fixed so that it's now possible to invoke private methods using non-primitive and/or non-wrapper values.
* Whitebox now throws the correct exceptions to the client and not a wrapped RuntimeException. This means for example that expectNew(..).andThrow(..) works as expected.
* Fixed a bug in the PowerMock JUnit 4.4 and legacy runner that reported back the wrong number of tests being executed when @Ignore was used.
================================================
FILE: docs/generate_javadoc.sh
================================================
#!/bin/sh
read -p "Version to generate javadoc for: " version
project_names=(powermock-core powermock-api-easymock powermock-api-mockito powermock-api-mockito2 powermock-api-mockito-common\
powermock-reflect powermock-api-support powermock-module-junit4-common powermock-module-junit4 powermock-module-junit4-rule\
powermock-classloading-module powermock-classloading-xstream powermock-module-javaagent powermock-module-junit4-rule-agent\
powermock-module-junit3 powermock-module-junit4-legacy powermock-module-testng-common powermock-module-testng\
powermock-module-testng-agent powermock-modules-impl powermock-classloading-objenesis)
echo "Generating Javadoc for version ${version}."
for project_name in ${project_names[*]}
do
echo "Generating for ${project_name}"
curl -Ss http://www.javadoc.io/doc/org.powermock/${project_name}/${version} >/dev/null 2>&1
done
echo "Completed"
================================================
FILE: docs/release-notes/official.md
================================================
<sup><sup>*Release notes were automatically generated by [Shipkit](http://shipkit.org/)*</sup></sup>
#### 2.0.9
- 2020-11-01 - [4 commits](https://github.com/powermock/powermock/compare/powermock-2.0.8...powermock-2.0.9) by [thekingn0thing](https://github.com/thekingn0thing) (2), [Valery Yatsynovich](https://github.com/valfirst) (1), [zaobao](https://github.com/zaobao) (1) - published to [](https://bintray.com/powermock/null/powermock/2.0.9)
- PowerMockitoStubberImpl.when throws exceptions with methods using arguments with both primitive and wrapped arguments [(#1077)](https://github.com/powermock/powermock/pull/1077)
- Bump byte-buddy from 1.9.10 to 1.10.14 [(#1068)](https://github.com/powermock/powermock/pull/1068)
#### 2.0.8
- 2020-11-01 - [6 commits](https://github.com/powermock/powermock/compare/powermock-2.0.7...powermock-2.0.8) by 4 authors - published to [](https://bintray.com/powermock/null/powermock-development/2.0.8)
- Commits: Sean C. Sullivan (2), [Valery Yatsynovich](https://github.com/valfirst) (2), dependabot[bot] (1), [Improver](https://github.com/netbeansuser2019) (1)
- [Travis CI] Remove deprecated keyword `sudo` [(#1069)](https://github.com/powermock/powermock/pull/1069)
- Upgrade [(#1049)](https://github.com/powermock/powermock/pull/1049)
#### 2.0.7
- 2020-03-30 - [1 commit](https://github.com/powermock/powermock/compare/powermock-2.0.6...powermock-2.0.7) by [Björn Kautler](https://github.com/Vampire) - published to [](https://bintray.com/powermock/null/powermock/2.0.7)
- [Bugfixes] PowerMock Agent does not work EasyMock 4.x [(#956)](https://github.com/powermock/powermock/issues/956)
- Fix missing stackmap frames [(#1043)](https://github.com/powermock/powermock/pull/1043)
- VerifyError using the agent for Spock tests [(#1005)](https://github.com/powermock/powermock/issues/1005)
- Update dependencies for Java 11 support [(#952)](https://github.com/powermock/powermock/pull/952)
- How to resolve "Expected stackmap frame at this location" [(#693)](https://github.com/powermock/powermock/issues/693)
#### 2.0.6
- 2020-03-21 - [1 commit](https://github.com/powermock/powermock/compare/powermock-2.0.5...powermock-2.0.6) by [Valery Yatsynovich](https://github.com/valfirst) - published to [](https://bintray.com/powermock/null/powermock/2.0.6)
- Upgrade to Javassist 3.27.0-GA [(#1041)](https://github.com/powermock/powermock/pull/1041)
#### 2.0.5
- 2020-01-25 - [5 commits](https://github.com/powermock/powermock/compare/powermock-2.0.4...powermock-2.0.5) by [Enrico Olivelli](https://github.com/eolivelli) (3), [thekingn0thing](https://github.com/thekingn0thing) (2) - published to [](https://bintray.com/powermock/null/powermock/2.0.5)
- Use Unsafe to set final static fields, support JDK12+ [(#1026)](https://github.com/powermock/powermock/pull/1026)
- Enable local build in IDE without setting ENV [(#1025)](https://github.com/powermock/powermock/pull/1025)
#### 2.0.4
- 2019-10-16 - [8 commits](https://github.com/powermock/powermock/compare/powermock-2.0.2...powermock-2.0.4) by 5 authors - published to [](https://bintray.com/powermock/null/powermock/2.0.4)
- Commits: [Arthur Zagretdinov](https://github.com/thekingnothing) (3), [Björn Kautler](https://github.com/Vampire) (2), [Johan Haleby](https://github.com/johanhaleby) (1), [Kirill Baurchanu](https://github.com/baurchanu) (1), sam-ma (1)
- [Bugfixes] Not compatible with JUnitParams when using @PowerMockRunnerDelegate(JUnitParamsRunner.class [(#685)](https://github.com/powermock/powermock/issues/685)
- Fix Whitebox.getAllInstanceFields returning static fields for classes [(#1011)](https://github.com/powermock/powermock/pull/1011)
- Fix changing final fields on Java 12 [(#1010)](https://github.com/powermock/powermock/pull/1010)
- Fixes #685 : @PowerMockRunnerDelegate(JUnitParamsRunner.class) [(#998)](https://github.com/powermock/powermock/pull/998)
- Fixes #992 Static mocking broken for Mockito >= 2.26.1 [(#997)](https://github.com/powermock/powermock/pull/997)
#### 2.0.2
- 2019-04-21 - [2 commits](https://github.com/powermock/powermock/compare/powermock-2.0.1...powermock-2.0.2) by [Arthur Zagretdinov](https://github.com/thekingnothing) - published to [](https://bintray.com/powermock/null/powermock/2.0.2)
- Fixes #979 Generalise getting current java version to fix be able to use Javaagent with latest java [(#985)](https://github.com/powermock/powermock/pull/985)
- Fixes #973 [SECURITY] Releases are built/executed/released in the context of insecure/untrusted code [(#984)](https://github.com/powermock/powermock/pull/984)
- PowerMockAgent does not support java >=10 [(#979)](https://github.com/powermock/powermock/issues/979)
- [SECURITY] Releases are built/executed/released in the context of insecure/untrusted code [(#973)](https://github.com/powermock/powermock/issues/973)
#### 2.0.1
- 2019-04-21 - [4 commits](https://github.com/powermock/powermock/compare/powermock-2.0.0...powermock-2.0.1) by 4 authors - published to [](https://bintray.com/powermock/null/powermock-development/2.0.1)
- Commits: [Arthur Zagretdinov](https://github.com/thekingnothing) (1), [Marcin Zajączkowski](https://github.com/szpak) (1), [sam-ma](https://github.com/sam-ma) (1), [stevegilbert23](https://github.com/stevegilbert23) (1)
- [Bugfixes] IllegalStateException when inner class has private constructor on Java>8 [(#958)](https://github.com/powermock/powermock/issues/958)
- Fixes #958 convert constructors of nested classes to public as well [(#978)](https://github.com/powermock/powermock/pull/978)
- Fixes 976: Change to StackTraceCleaner to allow mockito strick stubs … [(#977)](https://github.com/powermock/powermock/pull/977)
- Fix date in README [(#967)](https://github.com/powermock/powermock/pull/967)
#### 2.0.0
- 2019-01-07 - [77 commits](https://github.com/powermock/powermock/compare/powermock-1.7.3...powermock-2.0.0) by 10 authors - published to [](https://bintray.com/powermock/null/powermock/2.0.0)
- Commits: [Arthur Zagretdinov](https://github.com/thekingnothing) (56), PowerMock Release Tools (11), [Henri Tremblay](https://github.com/henri-tremblay) (2), [Ismael Juma](https://github.com/ijuma) (2), beegee1 (1), [Enrico Olivelli](https://github.com/eolivelli) (1), hsynkrtl (1), [Paul Parenko](https://github.com/parenko) (1), Sean Gilhooly (1), [Timo Meinen](https://github.com/timomeinen) (1)
- [Major changes] Mockito Public API Support Roadmap [(#726)](https://github.com/powermock/powermock/issues/726)
- [Bugfixes] Compile error due to unused import of a class which is not in the dependencies [(#959)](https://github.com/powermock/powermock/issues/959)
- [Bugfixes] JDK9, power mockito 2.0.0-beta.5 - final class issue when mocking static method [(#888)](https://github.com/powermock/powermock/issues/888)
- [Bugfixes] @Mock annotation from easymock api does not work for two fields of the same type. [(#755)](https://github.com/powermock/powermock/issues/755)
- [Enhancements] Removed deprecated code in PowerMock 2.0. [(#839)](https://github.com/powermock/powermock/issues/839)
- [Enhancements] JDK 9 support [(#783)](https://github.com/powermock/powermock/issues/783)
- Fixes #888: Disable Security of X-Stream [(#962)](https://github.com/powermock/powermock/pull/962)
- #959 fix compile error due to unused import of a class which is not i… [(#960)](https://github.com/powermock/powermock/pull/960)
- Issue 939: Error with setInternalState and JDK12 "java.lang.NoSuchFieldException: modifiers [(#955)](https://github.com/powermock/powermock/pull/955)
- Remove MocksControl.MockType that stayed there [(#951)](https://github.com/powermock/powermock/pull/951)
- Preparing PowerMock 2.0 Release without ByteBuddy [ci maven-central-release] [(#948)](https://github.com/powermock/powermock/pull/948)
- Use EasyMock exposed MockType instead of the deprecated internal one [(#944)](https://github.com/powermock/powermock/pull/944)
- Powermock migration to ByteBuddy [(#910)](https://github.com/powermock/powermock/pull/910)
- Update PowerMockAgent.java [(#878)](https://github.com/powermock/powermock/pull/878)
#### 2.0.0-RC.5
- 2018-12-25 - [2 commits](https://github.com/powermock/powermock/compare/powermock-2.0.0-RC.4...powermock-2.0.0-RC.5) by [Paul Parenko](https://github.com/parenko) (1), [Timo Meinen](https://github.com/timomeinen) (1) - published to [](https://bintray.com/powermock/null/powermock-development/2.0.0-RC.5)
- [Bugfixes] Compile error due to unused import of a class which is not in the dependencies [(#959)](https://github.com/powermock/powermock/issues/959)
- [Bugfixes] JDK9, power mockito 2.0.0-beta.5 - final class issue when mocking static method [(#888)](https://github.com/powermock/powermock/issues/888)
- Fixes #888: Disable Security of X-Stream [(#962)](https://github.com/powermock/powermock/pull/962)
- #959 fix compile error due to unused import of a class which is not i… [(#960)](https://github.com/powermock/powermock/pull/960)
#### 2.0.0-RC.4
- 2018-11-17 - [1 commit](https://github.com/powermock/powermock/compare/powermock-2.0.0-RC.3...powermock-2.0.0-RC.4) by [Enrico Olivelli](https://github.com/eolivelli) - published to [](https://bintray.com/powermock/null/powermock/2.0.0-RC.4)
- Issue 939: Error with setInternalState and JDK12 "java.lang.NoSuchFieldException: modifiers [(#955)](https://github.com/powermock/powermock/pull/955)
#### 2.0.0-RC.3
- 2018-11-07 - [2 commits](https://github.com/powermock/powermock/compare/powermock-2.0.0-RC.2...powermock-2.0.0-RC.3) by beegee1 (1), [Ismael Juma](https://github.com/ijuma) (1) - published to [](https://bintray.com/powermock/null/powermock/2.0.0-RC.3)
- No pull requests referenced in commit messages.
#### 2.0.0-RC.2
- 2018-10-28 - [2 commits](https://github.com/powermock/powermock/compare/powermock-2.0.0-RC.1...powermock-2.0.0-RC.2) by [Arthur Zagretdinov](https://github.com/thekingnothing) (1), [Henri Tremblay](https://github.com/henri-tremblay) (1) - published to [](https://bintray.com/powermock/null/powermock-development/2.0.0-RC.2)
- Remove MocksControl.MockType that stayed there [(#951)](https://github.com/powermock/powermock/pull/951)
#### 2.0.0-RC.1
- 2018-10-24 - [69 commits](https://github.com/powermock/powermock/compare/powermock-1.7.4...powermock-2.0.0-RC.1) by 6 authors - published to [](https://bintray.com/powermock/null/powermock/2.0.0-RC.1)
- Commits: [Arthur Zagretdinov](https://github.com/thekingnothing) (54), PowerMock Release Tools (11), [Henri Tremblay](https://github.com/henri-tremblay) (1), hsynkrtl (1), [Ismael Juma](https://github.com/ijuma) (1), Sean Gilhooly (1)
- [Major changes] Mockito Public API Support Roadmap [(#726)](https://github.com/powermock/powermock/issues/726)
- [Bugfixes] @Mock annotation from easymock api does not work for two fields of the same type. [(#755)](https://github.com/powermock/powermock/issues/755)
- [Enhancements] Removed deprecated code in PowerMock 2.0. [(#839)](https://github.com/powermock/powermock/issues/839)
- [Enhancements] JDK 9 support [(#783)](https://github.com/powermock/powermock/issues/783)
- Preparing PowerMock 2.0 Release without ByteBuddy [ci maven-central-release] [(#948)](https://github.com/powermock/powermock/pull/948)
- Use EasyMock exposed MockType instead of the deprecated internal one [(#944)](https://github.com/powermock/powermock/pull/944)
- Powermock migration to ByteBuddy [(#910)](https://github.com/powermock/powermock/pull/910)
- Update PowerMockAgent.java [(#878)](https://github.com/powermock/powermock/pull/878)
**2.0.0-beta.13 (2018-10-22)** - no code changes (no commits) - published to [](https://bintray.com/powermock/null/powermock-development/2.0.0-beta.13)
**2.0.0-beta.12 (2018-10-22)** - [2 commits](https://github.com/powermock/powermock/compare/powermock-2.0.0-beta.11...powermock-2.0.0-beta.12) by [Arthur Zagretdinov](https://github.com/thekingnothing) (1), [Henri Tremblay](https://github.com/henri-tremblay) (1) - published to [](https://bintray.com/powermock/null/powermock-development/2.0.0-beta.12)
- Use EasyMock exposed MockType instead of the deprecated internal one [(#944)](https://github.com/powermock/powermock/pull/944)
**2.0.0-beta.11 (2018-05-29)** - [1 commit](https://github.com/powermock/powermock/compare/powermock-2.0.0-beta.10...powermock-2.0.0-beta.11) by [Arthur Zagretdinov](https://github.com/thekingnothing) - published to [](https://bintray.com/powermock/null/powermock-development/2.0.0-beta.11)
- No pull requests referenced in commit messages.
**2.0.0-beta.10 (2018-05-29)** - [20 commits](https://github.com/powermock/powermock/compare/powermock-2.0.0-beta.9...powermock-2.0.0-beta.10) by [Arthur Zagretdinov](https://github.com/thekingnothing) - published to [](https://bintray.com/powermock/null/powermock-development/2.0.0-beta.10)
- Powermock migration to ByteBuddy [(#910)](https://github.com/powermock/powermock/pull/910)
**2.0.0-beta.9 (2018-04-08)** - [1 commit](https://github.com/powermock/powermock/compare/powermock-2.0.0-beta.8...powermock-2.0.0-beta.9) by Ismael Juma - published to [](https://bintray.com/powermock/null/powermock-development/2.0.0-beta.9)
- No pull requests referenced in commit messages.
**2.0.0-beta.8 (2018-03-20)** - [1 commit](https://github.com/powermock/powermock/compare/powermock-2.0.0-beta.7...powermock-2.0.0-beta.8) by Sean Gilhooly - published to [](https://bintray.com/powermock/null/powermock-development/2.0.0-beta.8)
- No pull requests referenced in commit messages.
**2.0.0-beta.7 (2018-03-12)** - [1 commit](https://github.com/powermock/powermock/compare/powermock-2.0.0-beta.6...powermock-2.0.0-beta.7) by [Arthur Zagretdinov](https://github.com/thekingnothing) - published to [](https://bintray.com/powermock/null/powermock-development/2.0.0-beta.7)
- No pull requests referenced in commit messages.
**2.0.0-beta.6 (2018-03-12)** - [2 commits](https://github.com/powermock/powermock/compare/powermock-2.0.0-beta.5...powermock-2.0.0-beta.6) by [Arthur Zagretdinov](https://github.com/thekingnothing) (1), hsynkrtl (1) - published to [](https://bintray.com/powermock/null/powermock-development/2.0.0-beta.6)
- Update PowerMockAgent.java [(#878)](https://github.com/powermock/powermock/pull/878)
**2.0.0-beta.5 (2017-09-17)** - [1 commit](https://github.com/powermock/powermock/compare/powermock-2.0.0-beta.4...powermock-2.0.0-beta.5) by [Arthur Zagretdinov](https://github.com/thekingnothing) - published to [](https://bintray.com/powermock/null/powermock/2.0.0-beta.5)
- No pull requests referenced in commit messages.
**2.0.0-beta.4 (2017-09-17)** - [4 commits](https://github.com/powermock/powermock/compare/powermock-2.0.0-beta.3...powermock-2.0.0-beta.4) by [Arthur Zagretdinov](https://github.com/thekingnothing) - published to [](https://bintray.com/powermock/null/powermock-development/2.0.0-beta.4)
- No pull requests referenced in commit messages.
**2.0.0-beta.3 (2017-09-17)** - [1 commit](https://github.com/powermock/powermock/compare/powermock-2.0.0-beta.2...powermock-2.0.0-beta.3) by [Arthur Zagretdinov](https://github.com/thekingnothing) - published to [](https://bintray.com/thekingnothing/null/null/2.0.0-beta.3)
- No pull requests referenced in commit messages.
**2.0.0-beta.2 (2017-09-16)** - [4 commits](https://github.com/powermock/powermock/compare/powermock-2.0.0-beta.1...powermock-2.0.0-beta.2) by [Arthur Zagretdinov](https://github.com/thekingnothing) - published to [](https://bintray.com/powermock/maven/powermock/2.0.0-beta.2)
- [Bugfixes] @Mock annotation from easymock api does not work for two fields of the same type. [(#755)](https://github.com/powermock/powermock/issues/755)
**2.0.0-beta.1 (2017-09-10)** - [35 commits](https://github.com/powermock/powermock/compare/powermock-1.7.1...powermock-2.0.0-beta.1) by [Arthur Zagretdinov](https://github.com/thekingnothing) (32), [Wojtek Wilk](https://github.com/wwilk) (2), PowerMock Release Tools (1) - published to [](https://bintray.com/powermock/maven/powermock/2.0.0-beta.1)
- [Major changes] Mockito Public API Support Roadmap [(#726)](https://github.com/powermock/powermock/issues/726)
- [Enhancements] Removed deprecated code in PowerMock 2.0. [(#839)](https://github.com/powermock/powermock/issues/839)
- [Enhancements] Use Mockito Shipkit for CD [(#826)](https://github.com/powermock/powermock/issues/826)
- Shipkit pom customizations [(#831)](https://github.com/powermock/powermock/pull/831)
================================================
FILE: gradle/java-module.gradle
================================================
repositories {
mavenLocal()
mavenCentral()
jcenter()
}
group = "org.powermock"
apply plugin: 'propdeps'
apply plugin: 'propdeps-maven'
apply plugin: 'java'
targetCompatibility = 1.6
sourceCompatibility = 1.6
tasks.withType(JavaCompile) {
options.warnings = false
}
if (JavaVersion.current() == JavaVersion.VERSION_1_8) {
apply plugin: 'checkstyle'
checkstyle {
toolVersion = checkstyleVersion
configFile = rootProject.file('config/checkstyle/checkstyle.xml')
}
}
test{
exclude "**/*Defect*", "**/*TestCase*"
}
================================================
FILE: gradle/modules.gradle
================================================
def publishableModules = allprojects - rootProject - project(":powermock-api") - project(":powermock-classloading") - project(":powermock-modules") - project(":tests") - project(":tests").subprojects - project(":powermock-release") - project(":powermock-release").subprojects
configure(publishableModules) { project ->
apply from: "${gradleScriptDir}/java-module.gradle"
apply from: "${gradleScriptDir}/publishing/publishable-module.gradle"
apply from: "${gradleScriptDir}/publishing/publish.gradle"
}
def skippedTasksForUnpublishableModules = [
'generatePomFileForJavaLibraryPublication',
'publishJavaLibraryPublicationToMavenLocal',
'javadoc',
'javadocJar',
'sourcesJar',
'bintrayUpload',
'install'
]
def unpublishableModules = allprojects - publishableModules - project(":powermock-release").subprojects
configure(unpublishableModules) { project ->
project.tasks.all {
if(skippedTasksForUnpublishableModules.contains(it.name)) {
it.enabled = false
}
}
}
def skippedTasksForGenericModules = [
'generatePomFileForJavaLibraryPublication',
'publishJavaLibraryPublicationToMavenLocal',
'jar',
'javadoc',
'javadocJar',
'sourcesJar'
]
def genericModules = project(":powermock-release").subprojects
configure(genericModules) { project ->
project.tasks.all {
if (skippedTasksForGenericModules.contains(it.name)) {
it.enabled = false
}
}
}
if (project.hasProperty('checkJava6Compatibility') && !System.getenv("SKIP_RELEASE")) {
//if we're skipping release, let's also skip checking compatibility (faster builds)
configure(publishableModules) { project ->
project.apply plugin: 'ru.vyarus.animalsniffer'
project.dependencies {
signature 'org.codehaus.mojo.signature:java16:1.0@signature'
}
}
}
project(":powermock-reflect") {
description = "Various utilities for accessing internals of a class."
dependencies {
compile("org.objenesis:objenesis:${objenesisVersion}")
compile("net.bytebuddy:byte-buddy:${byteBuddy}")
compile("net.bytebuddy:byte-buddy-agent:${byteBuddy}")
testCompile("junit:junit:${junitVersion}") {
exclude group: 'org.hamcrest', module: 'hamcrest-core'
}
testCompile("org.hamcrest:hamcrest-core:${hamcrestVersion}")
testCompile("org.assertj:assertj-core:${assertjVersion}")
testCompile("cglib:cglib-nodep:${cglibVersion}")
}
}
project(":powermock-core") {
description = "Various utilities for accessing internals of a class."
dependencies {
compile(project(":powermock-reflect"))
compile("org.javassist:javassist:${javassistVersion}")
compile("net.bytebuddy:byte-buddy:${byteBuddy}")
compile("net.bytebuddy:byte-buddy-agent:${byteBuddy}")
testCompile("junit:junit:${junitVersion}") {
exclude group: 'org.hamcrest', module: 'hamcrest-core'
}
testCompile("org.hamcrest:hamcrest-core:${hamcrestVersion}")
testCompile("org.assertj:assertj-core:${assertjVersion}")
testCompile("com.github.stefanbirkner:system-rules:${systemRulesVersion}")
testCompile(project(":tests:utils"))
testCompile("org.mockito:mockito-core:${mockitoVersion}"){
exclude group: 'net.bytebuddy', module: 'byte-buddy'
exclude group: 'net.bytebuddy', module: 'byte-buddy-agent'
}
}
}
project(":powermock-api") {
jar {
enabled = false
}
}
project(":powermock-api:powermock-api-support") {
description = "PowerMock API Utility classes."
dependencies {
compile(project(":powermock-reflect"))
compile(project(":powermock-core"))
testCompile("junit:junit:${junitVersion}") {
exclude group: 'org.hamcrest', module: 'hamcrest-core'
}
testCompile("org.hamcrest:hamcrest-core:${hamcrestVersion}")
testCompile("org.assertj:assertj-core:${assertjVersion}")
}
}
project(":powermock-api:powermock-api-easymock") {
description = "PowerMock API for EasyMock."
dependencies {
compile(project(":powermock-api:powermock-api-support"))
compile("cglib:cglib-nodep:${cglibVersion}")
compile("org.easymock:easymock:${easymockVersion}")
testCompile("junit:junit:${junitVersion}") {
exclude group: 'org.hamcrest', module: 'hamcrest-core'
}
testCompile("org.hamcrest:hamcrest-core:${hamcrestVersion}")
testCompile("org.assertj:assertj-core:${assertjVersion}")
}
}
project(":powermock-api:powermock-api-mockito2"){
description = "PowerMock API for Mockito 2.+.."
dependencies {
compile(project(":powermock-api:powermock-api-support"))
compile("org.mockito:mockito-core:${mockitoVersion}"){
exclude group: 'net.bytebuddy', module: 'byte-buddy'
exclude group: 'net.bytebuddy', module: 'byte-buddy-agent'
}
testCompile("junit:junit:${junitVersion}") {
exclude group: 'org.hamcrest', module: 'hamcrest-core'
}
testCompile("org.hamcrest:hamcrest-core:${hamcrestVersion}")
testCompile("org.assertj:assertj-core:${assertjVersion}")
testCompile(project(":tests:utils"))
}
}
project(":powermock-classloading") {
jar {
enabled = false
}
}
project(":powermock-classloading:powermock-classloading-base") {
description = "Utilities for loading and executing classes."
dependencies {
compile(project(":powermock-api:powermock-api-support"))
compile(project(":powermock-reflect"))
compile(project(":powermock-core"))
testCompile("junit:junit:${junitVersion}") {
exclude group: 'org.hamcrest', module: 'hamcrest-core'
}
testCompile("org.hamcrest:hamcrest-core:${hamcrestVersion}")
testCompile("org.assertj:assertj-core:${assertjVersion}")
}
}
project(":powermock-classloading:powermock-classloading-objenesis") {
description = "Performs classloader deep-cloning using Objenesis."
dependencies {
compile(project(":powermock-classloading:powermock-classloading-base"))
testCompile("junit:junit:${junitVersion}") {
exclude group: 'org.hamcrest', module: 'hamcrest-core'
}
testCompile("org.hamcrest:hamcrest-core:${hamcrestVersion}")
testCompile("org.assertj:assertj-core:${assertjVersion}")
}
}
project(":powermock-classloading:powermock-classloading-xstream") {
description = "Performs classloader deep-cloning using X-Stream."
dependencies {
compile(project(":powermock-classloading:powermock-classloading-base"))
compile("com.thoughtworks.xstream:xstream:${xstreamVersion}")
testCompile("junit:junit:${junitVersion}") {
exclude group: 'org.hamcrest', module: 'hamcrest-core'
}
testCompile("org.hamcrest:hamcrest-core:${hamcrestVersion}")
testCompile("org.assertj:assertj-core:${assertjVersion}")
}
}
project(":powermock-modules") {
jar {
enabled = false
}
}
project(":powermock-modules:powermock-module-javaagent") {
description = "PowerMock Java agent support."
dependencies {
compile(project(":powermock-core"))
testCompile("junit:junit:${junitVersion}") {
exclude group: 'org.hamcrest', module: 'hamcrest-core'
}
testCompile("org.hamcrest:hamcrest-core:${hamcrestVersion}")
testCompile("org.assertj:assertj-core:${assertjVersion}")
}
jar {
manifest {
attributes(
"Manifest-Version": "1.0",
"Premain-Class": "org.powermock.modules.agent.PowerMockAgent",
"Agent-Class": "org.powermock.modules.agent.PowerMockAgent",
"Can-Retransform-Classes": true,
"Can-Redefine-Classes": true
)
}
}
}
project(":powermock-modules:powermock-module-junit4-common") {
description = "PowerMock support module for all versions of JUnit 4.x."
dependencies {
compile(project(":powermock-reflect"))
compile(project(":powermock-core"))
compile("junit:junit:${junitVersion}") {
exclude group: 'org.hamcrest', module: 'hamcrest-core'
}
compile("org.hamcrest:hamcrest-core:${hamcrestVersion}")
testCompile("org.assertj:assertj-core:${assertjVersion}")
}
}
project(":powermock-modules:powermock-module-junit4") {
description = "PowerMock support module for JUnit 4.x."
dependencies {
compile(project(":powermock-modules:powermock-module-junit4-common"))
compile("junit:junit:${junitVersion}") {
exclude group: 'org.hamcrest', module: 'hamcrest-core'
}
compile("org.hamcrest:hamcrest-core:${hamcrestVersion}")
testCompile("org.assertj:assertj-core:${assertjVersion}")
testCompile("org.easymock:easymock:${easymockVersion}")
}
}
project(":powermock-modules:powermock-module-junit4-legacy") {
description = "PowerMock support module for JUnit 4.0-4.3."
dependencies {
compile(project(":powermock-modules:powermock-module-junit4-common")) {
exclude group: 'junit', module: 'junit'
}
compile("junit:junit:4.3") {
exclude group: 'org.hamcrest', module: 'hamcrest-core'
}
compile("org.hamcrest:hamcrest-core:${hamcrestVersion}")
testCompile("org.assertj:assertj-core:${assertjVersion}")
}
}
project(":powermock-modules:powermock-module-junit4-rule") {
description = "PowerMock support module for JUnit 4.x rules."
dependencies {
compile(project(":powermock-core"))
compile(project(":powermock-modules:powermock-module-junit4-common"))
provided(project(":powermock-classloading:powermock-classloading-base"))
compile("junit:junit:${junitVersion}") {
exclude group: 'org.hamcrest', module: 'hamcrest-core'
}
compile("org.hamcrest:hamcrest-core:${hamcrestVersion}")
testCompile("org.assertj:assertj-core:${assertjVersion}")
}
}
project(":powermock-modules:powermock-module-junit4-rule-agent") {
description = "PowerMock support module for JUnit 4.x rules with Java agent"
dependencies {
compile(project(":powermock-core"))
compile(project(":powermock-modules:powermock-module-javaagent"))
compile("junit:junit:${junitVersion}") {
exclude group: 'org.hamcrest', module: 'hamcrest-core'
}
compile("org.hamcrest:hamcrest-core:${hamcrestVersion}")
testCompile("org.assertj:assertj-core:${assertjVersion}")
}
}
project(":powermock-modules:powermock-module-testng-common") {
description = "PowerMock module for TestNG. Common classes"
dependencies {
compile(project(":powermock-reflect"))
compile(project(":powermock-core"))
compile("org.testng:testng:${testngVersion}")
testCompile("org.hamcrest:hamcrest-core:${hamcrestVersion}")
testCompile("org.assertj:assertj-core:${assertjVersion}")
}
}
project(":powermock-modules:powermock-module-testng") {
description = "PowerMock module for TestNG."
dependencies {
compile(project(":powermock-core"))
compile(project(":powermock-modules:powermock-module-testng-common"))
compile("org.testng:testng:${testngVersion}")
testCompile("org.hamcrest:hamcrest-core:${hamcrestVersion}")
testCompile("org.assertj:assertj-core:${assertjVersion}")
}
}
project(":powermock-modules:powermock-module-testng-agent") {
description = "PowerMock module for TestNG with using Javaagent."
dependencies {
compile(project(":powermock-core"))
compile(project(":powermock-modules:powermock-module-testng-common"))
compile(project(":powermock-modules:powermock-module-javaagent"))
compile("org.testng:testng:${testngVersion}")
testCompile("org.hamcrest:hamcrest-core:${hamcrestVersion}")
testCompile("org.assertj:assertj-core:${assertjVersion}")
}
}
configure(publishableModules) { project ->
apply from: "${gradleScriptDir}/release/publish-jar.gradle"
}
================================================
FILE: gradle/publishing/publish-maven.gradle
================================================
apply plugin: 'maven-publish'
publishing.publications.all {
def devs = ['johanhaleby:Johan Haleby:johan.haleby at jayway.com', 'jakr:Jan Kronquist:jan.kronquist at jayway.com', 'thekingnothing:Arthur Zagretdinov:arthur.zagretdinov at outlook.com']
pom.withXml {
def root = asNode()
root.remove(root.get('name'))
root.appendNode('name', 'PowerMock')
root.remove(root.get('url'))
root.appendNode('url', 'http://www.powermock.org')
root.remove(root.get('licenses'))
def license = root.appendNode('licenses').appendNode('license')
license.appendNode('name', 'The Apache Software License, Version 2.0')
license.appendNode('url', 'http://www.apache.org/licenses/LICENSE-2.0.txt')
license.appendNode('distribution', 'repo')
def developers = root.appendNode('developers')
devs.each {
def split = it.split(':')
assert split.length == 3
def d = developers.appendNode('developer')
d.appendNode('id', split[0])
d.appendNode('name', split[1])
d.appendNode('email', split[2])
}
root.dependencies.'*'.findAll() {
it.scope.text() == 'runtime' && project.configurations.compile.allDependencies.find { dep ->
dep.name == it.artifactId.text()
}
}.each() {
it.scope*.value = 'compile'
}
def depends
if (root.dependencies.size() > 0) {
depends = root.dependencies.get(0)
}else{
depends = root.appendNode('dependencies')
}
if (project.configurations.hasProperty('provided')) {
project.configurations.provided.allDependencies.each {
def dep = depends.appendNode('dependency')
dep.appendNode('groupId', it.group)
dep.appendNode('artifactId', it.name)
dep.appendNode('version', it.version)
dep.appendNode('scope', 'provided')
}
}
if (project.configurations.hasProperty('mockito2')){
project.configurations.mockito2.allDependencies.each {
def dep = depends.appendNode('dependency')
dep.appendNode('groupId', it.group)
dep.appendNode('artifactId', it.name)
dep.appendNode('version', it.version)
dep.appendNode('scope', 'compile')
}
}
}
}
================================================
FILE: gradle/publishing/publish.gradle
================================================
bintray {
pkg {
repo = project.ext.bintrayRepo
}
}
================================================
FILE: gradle/publishing/publishable-module.gradle
================================================
ext {
bintrayRepo = 'maven'
bintrayAutoPublish = true
mavenCentralSync = false
bintrayPublications = ['javaLibrary']
}
jar {
manifest.attributes["Created-By"] =
"${System.getProperty("java.version")} (${System.getProperty("java.specification.vendor")})"
manifest.attributes["Implementation-Title"] = project.name
manifest.attributes["Implementation-Version"] = project.version
from("${rootProject.projectDir}") {
include "LICENSE.txt"
into "META-INF"
expand(copyright: new Date().format("yyyy"), version: project.version)
}
}
javadoc {
description = "Generates project-level javadoc for use in -javadoc jar"
options.memberLevel = org.gradle.external.javadoc.JavadocMemberLevel.PROTECTED
options.author = true
options.header = project.name
options.addStringOption('-quiet')
failOnError = false
}
artifacts {
archives sourcesJar
archives javadocJar
}
================================================
FILE: gradle/release/distZip.gradle
================================================
def fullJars = [
project(":powermock-release:powermock-easymock-junit"),
project(":powermock-release:powermock-easymock-testng"),
project(":powermock-release:powermock-mockito2-junit"),
project(":powermock-release:powermock-mockito2-testng")
]
configure(fullJars) { project ->
ext {
bintrayRepo = 'generic'
bintrayAutoPublish = true
mavenCentralSync = false
}
repositories {
mavenCentral()
jcenter()
}
group = "org.powermock"
apply plugin: 'distribution'
distributions {
main {
contents {
from(project.configurations.compile)
}
}
}
apply from: "${gradleScriptDir}/release/publish-distZip.gradle"
}
================================================
FILE: gradle/release/fullJars.gradle
================================================
def fullJars = [
project(":powermock-release:powermock-easymock"),
project(":powermock-release:powermock-mockito2")
]
configure(fullJars){ project ->
ext {
bintrayRepo = 'generic'
bintrayAutoPublish = true
mavenCentralSync = false
}
repositories {
mavenLocal()
mavenCentral()
jcenter()
}
group = "org.powermock"
apply plugin: 'java'
apply plugin: 'com.github.johnrengelman.shadow'
jar{
enabled = false
}
shadowJar {
baseName = project.name
version = project.version
classifier = "full"
manifest.attributes["Created-By"] =
"${System.getProperty("java.version")} (${System.getProperty("java.specification.vendor")})"
manifest.attributes["Implementation-Title"] = project.name + "-full"
manifest.attributes["Implementation-Version"] = project.version
from("${rootProject.projectDir}") {
include "LICENSE.txt"
into "META-INF"
expand(copyright: new Date().format("yyyy"), version: project.version)
}
dependencies {
exclude(dependency {
!it.name.toString().contains('powermock')
})
}
}
apply from: "${gradleScriptDir}/release/publish-fullJar.gradle"
}
================================================
FILE: gradle/release/publish-distZip.gradle
================================================
apply from: "${gradleScriptDir}/publishing/publish.gradle"
tasks.bintrayUpload.mustRunAfter "assembleDist"
bintray {
filesSpec{
from "$buildDir/distributions"
include '*.zip'
include '*.tar'
into 'distributions/'
}
}
================================================
FILE: gradle/release/publish-fullJar.gradle
================================================
apply from: "${gradleScriptDir}/publishing/publish.gradle"
tasks.bintrayUpload.mustRunAfter "shadowJar"
bintray {
configurations = ['shadow']
}
================================================
FILE: gradle/release/publish-jar.gradle
================================================
apply from: "${gradleScriptDir}/publishing/publish-maven.gradle"
tasks.bintrayUpload.mustRunAfter "build"
bintray {
publications = project.ext.bintrayPublications
}
================================================
FILE: gradle/shipkit.gradle
================================================
shipkit {
gitHub.repository = "powermock/powermock"
gitHub.readOnlyAuthToken = "0f1df49ac11364f542c9d3e6735ae64d010ab8e3"
git.user = "PowerMock Release Tools"
git.email = "<powermock.release.tools@outlook.com>"
git.releasableBranchRegex = "release/.+" // 'release/2.x', 'release/3.x', etc.
git.tagPrefix = "powermock-"
// fix for Intellj Idea, because IDE does not read env properties from ${user.home}/.profile file on MacOS
gitHub.writeAuthUser = System.getenv("GH_USER") != null ? System.getenv("GH_USER") : "GH_USER-not-set-dev-mode";
gitHub.writeAuthToken = System.getenv("GH_WRITE_TOKEN") != null ? System.getenv("GH_WRITE_TOKEN"): "GH_WRITE_TOKEN-not-set-dev-mode";
def buildNo = System.getenv("TRAVIS_BUILD_NUMBER")
git.commitMessagePostfix = buildNo? "by CI build $buildNo\n\n[ci skip]" : "by local build\n\n[ci skip]"
releaseNotes.file = "docs/release-notes/official.md"
releaseNotes.labelMapping = [
'epic': "Major changes",
'bug': "Bugfixes",
'enhancement': "Enhancements",
'android': "Android support",
'kotlin': "Kotlin support",
'component:mockito': "Mockito support",
'component:easymock': "EasyMock support",
'component:junit': "jUnit support",
'wiki': 'Documentation',
'regression': 'Fix regression bug'
]
releaseNotes.ignoreCommitsContaining = ["[ci skip]"]
}
boolean centralRelease = shouldReleaseToCentral(project)
String versionDescription = "PowerMock ${project.version} Final"
if (project.version.toString().contains("beta")){
versionDescription = "PowerMock ${project.version} Beta"
}else if (project.version.toString().contains("RC")){
versionDescription = "PowerMock ${project.version} Release Candidate"
}
allprojects {
plugins.withId("org.shipkit.bintray") {
bintray {
user = System.getenv('BINTRAY_USER')
key = System.getenv("BINTRAY_API_KEY")
publish = true
override = false
pkg {
userOrg = 'powermock'
name = centralRelease ? "powermock" : "powermock-development"
desc = project.description
websiteUrl = 'http://powermock.org'
issueTrackerUrl = 'https://powermock.com/powermock/powermock/issues'
vcsUrl = 'https://github.com/powermock/powermock.git'
licenses = ['Apache-2.0']
labels = ['java', 'mock', 'mocking', 'tests']
publicDownloadNumbers = true
// optional version attributes
version {
name = "powermock-${project.version}"
released = new Date()
desc = versionDescription
vcsTag = "powermock-${project.version}"
gpg {
sign = true
}
//Automatically syncs to central repository (https://oss.sonatype.org/)
mavenCentralSync {
sync = centralRelease
user = System.env.NEXUS_TOKEN_USER
password = System.env.NEXUS_TOKEN_PWD
}
}
}
}
}
}
/**
* Finds out if we should release to Maven Central.
* To test this logic, run build with '-i' (info logging) and inspect the build output.
*/
static boolean shouldReleaseToCentral(project) {
boolean centralReleaseByCommit = System.getenv("TRAVIS_COMMIT_MESSAGE")?.contains("[ci maven-central-release]")
boolean centralReleaseByProjectProperty = project.hasProperty("mavenCentralSync") ? project.ext.mavenCentralSync : false
boolean centralRelease = (centralReleaseByCommit || centralReleaseByProjectProperty)
String message = """Release was using following settings:
- commit message contains '[ci maven-central-release]': $centralReleaseByCommit
- project property 'mavenCentralSync' has value: $centralReleaseByProjectProperty
- Maven Central release is enabled: $centralRelease"""
project.logger.info(message)
return centralRelease
}
================================================
FILE: gradle/version.gradle
================================================
def v = Version.versionFile(project.file("version.properties"))
allprojects{
project.version = v.version
project.ext.versionFile = v
}
logger.lifecycle "Version: $project.version"
class Version{
static VersionFile versionFile(file) {
return new VersionFile(file)
}
}
class VersionFile{
private final File file
private version
VersionFile(file){
this.file = file
}
def getVersion() {
if (version == null){
readVersion()
}
return version
}
private readVersion() {
Properties p = new Properties()
FileReader reader = null
try {
reader = new FileReader(file)
p.load(reader)
} catch (Exception ignored) {
throw new RuntimeException("Cannot read version file: " + file)
} finally {
if (reader != null){
reader.close()
}
}
version = p.getProperty("version")
}
}
================================================
FILE: gradle/wrapper/gradle-wrapper.properties
================================================
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-bin.zip
================================================
FILE: gradle.properties
================================================
org.gradle.daemon=true
//org.gradle.parallel=true
================================================
FILE: gradlew
================================================
#!/usr/bin/env sh
##############################################################################
##
## Gradle start up script for UN*X
##
##############################################################################
# Attempt to set APP_HOME
# Resolve links: $0 may be a link
PRG="$0"
# Need this for relative symlinks.
while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG"`"/$link"
fi
done
SAVED="`pwd`"
cd "`dirname \"$PRG\"`/" >/dev/null
APP_HOME="`pwd -P`"
cd "$SAVED" >/dev/null
APP_NAME="Gradle"
APP_BASE_NAME=`basename "$0"`
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS=""
# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD="maximum"
warn () {
echo "$*"
}
die () {
echo
echo "$*"
echo
exit 1
}
# OS specific support (must be 'true' or 'false').
cygwin=false
msys=false
darwin=false
nonstop=false
case "`uname`" in
CYGWIN* )
cygwin=true
;;
Darwin* )
darwin=true
;;
MINGW* )
msys=true
;;
NONSTOP* )
nonstop=true
;;
esac
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
# Determine the Java command to use to start the JVM.
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
# IBM's JDK on AIX uses strange locations for the executables
JAVACMD="$JAVA_HOME/jre/sh/java"
else
JAVACMD="$JAVA_HOME/bin/java"
fi
if [ ! -x "$JAVACMD" ] ; then
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
else
JAVACMD="java"
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
# Increase the maximum file descriptors if we can.
if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
MAX_FD_LIMIT=`ulimit -H -n`
if [ $? -eq 0 ] ; then
if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
MAX_FD="$MAX_FD_LIMIT"
fi
ulimit -n $MAX_FD
if [ $? -ne 0 ] ; then
warn "Could not set maximum file descriptor limit: $MAX_FD"
fi
else
warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
fi
fi
# For Darwin, add options to specify how the application appears in the dock
if $darwin; then
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
fi
# For Cygwin, switch paths to Windows format before running java
if $cygwin ; then
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
JAVACMD=`cygpath --unix "$JAVACMD"`
# We build the pattern for arguments to be converted via cygpath
ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
SEP=""
for dir in $ROOTDIRSRAW ; do
ROOTDIRS="$ROOTDIRS$SEP$dir"
SEP="|"
done
OURCYGPATTERN="(^($ROOTDIRS))"
# Add a user-defined pattern to the cygpath arguments
if [ "$GRADLE_CYGPATTERN" != "" ] ; then
OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
fi
# Now convert the arguments - kludge to limit ourselves to /bin/sh
i=0
for arg in "$@" ; do
CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
else
eval `echo args$i`="\"$arg\""
fi
i=$((i+1))
done
case $i in
(0) set -- ;;
(1) set -- "$args0" ;;
(2) set -- "$args0" "$args1" ;;
(3) set -- "$args0" "$args1" "$args2" ;;
(4) set -- "$args0" "$args1" "$args2" "$args3" ;;
(5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
(6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
(7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
(8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
(9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
esac
fi
# Escape application args
save () {
for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
echo " "
}
APP_ARGS=$(save "$@")
# Collect all arguments for the java command, following the shell quoting and substitution rules
eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
cd "$(dirname "$0")"
fi
exec "$JAVACMD" "$@"
================================================
FILE: gradlew.bat
================================================
@if "%DEBUG%" == "" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@rem
@rem ##########################################################################
@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal
set DIRNAME=%~dp0
if "%DIRNAME%" == "" set DIRNAME=.
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS=
@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome
set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if "%ERRORLEVEL%" == "0" goto init
echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
goto fail
:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
if exist "%JAVA_EXE%" goto init
echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
goto fail
:init
@rem Get command-line arguments, handling Windows variants
if not "%OS%" == "Windows_NT" goto win9xME_args
:win9xME_args
@rem Slurp the command line arguments.
set CMD_LINE_ARGS=
set _SKIP=2
:win9xME_args_slurp
if "x%~1" == "x" goto execute
set CMD_LINE_ARGS=%*
:execute
@rem Setup the command line
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
:end
@rem End local scope for the variables with windows NT shell
if "%ERRORLEVEL%"=="0" goto mainEnd
:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
exit /b 1
:mainEnd
if "%OS%"=="Windows_NT" endlocal
:omega
================================================
FILE: powermock-api/powermock-api-easymock/src/main/java/org/powermock/api/easymock/EasyMockConfiguration.java
================================================
/*
* Copyright 2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package org.powermock.api.easymock;
/**
* Configuration information about EasyMock framework and which feature is supported by version of EasyMock in runtime.
*
* @since 1.6.5
*/
public class EasyMockConfiguration {
private static final EasyMockConfiguration INSTANCE = new EasyMockConfiguration();
private boolean testSubjectSupported;
private boolean reallyEasyMock;
private boolean injectMocksSupported;
private EasyMockConfiguration() {
initTestSubjectSupported();
initReallyEasyMock();
initInjectMocksSupported();
}
public static EasyMockConfiguration getConfiguration() {
return INSTANCE;
}
private void initTestSubjectSupported() {
try {
Class.forName("org.easymock.TestSubject");
testSubjectSupported = true;
} catch (ClassNotFoundException e) {
testSubjectSupported = false;
}
}
private void initReallyEasyMock() {
try {
Class.forName("org.easymock.EasyMockSupport");
reallyEasyMock = true;
} catch (ClassNotFoundException e) {
reallyEasyMock = false;
}
}
private void initInjectMocksSupported() {
try {
Class<?> clazz = Class.forName("org.easymock.EasyMockSupport");
clazz.getDeclaredMethod("injectMocks", Object.class);
injectMocksSupported = true;
} catch (NoSuchMethodException e) {
injectMocksSupported = false;
} catch (ClassNotFoundException e) {
injectMocksSupported = false;
}
}
public boolean isInjectMocksSupported() {
return injectMocksSupported;
}
public boolean isReallyEasyMock() {
return reallyEasyMock;
}
public boolean isTestSubjectSupported() {
return testSubjectSupported;
}
}
================================================
FILE: powermock-api/powermock-api-easymock/src/main/java/org/powermock/api/easymock/PowerMock.java
================================================
/*
* Copyright 2008 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.powermock.api.easymock;
import net.sf.cglib.proxy.Enhancer;
import org.easymock.ConstructorArgs;
import org.easymock.IExpectationSetters;
import org.easymock.IMocksControl;
import org.easymock.internal.LastControl;
import org.easymock.internal.MockInvocationHandler;
import org.easymock.internal.MocksControl;
import org.powermock.api.easymock.internal.invocationcontrol.EasyMockMethodInvocationControl;
import org.powermock.api.easymock.internal.invocationcontrol.NewInvocationControlAssertionError;
import org.powermock.api.easymock.internal.invocationcontrol.EasyMockNewInvocationControl;
import org.powermock.api.easymock.internal.mockstrategy.MockStrategy;
import org.powermock.api.easymock.internal.mockstrategy.impl.DefaultMockStrategy;
import org.powermock.api.easymock.internal.mockstrategy.impl.NiceMockStrategy;
import org.powermock.api.easymock.internal.mockstrategy.impl.StrictMockStrategy;
import org.powermock.api.support.SuppressCode;
import org.powermock.api.support.membermodification.MemberModifier;
import org.powermock.core.ClassReplicaCreator;
import org.powermock.core.DefaultFieldValueGenerator;
import org.powermock.core.MockGateway;
import org.powermock.core.MockRepository;
import org.powermock.core.classloader.MockClassLoader;
import org.powermock.core.classloader.annotations.PrepareForTest;
import org.powermock.core.classloader.annotations.PrepareOnlyThisForTest;
import org.powermock.core.classloader.annotations.SuppressStaticInitializationFor;
import org.powermock.core.spi.MethodInvocationControl;
import org.powermock.core.spi.NewInvocationControl;
import org.powermock.core.spi.support.InvocationSubstitute;
import org.powermock.reflect.Whitebox;
import org.powermock.reflect.internal.WhiteboxImpl;
import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.lang.reflect.Proxy;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Set;
/**
* PowerMock extends EasyMock functionality with several new features such as
* mocking static and private methods, mocking new instances and more. Use
* PowerMock instead of EasyMock where applicable.
*/
public class PowerMock extends MemberModifier {
private static final String NICE_REPLAY_AND_VERIFY_KEY = "PowerMock.niceReplayAndVerify";
static {
MockGateway.MOCK_STANDARD_METHODS = false;
MockGateway.MOCK_GET_CLASS_METHOD = false;
}
/**
* Creates a mock object that supports mocking of final and native methods.
*
* @param <T> the type of the mock object
* @param type the type of the mock object
* @param methods optionally what methods to mock
* @return the mock object.
*/
public static synchronized <T> T createMock(Class<T> type, Method... methods) {
return doMock(type, false, new DefaultMockStrategy(), null, methods);
}
/**
* Creates a mock object that supports mocking of final and native methods.
*
* @param <T> the type of the mock object
* @param type the type of the mock object
* @return the mock object.
*/
public static synchronized <T> T createMock(Class<T> type) {
return doMock(type, false, new DefaultMockStrategy(), null, (Method[]) null);
}
/**
* Creates a mock object that supports mocking of final and native methods
* and invokes a specific constructor.
*
* @param <T> the type of the mock object
* @param type the type of the mock object
* @param constructorArgs The constructor arguments that will be used to invoke a
* special constructor.
* @param methods optionally what methods to mock
* @return the mock object.
*/
public static <T> T createMock(Class<T> type, ConstructorArgs constructorArgs, Method... methods) {
return doMock(type, false, new DefaultMockStrategy(), constructorArgs, methods);
}
/**
* Creates a mock object that supports mocking of final and native methods
* and invokes a specific constructor based on the supplied argument values.
*
* @param <T> the type of the mock object
* @param type the type of the mock object
* @param constructorArguments The constructor arguments that will be used to invoke a
* certain constructor.
* @return the mock object.
*/
public static <T> T createMock(Class<T> type, Object... constructorArguments) {
Constructor<?> constructor = WhiteboxImpl.findUniqueConstructorOrThrowException(type, constructorArguments);
ConstructorArgs constructorArgs = new ConstructorArgs(constructor, constructorArguments);
return doMock(type, false, new DefaultMockStrategy(), constructorArgs, (Method[]) null);
}
/**
* Creates a strict mock object that supports mocking of final and native
* methods.
*
* @param <T> the type of the mock object
* @param type the type of the mock object
* @param methods optionally what methods to mock
* @return the mock object.
*/
public static synchronized <T> T createStrictMock(Class<T> type, Method... methods) {
return doMock(type, false, new StrictMockStrategy(), null, methods);
}
/**
* Creates a strict mock object that supports mocking of final and native
* methods.
*
* @param <T> the type of the mock object
* @param type the type of the mock object
* @return the mock object.
*/
public static synchronized <T> T createStrictMock(Class<T> type) {
return doMock(type, false, new StrictMockStrategy(), null, (Method[]) null);
}
/**
* Creates a nice mock object that supports mocking of final and native
* methods.
*
* @param <T> the type of the mock object
* @param type the type of the mock object
* @param methods optionally what methods to mock
* @return the mock object.
*/
public static synchronized <T> T createNiceMock(Class<T> type, Method... methods) {
return doMock(type, false, new NiceMockStrategy(), null, methods);
}
/**
* Creates a nice mock object that supports mocking of final and native
* methods.
*
* @param <T> the type of the mock object
* @param type the type of the mock object
* @return the mock object.
*/
public static synchronized <T> T createNiceMock(Class<T> type) {
return doMock(type, false, new NiceMockStrategy(), null, (Method[]) null);
}
/**
* Creates a strict mock object that supports mocking of final and native
* methods and invokes a specific constructor.
*
* @param <T> the type of the mock object
* @param type the type of the mock object
* @param constructorArgs The constructor arguments that will be used to invoke a
* special constructor.
* @param methods optionally what methods to mock
* @return the mock object.
*/
public static <T> T createStrictMock(Class<T> type, ConstructorArgs constructorArgs, Method... methods) {
return doMock(type, false, new StrictMockStrategy(), constructorArgs, methods);
}
/**
* Creates a nice mock object that supports mocking of final and native
* methods and invokes a specific constructor.
*
* @param <T> the type of the mock object
* @param type the type of the mock object
* @param constructorArgs The constructor arguments that will be used to invoke a
* special constructor.
* @param methods optionally what methods to mock
* @return the mock object.
*/
public static <T> T createNiceMock(Class<T> type, ConstructorArgs constructorArgs, Method... methods) {
return doMock(type, false, new NiceMockStrategy(), constructorArgs, methods);
}
/**
* Creates a strict mock object that supports mocking of final and native
* methods and invokes a specific constructor based on the supplied argument
* values.
*
* @param <T> the type of the mock object
* @param type the type of the mock object
* @param constructorArguments The constructor arguments that will be used to invoke a
* certain constructor.
* @return the mock object.
*/
public static <T> T createStrictMock(Class<T> type, Object... constructorArguments) {
Constructor<?> constructor = WhiteboxImpl.findUniqueConstructorOrThrowException(type, constructorArguments);
ConstructorArgs constructorArgs = new ConstructorArgs(constructor, constructorArguments);
return doMock(type, false, new StrictMockStrategy(), constructorArgs, (Method[]) null);
}
/**
* Creates a nice mock object that supports mocking of final and native
* methods and invokes a specific constructor based on the supplied argument
* values.
*
* @param <T> the type of the mock object
* @param type the type of the mock object
* @param constructorArguments The constructor arguments that will be used to invoke a
* certain constructor.
* @return the mock object.
*/
public static <T> T createNiceMock(Class<T> type, Object... constructorArguments) {
Constructor<?> constructor = WhiteboxImpl.findUniqueConstructorOrThrowException(type, constructorArguments);
ConstructorArgs constructorArgs = new ConstructorArgs(constructor, constructorArguments);
return doMock(type, false, new NiceMockStrategy(), constructorArgs, (Method[]) null);
}
/**
* Enable static mocking for a class.
*
* @param type the class to enable static mocking
* @param methods optionally what methods to mock
*/
public static synchronized void mockStatic(Class<?> type, Method... methods) {
doMock(type, true, new DefaultMockStrategy(), null, methods);
}
/**
* Enable static mocking for a class.
*
* @param type the class to enable static mocking
*/
public static synchronized void mockStatic(Class<?> type) {
doMock(type, true, new DefaultMockStrategy(), null, (Method[]) null);
}
/**
* Enable strict static mocking for a class.
*
* @param type the class to enable static mocking
* @param methods optionally what methods to mock
*/
public static synchronized void mockStaticStrict(Class<?> type, Method... methods) {
doMock(type, true, new StrictMockStrategy(), null, methods);
}
/**
* Enable strict static mocking for a class.
*
* @param type the class to enable static mocking
*/
public static synchronized void mockStaticStrict(Class<?> type) {
doMock(type, true, new StrictMockStrategy(), null, (Method[]) null);
}
/**
* Enable nice static mocking for a class.
*
* @param type the class to enable static mocking
* @param methods optionally what methods to mock
*/
public static synchronized void mockStaticNice(Class<?> type, Method... methods) {
doMock(type, true, new NiceMockStrategy(), null, methods);
}
/**
* Enable nice static mocking for a class.
*
* @param type the class to enable static mocking
*/
public static synchronized void mockStaticNice(Class<?> type) {
doMock(type, true, new NiceMockStrategy(), null, (Method[]) null);
}
/**
* A utility method that may be used to specify several methods that should
* <i>not</i> be mocked in an easy manner (by just passing in the method
* names of the method you wish <i>not</i> to mock). Note that you cannot
* uniquely specify a method to exclude using this method if there are
* several methods with the same name in {@code type}. This method will
* mock ALL methods that doesn't match the supplied name(s) regardless of
* parameter types and signature. If this is not the case you should
* fall-back on using the {@link #createMock(Class, Method...)} method
* instead.
*
* @param <T> The type of the mock.
* @param type The type that'll be used to create a mock instance.
* @param methodNames The names of the methods that should be mocked. If
* {@code null}, then this method will have the same effect
* as just calling {@link #createMock(Class, Method...)} with the
* second parameter as {@code new Method[0]} (i.e. all
* methods in that class will be mocked).
* @return A mock object of type <T>.
*/
public static synchronized <T> T createPartialMockForAllMethodsExcept(Class<T> type, String... methodNames) {
if (methodNames != null && methodNames.length == 0) {
return createMock(type);
}
return createMock(type, WhiteboxImpl.getAllMethodExcept(type, methodNames));
}
/**
* A utility method that may be used to specify several methods that should
* <i>not</i> be nicely mocked in an easy manner (by just passing in the
* method names of the method you wish <i>not</i> to mock). Note that you
* cannot uniquely specify a method to exclude using this method if there
* are several methods with the same name in {@code type}. This method
* will mock ALL methods that doesn't match the supplied name(s) regardless
* of parameter types and signature. If this is not the case you should
* fall-back on using the {@link #createMock(Class, Method...)} method
* instead.
*
* @param <T> The type of the mock.
* @param type The type that'll be used to create a mock instance.
* @param methodNames The names of the methods that should be mocked. If
* {@code null}, then this method will have the same effect
* as just calling {@link #createMock(Class, Method...)} with the
* second parameter as {@code new Method[0]} (i.e. all
* methods in that class will be mocked).
* @return A mock object of type <T>.
*/
public static synchronized <T> T createNicePartialMockForAllMethodsExcept(Class<T> type, String... methodNames) {
if (methodNames != null && methodNames.length == 0) {
return createNiceMock(type);
}
return createNiceMock(type, WhiteboxImpl.getAllMethodExcept(type, methodNames));
}
/**
* A utility method that may be used to specify several methods that should
* <i>not</i> be strictly mocked in an easy manner (by just passing in the
* method names of the method you wish <i>not</i> to mock). Note that you
* cannot uniquely specify a method to exclude using this method if there
* are several methods with the same name in {@code type}. This method
* will mock ALL methods that doesn't match the supplied name(s) regardless
* of parameter types and signature. If this is not the case you should
* fall-back on using the {@link #createMock(Class, Method...)} method
* instead.
*
* @param <T> The type of the mock.
* @param type The type that'll be used to create a mock instance.
* @param methodNames The names of the methods that should be mocked. If
* {@code null}, then this method will have the same effect
* as just calling {@link #createMock(Class, Method...)} with the
* second parameter as {@code new Method[0]} (i.e. all
* methods in that class will be mocked).
* @return A mock object of type <T>.
*/
public static synchronized <T> T createStrictPartialMockForAllMethodsExcept(Class<T> type, String... methodNames) {
if (methodNames != null && methodNames.length == 0) {
return createStrictMock(type);
}
return createStrictMock(type, WhiteboxImpl.getAllMethodExcept(type, methodNames));
}
/**
* Mock all methods of a class except for a specific one. Use this method
* only if you have several overloaded methods.
*
* @param <T> The type of the mock.
* @param type The type that'll be used to create a mock instance.
* @param methodNameToExclude The name of the method not to mock.
* @param firstArgumentType The type of the first parameter of the method not to mock
* @param moreTypes Optionally more parameter types that defines the method. Note
* that this is only needed to separate overloaded methods.
* @return A mock object of type <T>.
*/
public static synchronized <T> T createPartialMockForAllMethodsExcept(Class<T> type, String methodNameToExclude,
Class<?> firstArgumentType, Class<?>... moreTypes) {
/*
* The reason why we've split the first and "additional types" is
* because it should not intervene with the mockAllExcept(type,
* String...methodNames) method.
*/
final Class<?>[] argumentTypes = mergeArgumentTypes(firstArgumentType, moreTypes);
return createMock(type, WhiteboxImpl.getAllMethodsExcept(type, methodNameToExclude, argumentTypes));
}
/**
* Mock all methods of a class except for a specific one nicely. Use this
* method only if you have several overloaded methods.
*
* @param <T> The type of the mock.
* @param type The type that'll be used to create a mock instance.
* @param methodNameToExclude The name of the method not to mock.
* @param firstArgumentType The type of the first parameter of the method not to mock
* @param moreTypes Optionally more parameter types that defines the method. Note
* that this is only needed to separate overloaded methods.
* @return A mock object of type <T>.
*/
public static synchronized <T> T createNicePartialMockForAllMethodsExcept(Class<T> type,
String methodNameToExclude, Class<?> firstArgumentType, Class<?>... moreTypes) {
/*
* The reason why we've split the first and "additional types" is
* because it should not intervene with the mockAllExcept(type,
* String...methodNames) method.
*/
final Class<?>[] argumentTypes = mergeArgumentTypes(firstArgumentType, moreTypes);
return createNiceMock(type, WhiteboxImpl.getAllMethodsExcept(type, methodNameToExclude, argumentTypes));
}
/**
* Mock all methods of a class except for a specific one strictly. Use this
* method only if you have several overloaded methods.
*
* @param <T> The type of the mock.
* @param type The type that'll be used to create a mock instance.
* @param methodNameToExclude The name of the method not to mock.
* @param firstArgumentType The type of the first parameter of the method not to mock
* @param moreTypes Optionally more parameter types that defines the method. Note
* that this is only needed to separate overloaded methods.
* @return A mock object of type <T>.
*/
public static synchronized <T> T createStrictPartialMockForAllMethodsExcept(Class<T> type,
String methodNameToExclude, Class<?> firstArgumentType, Class<?>... moreTypes) {
/*
* The reason why we've split the first and "additional types" is
* because it should not intervene with the mockAllExcept(type,
* String...methodNames) method.
*/
final Class<?>[] argumentTypes = mergeArgumentTypes(firstArgumentType, moreTypes);
return createStrictMock(type, WhiteboxImpl.getAllMethodsExcept(type, methodNameToExclude, argumentTypes));
}
/**
* Mock a single specific method. Use this to handle overloaded methods.
*
* @param <T> The type of the mock.
* @param type The type that'll be used to create a mock instance.
* @param methodNameToMock The name of the method to mock
* @param firstArgumentType The type of the first parameter of the method to mock
* @param additionalArgumentTypes Optionally more parameter types that defines the method. Note
* that this is only needed to separate overloaded methods.
* @return A mock object of type <T>.
*/
public static synchronized <T> T createPartialMock(Class<T> type, String methodNameToMock,
Class<?> firstArgumentType, Class<?>... additionalArgumentTypes) {
return doMockSpecific(type, new DefaultMockStrategy(), new String[]{methodNameToMock}, null,
mergeArgumentTypes(firstArgumentType, additionalArgumentTypes));
}
/**
* Strictly mock a single specific method. Use this to handle overloaded
* methods.
*
* @param <T> The type of the mock.
* @param type The type that'll be used to create a mock instance.
* @param methodNameToMock The name of the method to mock
* @param firstArgumentType The type of the first parameter of the method to mock
* @param additionalArgumentTypes Optionally more parameter types that defines the method. Note
* that this is only needed to separate overloaded methods.
* @return A mock object of type <T>.
*/
public static synchronized <T> T createStrictPartialMock(Class<T> type, String methodNameToMock,
Class<?> firstArgumentType, Class<?>... additionalArgumentTypes) {
return doMockSpecific(type, new StrictMockStrategy(), new String[]{methodNameToMock}, null,
mergeArgumentTypes(firstArgumentType, additionalArgumentTypes));
}
/**
* Nicely mock a single specific method. Use this to handle overloaded
* methods.
*
* @param <T> The type of the mock.
* @param type The type that'll be used to create a mock instance.
* @param methodNameToMock The name of the method to mock
* @param firstArgumentType The type of the first parameter of the method to mock
* @param additionalArgumentTypes Optionally more parameter types that defines the method. Note
* that this is only needed to separate overloaded methods.
* @return A mock object of type <T>.
*/
public static synchronized <T> T createNicePartialMock(Class<T> type, String methodNameToMock,
Class<?> firstArgumentType, Class<?>... additionalArgumentTypes) {
return doMockSpecific(type, new NiceMockStrategy(), new String[]{methodNameToMock}, null,
mergeArgumentTypes(firstArgumentType, additionalArgumentTypes));
}
/**
* Mock a single static method.
*
* @param clazz The class where the method is specified in.
* @param methodNameToMock The first argument
* @param firstArgumentType The first argument type.
* @param additionalArgumentTypes Optional additional argument types.
*/
public static synchronized void mockStaticPartial(Class<?> clazz, String methodNameToMock,
Class<?> firstArgumentType, Class<?>... additionalArgumentTypes) {
doMockSpecific(clazz, new DefaultMockStrategy(), new String[]{methodNameToMock}, null,
mergeArgumentTypes(firstArgumentType, additionalArgumentTypes));
}
/**
* Mock a single static method (strict).
*
* @param clazz The class where the method is specified in.
* @param methodNameToMock The first argument
* @param firstArgumentType The first argument type.
* @param additionalArgumentTypes Optional additional argument types.
*/
public static synchronized void mockStaticPartialStrict(Class<?> clazz, String methodNameToMock,
Class<?> firstArgumentType, Class<?>... additionalArgumentTypes) {
doMockSpecific(clazz, new StrictMockStrategy(), new String[]{methodNameToMock}, null,
mergeArgumentTypes(firstArgumentType, additionalArgumentTypes));
}
/**
* Mock a single static method (nice).
*
* @param clazz The class where the method is specified in.
* @param methodNameToMock The first argument
* @param firstArgumentType The first argument type.
* @param additionalArgumentTypes Optional additional argument types.
*/
public static synchronized void mockStaticPartialNice(Class<?> clazz, String methodNameToMock,
Class<?> firstArgumentType, Class<?>... additionalArgumentTypes) {
doMockSpecific(clazz, new NiceMockStrategy(), new String[]{methodNameToMock}, null,
mergeArgumentTypes(firstArgumentType, additionalArgumentTypes));
}
/**
* A utility method that may be used to mock several <b>static</b> methods
* in an easy way (by just passing in the method names of the method you
* wish to mock). Note that you cannot uniquely specify a method to mock
* using this method if there are several methods with the same name in
* {@code type}. This method will mock ALL methods that match the
* supplied name regardless of parameter types and signature. If this is the
* case you should fall-back on using the
* {@link #mockStatic(Class, Method...)} method instead.
*
* @param clazz The class that contains the static methods that should be
* mocked.
* @param methodNames The names of the methods that should be mocked. If
* {@code null}, then this method will have the same effect
* as just calling {@link #mockStatic(Class, Method...)} with the
* second parameter as {@code new Method[0]} (i.e. all
* methods in that class will be mocked).
*/
public static synchronized void mockStaticPartial(Class<?> clazz, String... methodNames) {
mockStatic(clazz, Whitebox.getMethods(clazz, methodNames));
}
/**
* A utility method that may be used to mock several <b>static</b> methods
* (strict) in an easy way (by just passing in the method names of the
* method you wish to mock). Note that you cannot uniquely specify a method
* to mock using this method if there are several methods with the same name
* in {@code type}. This method will mock ALL methods that match the
* supplied name regardless of parameter types and signature. If this is the
* case you should fall-back on using the
* {@link #mockStaticStrict(Class, Method...)} method instead.
*
* @param clazz The class that contains the static methods that should be
* mocked.
* @param methodNames The names of the methods that should be mocked. If
* {@code null}, then this method will have the same effect
* as just calling {@link #mockStatic(Class, Method...)} with the
* second parameter as {@code new Method[0]} (i.e. all
* methods in that class will be mocked).
*/
public static synchronized void mockStaticPartialStrict(Class<?> clazz, String... methodNames) {
mockStaticStrict(clazz, Whitebox.getMethods(clazz, methodNames));
}
/**
* A utility method that may be used to mock several <b>static</b> methods
* (nice) in an easy way (by just passing in the method names of the method
* you wish to mock). Note that you cannot uniquely specify a method to mock
* using this method if there are several methods with the same name in
* {@code type}. This method will mock ALL methods that match the
* supplied name regardless of parameter types and signature. If this is the
* case you should fall-back on using the
* {@link #mockStaticStrict(Class, Method...)} method instead.
*
* @param clazz The class that contains the static methods that should be
* mocked.
* @param methodNames The names of the methods that should be mocked. If
* {@code null}, then this method will have the same effect
* as just calling {@link #mockStatic(Class, Method...)} with the
* second parameter as {@code new Method[0]} (i.e. all
* methods in that class will be mocked).
*/
public static synchronized void mockStaticPartialNice(Class<?> clazz, String... methodNames) {
mockStaticNice(clazz, Whitebox.getMethods(clazz, methodNames));
}
static <T> T doMockSpecific(Class<T> type, MockStrategy mockStrategy, String[] methodNamesToMock,
ConstructorArgs constructorArgs, Class<?>... argumentTypes) {
List<Method> methods = new LinkedList<Method>();
for (String methodName : methodNamesToMock) {
methods.add(WhiteboxImpl.findMethodOrThrowException(type, methodName, argumentTypes));
}
final Method[] methodArray = methods.toArray(new Method[0]);
if (WhiteboxImpl.areAllMethodsStatic(methodArray)) {
if (mockStrategy instanceof DefaultMockStrategy) {
mockStatic(type, methodArray);
} else if (mockStrategy instanceof StrictMockStrategy) {
mockStaticStrict(type, methodArray);
} else {
mockStaticNice(type, methodArray);
}
return null;
}
T mock = null;
if (mockStrategy instanceof DefaultMockStrategy) {
mock = createMock(type, constructorArgs, methodArray);
} else if (mockStrategy instanceof StrictMockStrategy) {
mock = createStrictMock(type, constructorArgs, methodArray);
} else {
mock = createNiceMock(type, constructorArgs, methodArray);
}
return mock;
}
/**
* A utility method that may be used to mock several methods in an easy way
* (by just passing in the method names of the method you wish to mock).
* Note that you cannot uniquely specify a method to mock using this method
* if there are several methods with the same name in {@code type}.
* This method will mock ALL methods that match the supplied name regardless
* of parameter types and signature. If this is the case you should
* fall-back on using the {@link #createMock(Class, Method...)} method
* instead.
*
* @param <T> The type of the mock.
* @param type The type that'll be used to create a mock instance.
* @param methodNames The names of the methods that should be mocked. If
* {@code null}, then this method will have the same effect
* as just calling {@link #createMock(Class, Method...)} with the
* second parameter as {@code new Method[0]} (i.e. all
* methods in that class will be mocked).
* @return A mock object of type <T>.
*/
public static synchronized <T> T createPartialMock(Class<T> type, String... methodNames) {
return createMock(type, Whitebox.getMethods(type, methodNames));
}
/**
* A utility method that may be used to mock several methods in an easy way
* (by just passing in the method names of the method you wish to mock).
* Note that you cannot uniquely specify a method to mock using this method
* if there are several methods with the same name in {@code type}.
* This method will mock ALL methods that match the supplied name regardless
* of parameter types and signature. If this is the case you should
* fall-back on using the {@link #createMock(Class, Method...)} method
* instead.
* <p/>
* With this method you can specify where the class hierarchy the methods
* are located. This is useful in, for example, situations where class A
* extends B and both have a method called "mockMe" (A overrides B's mockMe
* method) and you like to specify the only the "mockMe" method in B should
* be mocked. "mockMe" in A should be left intact. In this case you should
* do:
* <p/>
* <pre>
* A tested = createPartialMock(A.class, B.class, "mockMe");
* </pre>
*
* @param <T> The type of the mock.
* @param type The type that'll be used to create a mock instance.
* @param where Where in the class hierarchy the methods resides.
* @param methodNames The names of the methods that should be mocked. If
* {@code null}, then this method will have the same effect
* as just calling {@link #createMock(Class, Method...)} with the
* second parameter as {@code new Method[0]} (i.e. all
* methods in that class will be mocked).
* @return A mock object of type <T>.
*/
public static synchronized <T> T createPartialMock(Class<T> type, Class<? super T> where, String... methodNames) {
return createMock(type, Whitebox.getMethods(where, methodNames));
}
/**
* A utility method that may be used to strictly mock several methods in an
* easy way (by just passing in the method names of the method you wish to
* mock). Note that you cannot uniquely specify a method to mock using this
* method if there are several methods with the same name in
* {@code type}. This method will mock ALL methods that match the
* supplied name regardless of parameter types and signature. If this is the
* case you should fall-back on using the
* {@link #createMock(Class, Method...)} method instead.
*
* @param <T> The type of the mock.
* @param type The type that'll be used to create a mock instance.
* @param methodNames The names of the methods that should be mocked. If
* {@code null}, then this method will have the same effect
* as just calling {@link #createMock(Class, Method...)} with the
* second parameter as {@code new Method[0]} (i.e. all
* methods in that class will be mocked).
* @return A mock object of type <T>.
*/
public static synchronized <T> T createStrictPartialMock(Class<T> type, String... methodNames) {
return createStrictMock(type, Whitebox.getMethods(type, methodNames));
}
/**
* A utility method that may be used to strictly mock several methods in an
* easy way (by just passing in the method names of the method you wish to
* mock). Note that you cannot uniquely specify a method to mock using this
* method if there are several methods with the same name in
* {@code type}. This method will mock ALL methods that match the
* supplied name regardless of parameter types and signature. If this is the
* case you should fall-back on using the
* {@link #createMock(Class, Method...)} method instead.
* <p/>
* With this method you can specify where the class hierarchy the methods
* are located. This is useful in, for example, situations where class A
* extends B and both have a method called "mockMe" (A overrides B's mockMe
* method) and you like to specify the only the "mockMe" method in B should
* be mocked. "mockMe" in A should be left intact. In this case you should
* do:
* <p/>
* <pre>
* A tested = createPartialMockStrict(A.class, B.class, "mockMe");
* </pre>
*
* @param <T> The type of the mock.
* @param type The type that'll be used to create a mock instance.
* @param where Where in the class hierarchy the methods resides.
* @param methodNames The names of the methods that should be mocked. If
* {@code null}, then this method will have the same effect
* as just calling {@link #createMock(Class, Method...)} with the
* second parameter as {@code new Method[0]} (i.e. all
* methods in that class will be mocked).
* @return A mock object of type <T>.
*/
public static synchronized <T> T createStrictPartialMock(Class<T> type, Class<? super T> where,
String... methodNames) {
return createStrictMock(type, Whitebox.getMethods(where, methodNames));
}
/**
* A utility method that may be used to nicely mock several methods in an
* easy way (by just passing in the method names of the method you wish to
* mock). Note that you cannot uniquely specify a method to mock using this
* method if there are several methods with the same name in
* {@code type}. This method will mock ALL methods that match the
* supplied name regardless of parameter types and signature. If this is the
* case you should fall-back on using the
* {@link #createMock(Class, Method...)} method instead.
*
* @param <T> The type of the mock.
* @param type The type that'll be used to create a mock instance.
* @param methodNames The names of the methods that should be mocked. If
* {@code null}, then this method will have the same effect
* as just calling {@link #createMock(Class, Method...)} with the
* second parameter as {@code new Method[0]} (i.e. all
* methods in that class will be mocked).
* @return A mock object of type <T>.
*/
public static synchronized <T> T createNicePartialMock(Class<T> type, String... methodNames) {
return createNiceMock(type, Whitebox.getMethods(type, methodNames));
}
/**
* A utility method that may be used to nicely mock several methods in an
* easy way (by just passing in the method names of the method you wish to
* mock). Note that you cannot uniquely specify a method to mock using this
* method if there are several methods with the same name in
* {@code type}. This method will mock ALL methods that match the
* supplied name regardless of parameter types and signature. If this is the
* case you should fall-back on using the
* {@link #createMock(Class, Method...)} method instead.
* <p/>
* With this method you can specify where t
gitextract_foq7ud8y/ ├── .github/ │ ├── ISSUE_TEMPLATE.md │ ├── dependabot.yml │ └── workflows/ │ └── gradle-wrapper-validation.yml ├── .gitignore ├── .travis.yml ├── CONTRIBUTING.md ├── LICENSE.txt ├── README.md ├── build.gradle ├── config/ │ └── checkstyle/ │ └── checkstyle.xml ├── docs/ │ ├── changelog.txt │ ├── generate_javadoc.sh │ └── release-notes/ │ └── official.md ├── gradle/ │ ├── java-module.gradle │ ├── modules.gradle │ ├── publishing/ │ │ ├── publish-maven.gradle │ │ ├── publish.gradle │ │ └── publishable-module.gradle │ ├── release/ │ │ ├── distZip.gradle │ │ ├── fullJars.gradle │ │ ├── publish-distZip.gradle │ │ ├── publish-fullJar.gradle │ │ └── publish-jar.gradle │ ├── shipkit.gradle │ ├── version.gradle │ └── wrapper/ │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradle.properties ├── gradlew ├── gradlew.bat ├── powermock-api/ │ ├── powermock-api-easymock/ │ │ └── src/ │ │ └── main/ │ │ └── java/ │ │ └── org/ │ │ └── powermock/ │ │ └── api/ │ │ ├── easymock/ │ │ │ ├── EasyMockConfiguration.java │ │ │ ├── PowerMock.java │ │ │ ├── annotation/ │ │ │ │ ├── Mock.java │ │ │ │ ├── MockNice.java │ │ │ │ └── MockStrict.java │ │ │ ├── internal/ │ │ │ │ ├── invocationcontrol/ │ │ │ │ │ ├── EasyMockMethodInvocationControl.java │ │ │ │ │ ├── EasyMockNewInvocationControl.java │ │ │ │ │ └── NewInvocationControlAssertionError.java │ │ │ │ └── mockstrategy/ │ │ │ │ ├── MockStrategy.java │ │ │ │ └── impl/ │ │ │ │ ├── AbstractMockStrategyBase.java │ │ │ │ ├── DefaultMockStrategy.java │ │ │ │ ├── NiceMockStrategy.java │ │ │ │ └── StrictMockStrategy.java │ │ │ ├── mockpolicies/ │ │ │ │ ├── AbstractEasyMockLogPolicyBase.java │ │ │ │ ├── JclMockPolicy.java │ │ │ │ ├── Log4jMockPolicy.java │ │ │ │ └── Slf4jMockPolicy.java │ │ │ └── powermocklistener/ │ │ │ └── AnnotationEnabler.java │ │ └── extension/ │ │ ├── InjectFieldSearcher.java │ │ ├── agent/ │ │ │ └── JavaAgentFrameworkRegisterImpl.java │ │ └── listener/ │ │ ├── AnnotationEnabler.java │ │ ├── AnnotationGlobalMetadata.java │ │ ├── AnnotationMockCreator.java │ │ ├── AnnotationMockCreatorFactory.java │ │ ├── AnnotationMockMetadata.java │ │ ├── AnnotationMockScanner.java │ │ ├── DefaultInjectFieldSearcher.java │ │ ├── EasyMockAnnotationSupport.java │ │ ├── MockMetadata.java │ │ └── TestSubjectInjector.java │ ├── powermock-api-mockito2/ │ │ └── src/ │ │ ├── main/ │ │ │ ├── java/ │ │ │ │ └── org/ │ │ │ │ └── powermock/ │ │ │ │ └── api/ │ │ │ │ ├── extension/ │ │ │ │ │ ├── agent/ │ │ │ │ │ │ └── JavaAgentFrameworkRegisterImpl.java │ │ │ │ │ └── listener/ │ │ │ │ │ └── AnnotationEnabler.java │ │ │ │ └── mockito/ │ │ │ │ ├── ClassNotPreparedException.java │ │ │ │ ├── PowerMockito.java │ │ │ │ ├── expectation/ │ │ │ │ │ ├── ConstructorAwareExpectationSetup.java │ │ │ │ │ ├── ConstructorExpectationSetup.java │ │ │ │ │ ├── DefaultConstructorExpectationSetup.java │ │ │ │ │ ├── PowerMockitoStubber.java │ │ │ │ │ ├── PrivatelyExpectedArguments.java │ │ │ │ │ ├── WithAnyArguments.java │ │ │ │ │ ├── WithExpectedArguments.java │ │ │ │ │ ├── WithExpectedParameterTypes.java │ │ │ │ │ ├── WithOrWithoutExpectedArguments.java │ │ │ │ │ ├── WithoutExpectedArguments.java │ │ │ │ │ └── reporter/ │ │ │ │ │ └── MockitoPowerMockReporter.java │ │ │ │ ├── internal/ │ │ │ │ │ ├── PowerMockitoCore.java │ │ │ │ │ ├── configuration/ │ │ │ │ │ │ ├── PowerMockitoInjectingAnnotationEngine.java │ │ │ │ │ │ └── PowerMockitoSpyAnnotationEngine.java │ │ │ │ │ ├── exceptions/ │ │ │ │ │ │ └── StackTraceCleanerProvider.java │ │ │ │ │ ├── expectation/ │ │ │ │ │ │ ├── DefaultMethodExpectationSetup.java │ │ │ │ │ │ ├── DefaultPrivatelyExpectedArguments.java │ │ │ │ │ │ ├── DelegatingToConstructorsOngoingStubbing.java │ │ │ │ │ │ └── PowerMockitoStubberImpl.java │ │ │ │ │ ├── invocation/ │ │ │ │ │ │ ├── InvocationControlAssertionError.java │ │ │ │ │ │ └── MockitoNewInvocationControl.java │ │ │ │ │ ├── mockcreation/ │ │ │ │ │ │ ├── AbstractMockCreator.java │ │ │ │ │ │ ├── DefaultMockCreator.java │ │ │ │ │ │ ├── MockCreator.java │ │ │ │ │ │ ├── MockTypeValidator.java │ │ │ │ │ │ ├── MockTypeValidatorFactory.java │ │ │ │ │ │ └── RuntimeExceptionProxy.java │ │ │ │ │ ├── stubbing/ │ │ │ │ │ │ ├── MockitoRealMethodInvocation.java │ │ │ │ │ │ └── PowerMockCallRealMethod.java │ │ │ │ │ └── verification/ │ │ │ │ │ ├── DefaultConstructorArgumentsVerification.java │ │ │ │ │ ├── DefaultPrivateMethodVerification.java │ │ │ │ │ └── VerifyNoMoreInteractions.java │ │ │ │ ├── invocation/ │ │ │ │ │ ├── InvocationFactory.java │ │ │ │ │ ├── MockHandlerAdaptor.java │ │ │ │ │ └── MockitoMethodInvocationControl.java │ │ │ │ ├── mockmaker/ │ │ │ │ │ ├── MockMakerLoader.java │ │ │ │ │ └── PowerMockMaker.java │ │ │ │ ├── mockpolicies/ │ │ │ │ │ └── Slf4jMockPolicy.java │ │ │ │ ├── powermocklistener/ │ │ │ │ │ └── AnnotationEnabler.java │ │ │ │ └── verification/ │ │ │ │ ├── ConstructorArgumentsVerification.java │ │ │ │ ├── PrivateMethodVerification.java │ │ │ │ ├── WithOrWithoutVerifiedArguments.java │ │ │ │ ├── WithVerifiedArguments.java │ │ │ │ └── WithoutVerifiedArguments.java │ │ │ └── resources/ │ │ │ └── mockito-extensions/ │ │ │ ├── org.mockito.plugins.MockMaker │ │ │ └── org.mockito.plugins.StackTraceCleanerProvider │ │ └── test/ │ │ ├── java/ │ │ │ └── org/ │ │ │ └── powermock/ │ │ │ └── api/ │ │ │ └── mockito/ │ │ │ ├── PowerMockMockito2ApiTestSuite.java │ │ │ ├── internal/ │ │ │ │ ├── expectation/ │ │ │ │ │ └── DefaultMethodExpectationSetupTestCase.java │ │ │ │ └── mockcreation/ │ │ │ │ └── MockCreatorTestCase.java │ │ │ └── mockmaker/ │ │ │ └── PowerMockMakerTestCase.java │ │ └── resources/ │ │ └── org/ │ │ └── powermock/ │ │ └── extensions/ │ │ └── configuration.template │ └── powermock-api-support/ │ └── src/ │ └── main/ │ └── java/ │ └── org/ │ └── powermock/ │ └── api/ │ └── support/ │ ├── ClassLoaderUtil.java │ ├── MethodProxy.java │ ├── SafeExceptionRethrower.java │ ├── Stubber.java │ ├── SuppressCode.java │ └── membermodification/ │ ├── MemberMatcher.java │ ├── MemberModifier.java │ └── strategy/ │ ├── ClassReplaceStrategy.java │ ├── MethodReplaceStrategy.java │ ├── MethodStubStrategy.java │ └── impl/ │ ├── MethodReplaceStrategyImpl.java │ └── MethodStubStrategyImpl.java ├── powermock-classloading/ │ ├── powermock-classloading-base/ │ │ └── src/ │ │ └── main/ │ │ └── java/ │ │ └── org/ │ │ └── powermock/ │ │ └── classloading/ │ │ ├── AbstractClassloaderExecutor.java │ │ ├── ClassloaderExecutor.java │ │ ├── SingleClassloaderExecutor.java │ │ └── spi/ │ │ ├── DeepClonerSPI.java │ │ └── DoNotClone.java │ ├── powermock-classloading-objenesis/ │ │ └── src/ │ │ ├── main/ │ │ │ └── java/ │ │ │ └── org/ │ │ │ └── powermock/ │ │ │ └── classloading/ │ │ │ └── DeepCloner.java │ │ └── test/ │ │ └── java/ │ │ └── powermock/ │ │ └── classloading/ │ │ ├── ObjenesisClassloaderExecutorTest.java │ │ └── ObjenesisDeepClonerTest.java │ └── powermock-classloading-xstream/ │ └── src/ │ ├── main/ │ │ └── java/ │ │ └── org/ │ │ └── powermock/ │ │ └── classloading/ │ │ └── DeepCloner.java │ └── test/ │ └── java/ │ └── powermock/ │ └── classloading/ │ ├── XStreamClassloaderExecutorTest.java │ └── XStreamDeepClonerTest.java ├── powermock-core/ │ ├── build.gradle │ └── src/ │ ├── main/ │ │ ├── java/ │ │ │ └── org/ │ │ │ └── powermock/ │ │ │ ├── PowerMockInternalException.java │ │ │ ├── configuration/ │ │ │ │ ├── Configuration.java │ │ │ │ ├── ConfigurationFactory.java │ │ │ │ ├── ConfigurationType.java │ │ │ │ ├── GlobalConfiguration.java │ │ │ │ ├── MockitoConfiguration.java │ │ │ │ ├── PowerMockConfiguration.java │ │ │ │ └── support/ │ │ │ │ ├── ConfigurationBuilder.java │ │ │ │ ├── ConfigurationFactoryImpl.java │ │ │ │ ├── ConfigurationMapper.java │ │ │ │ ├── PropertiesFinder.java │ │ │ │ ├── PropertiesLoader.java │ │ │ │ └── ValueAliases.java │ │ │ ├── core/ │ │ │ │ ├── ClassLocator.java │ │ │ │ ├── ClassReplicaCreator.java │ │ │ │ ├── ConcreteClassGenerator.java │ │ │ │ ├── DefaultFieldValueGenerator.java │ │ │ │ ├── IdentityHashSet.java │ │ │ │ ├── IndicateReloadClass.java │ │ │ │ ├── InvocationException.java │ │ │ │ ├── ListMap.java │ │ │ │ ├── MockGateway.java │ │ │ │ ├── MockInvocation.java │ │ │ │ ├── MockRepository.java │ │ │ │ ├── PowerMockUtils.java │ │ │ │ ├── WildcardMatcher.java │ │ │ │ ├── agent/ │ │ │ │ │ ├── JavaAgentClassRegister.java │ │ │ │ │ ├── JavaAgentFrameworkRegister.java │ │ │ │ │ └── JavaAgentFrameworkRegisterFactory.java │ │ │ │ ├── bytebuddy/ │ │ │ │ │ ├── ConditionalStateStackManipulation.java │ │ │ │ │ ├── Frame.java │ │ │ │ │ ├── MaxLocalsExtractor.java │ │ │ │ │ ├── MethodMaxLocals.java │ │ │ │ │ ├── MockGetawayCall.java │ │ │ │ │ ├── PrimitiveBoxing.java │ │ │ │ │ └── Variable.java │ │ │ │ ├── classloader/ │ │ │ │ │ ├── ByteCodeFramework.java │ │ │ │ │ ├── ClassMarker.java │ │ │ │ │ ├── ClassloaderWrapper.java │ │ │ │ │ ├── DeferSupportingClassLoader.java │ │ │ │ │ ├── MockClassLoader.java │ │ │ │ │ ├── MockClassLoaderBuilder.java │ │ │ │ │ ├── MockClassLoaderConfiguration.java │ │ │ │ │ ├── MockClassLoaderFactory.java │ │ │ │ │ ├── PowerMockModified.java │ │ │ │ │ ├── annotations/ │ │ │ │ │ │ ├── MockPolicy.java │ │ │ │ │ │ ├── PowerMockIgnore.java │ │ │ │ │ │ ├── PowerMockListener.java │ │ │ │ │ │ ├── PrepareEverythingForTest.java │ │ │ │ │ │ ├── PrepareForTest.java │ │ │ │ │ │ ├── PrepareOnlyThisForTest.java │ │ │ │ │ │ ├── SuppressStaticInitializationFor.java │ │ │ │ │ │ └── UseClassPathAdjuster.java │ │ │ │ │ └── javassist/ │ │ │ │ │ ├── ClassPathAdjuster.java │ │ │ │ │ ├── ClassPoolFactory.java │ │ │ │ │ ├── JavaAssistClassMarkerFactory.java │ │ │ │ │ └── JavassistMockClassLoader.java │ │ │ │ ├── reporter/ │ │ │ │ │ ├── MockingFrameworkReporter.java │ │ │ │ │ ├── PowerMockReporter.java │ │ │ │ │ └── PowerMockReporterFactory.java │ │ │ │ ├── spi/ │ │ │ │ │ ├── DefaultBehavior.java │ │ │ │ │ ├── MethodInvocationControl.java │ │ │ │ │ ├── NewInvocationControl.java │ │ │ │ │ ├── PowerMockPolicy.java │ │ │ │ │ ├── PowerMockTestListener.java │ │ │ │ │ ├── listener/ │ │ │ │ │ │ └── AnnotationEnablerListener.java │ │ │ │ │ ├── support/ │ │ │ │ │ │ ├── AbstractPowerMockTestListenerBase.java │ │ │ │ │ │ └── InvocationSubstitute.java │ │ │ │ │ └── testresult/ │ │ │ │ │ ├── Result.java │ │ │ │ │ ├── TestMethodResult.java │ │ │ │ │ ├── TestSuiteResult.java │ │ │ │ │ └── impl/ │ │ │ │ │ ├── TestMethodResultImpl.java │ │ │ │ │ └── TestSuiteResultImpl.java │ │ │ │ ├── testlisteners/ │ │ │ │ │ ├── FieldDefaulter.java │ │ │ │ │ └── GlobalNotificationBuildSupport.java │ │ │ │ └── transformers/ │ │ │ │ ├── ClassWrapper.java │ │ │ │ ├── ClassWrapperFactory.java │ │ │ │ ├── MethodSignatureWriter.java │ │ │ │ ├── MethodSignatures.java │ │ │ │ ├── MockTransformer.java │ │ │ │ ├── MockTransformerChain.java │ │ │ │ ├── MockTransformerChainFactory.java │ │ │ │ ├── TestClassAwareTransformer.java │ │ │ │ ├── TestClassTransformer.java │ │ │ │ ├── TestClassTransformerBuilder.java │ │ │ │ ├── TransformStrategy.java │ │ │ │ ├── javassist/ │ │ │ │ │ ├── AbstractJavaAssistMockTransformer.java │ │ │ │ │ ├── ClassFinalModifierMockTransformer.java │ │ │ │ │ ├── ConstructorsMockTransformer.java │ │ │ │ │ ├── InstrumentMockTransformer.java │ │ │ │ │ ├── JavassistMockTransformerChainFactory.java │ │ │ │ │ ├── MethodMockTransformer.java │ │ │ │ │ ├── MethodSizeMockTransformer.java │ │ │ │ │ ├── PackagePrivateClassesMockTransformer.java │ │ │ │ │ ├── StaticFinalFieldsMockTransformer.java │ │ │ │ │ ├── StaticFinalNativeMethodMockTransformer.java │ │ │ │ │ ├── SuppressStaticInitializerMockTransformer.java │ │ │ │ │ ├── support/ │ │ │ │ │ │ ├── JavaAssistClassWrapperFactory.java │ │ │ │ │ │ ├── PowerMockExpressionEditor.java │ │ │ │ │ │ ├── Primitives.java │ │ │ │ │ │ └── TransformerHelper.java │ │ │ │ │ └── testclass/ │ │ │ │ │ ├── ForMethodsJavaAssistTestClassTransformer.java │ │ │ │ │ ├── FromAllMethodsExceptJavaAssistTestClassTransformer.java │ │ │ │ │ └── JavaAssistTestClassTransformer.java │ │ │ │ └── support/ │ │ │ │ ├── DefaultMockTransformerChain.java │ │ │ │ └── FilterPredicates.java │ │ │ ├── mockpolicies/ │ │ │ │ ├── MockPolicyClassLoadingSettings.java │ │ │ │ ├── MockPolicyInterceptionSettings.java │ │ │ │ ├── impl/ │ │ │ │ │ ├── MockPolicyClassLoadingSettingsImpl.java │ │ │ │ │ └── MockPolicyInterceptionSettingsImpl.java │ │ │ │ └── support/ │ │ │ │ └── LogPolicySupport.java │ │ │ ├── tests/ │ │ │ │ └── utils/ │ │ │ │ ├── ArrayMerger.java │ │ │ │ ├── IgnorePackagesExtractor.java │ │ │ │ ├── Keys.java │ │ │ │ ├── MockPolicyInitializer.java │ │ │ │ ├── PowerMockTestNotifier.java │ │ │ │ ├── RunnerTestSuiteChunker.java │ │ │ │ ├── TestChunk.java │ │ │ │ ├── TestClassesExtractor.java │ │ │ │ ├── TestSuiteChunker.java │ │ │ │ └── impl/ │ │ │ │ ├── AbstractCommonTestSuiteChunkerImpl.java │ │ │ │ ├── AbstractTestClassExtractor.java │ │ │ │ ├── AbstractTestSuiteChunkerImpl.java │ │ │ │ ├── ArrayMergerImpl.java │ │ │ │ ├── MockPolicyInitializerImpl.java │ │ │ │ ├── PowerMockIgnorePackagesExtractorImpl.java │ │ │ │ ├── PowerMockTestNotifierImpl.java │ │ │ │ ├── PrepareForTestExtractorImpl.java │ │ │ │ ├── StaticConstructorSuppressExtractorImpl.java │ │ │ │ ├── TestCaseEntry.java │ │ │ │ └── TestChunkImpl.java │ │ │ └── utils/ │ │ │ ├── ArrayUtil.java │ │ │ ├── Asserts.java │ │ │ ├── IOUtils.java │ │ │ ├── JavaVersion.java │ │ │ ├── NumberUtils.java │ │ │ └── StringJoiner.java │ │ └── resources/ │ │ └── org/ │ │ └── powermock/ │ │ └── default.properties │ └── test/ │ ├── java/ │ │ ├── org/ │ │ │ └── powermock/ │ │ │ ├── WildcardMatcherTest.java │ │ │ ├── configuration/ │ │ │ │ └── support/ │ │ │ │ ├── ConfigurationBuilderTest.java │ │ │ │ └── ConfigurationFactoryImplTest.java │ │ │ ├── core/ │ │ │ │ ├── classloader/ │ │ │ │ │ ├── Collaborator.java │ │ │ │ │ ├── HardToTransform.java │ │ │ │ │ ├── MockClassLoaderBuilderTest.java │ │ │ │ │ ├── MockClassLoaderConfigurationTest.java │ │ │ │ │ ├── MockClassLoaderFactoryTest.java │ │ │ │ │ ├── MockClassLoaderTest.java │ │ │ │ │ └── ResourcePrefixClassLoader.java │ │ │ │ ├── test/ │ │ │ │ │ ├── ClassLoaderTestHelper.java │ │ │ │ │ ├── ContainsCondition.java │ │ │ │ │ └── MockClassLoaderFactory.java │ │ │ │ ├── testlisteners/ │ │ │ │ │ └── GlobalNotificationBuildSupportTest.java │ │ │ │ └── transformers/ │ │ │ │ ├── AbstractBaseMockTransformerTest.java │ │ │ │ ├── ClassFinalModifierMockTransformerTest.java │ │ │ │ ├── ConstructorCallMockTransformerTest.java │ │ │ │ ├── ConstructorModifiersMockTransformerTest.java │ │ │ │ ├── InstrumentMockTransformerTest.java │ │ │ │ ├── MethodSizeMockTransformerTest.java │ │ │ │ ├── MethodsMockTransformerTest.java │ │ │ │ ├── MockTransformerChainTest.java │ │ │ │ ├── MockTransformerTestHelper.java │ │ │ │ ├── NativeMethodsMockTransformerTest.java │ │ │ │ ├── StaticFinalFieldsMockTransformerTest.java │ │ │ │ ├── StaticMethodsMockTransformerTest.java │ │ │ │ ├── SuppressStaticInitializerMockTransformerTest.java │ │ │ │ ├── TestClassTransformerTest.java │ │ │ │ ├── javassist/ │ │ │ │ │ └── TestPrimitives.java │ │ │ │ └── mock/ │ │ │ │ └── MockGatewaySpy.java │ │ │ ├── tests/ │ │ │ │ └── utils/ │ │ │ │ └── impl/ │ │ │ │ ├── PowerMockIgnorePackagesExtractorImplTest.java │ │ │ │ └── PrepareForTestExtractorImplTest.java │ │ │ └── utils/ │ │ │ ├── JavaVersionTest.java │ │ │ └── NumberUtilsTest.java │ │ └── powermock/ │ │ └── test/ │ │ └── support/ │ │ ├── ClassForMockClassLoaderTestCase.java │ │ ├── ClassWithLargeMethods.java │ │ ├── MainMockTransformerTestSupport.java │ │ └── TestWithTwoTestMethods.java │ └── resources/ │ └── org/ │ └── powermock/ │ ├── core/ │ │ └── classloader/ │ │ └── foo/ │ │ └── bar/ │ │ └── baz/ │ │ └── test.txt │ ├── extensions/ │ │ ├── test.properties │ │ ├── test_configuration.properties │ │ ├── test_with_alias.properties │ │ └── test_without_prefix.properties │ └── test_default_configuration.properties ├── powermock-modules/ │ ├── powermock-module-javaagent/ │ │ ├── jmockit-license.txt │ │ └── src/ │ │ └── main/ │ │ ├── java/ │ │ │ ├── com/ │ │ │ │ └── sun/ │ │ │ │ └── tools/ │ │ │ │ └── attach/ │ │ │ │ ├── AgentInitializationException.java │ │ │ │ ├── AgentLoadException.java │ │ │ │ ├── AttachNotSupportedException.java │ │ │ │ ├── VirtualMachine.java │ │ │ │ ├── VirtualMachineDescriptor.java │ │ │ │ └── spi/ │ │ │ │ └── AttachProvider.java │ │ │ ├── org/ │ │ │ │ └── powermock/ │ │ │ │ └── modules/ │ │ │ │ └── agent/ │ │ │ │ ├── AbstractClassTransformer.java │ │ │ │ ├── AgentInitialization.java │ │ │ │ ├── AgentLoader.java │ │ │ │ ├── DefinalizingClassTransformer.java │ │ │ │ ├── DefinalizingClassVisitor.java │ │ │ │ ├── PowerMockAgent.java │ │ │ │ ├── PowerMockClassRedefiner.java │ │ │ │ ├── PowerMockClassTransformer.java │ │ │ │ └── support/ │ │ │ │ ├── JavaAgentClassRegisterImpl.java │ │ │ │ └── PowerMockAgentTestInitializer.java │ │ │ └── sun/ │ │ │ └── tools/ │ │ │ └── attach/ │ │ │ ├── BsdVirtualMachine.java │ │ │ ├── HotSpotVirtualMachine.java │ │ │ ├── LinuxVirtualMachine.java │ │ │ ├── SolarisVirtualMachine.java │ │ │ └── WindowsVirtualMachine.java │ │ └── javadoc/ │ │ └── resources/ │ │ └── org,powermock/ │ │ └── modules/ │ │ └── agent/ │ │ └── package.html │ ├── powermock-module-junit4/ │ │ └── src/ │ │ ├── main/ │ │ │ └── java/ │ │ │ └── org/ │ │ │ └── powermock/ │ │ │ └── modules/ │ │ │ └── junit4/ │ │ │ ├── PowerMockRunner.java │ │ │ ├── PowerMockRunnerDelegate.java │ │ │ └── internal/ │ │ │ └── impl/ │ │ │ ├── DelegatingPowerMockRunner.java │ │ │ ├── NotificationBuilder.java │ │ │ ├── PowerMockJUnit44RunnerDelegateImpl.java │ │ │ ├── PowerMockJUnit47RunnerDelegateImpl.java │ │ │ ├── PowerMockJUnit49RunnerDelegateImpl.java │ │ │ ├── PowerMockRunNotifier.java │ │ │ └── testcaseworkaround/ │ │ │ └── PowerMockJUnit4MethodValidator.java │ │ └── test/ │ │ └── java/ │ │ └── org/ │ │ └── powermock/ │ │ └── modules/ │ │ └── junit4/ │ │ └── internal/ │ │ └── impl/ │ │ └── PowerMockRunNotifierTest.java │ ├── powermock-module-junit4-common/ │ │ └── src/ │ │ ├── main/ │ │ │ └── java/ │ │ │ └── org/ │ │ │ └── powermock/ │ │ │ └── modules/ │ │ │ └── junit4/ │ │ │ └── common/ │ │ │ └── internal/ │ │ │ ├── JUnit4TestSuiteChunker.java │ │ │ ├── PowerMockJUnitRunnerDelegate.java │ │ │ └── impl/ │ │ │ ├── AbstractCommonPowerMockRunner.java │ │ │ ├── JUnit4TestMethodChecker.java │ │ │ ├── JUnit4TestSuiteChunkerImpl.java │ │ │ ├── JUnitVersion.java │ │ │ ├── PowerMockJUnit4RunListener.java │ │ │ ├── VersionComparator.java │ │ │ └── VersionTokenizer.java │ │ └── test/ │ │ └── java/ │ │ └── org/ │ │ └── powermock/ │ │ └── modules/ │ │ └── junit4/ │ │ └── common/ │ │ └── internal/ │ │ └── impl/ │ │ └── JUnitVersionTest.java │ ├── powermock-module-junit4-legacy/ │ │ └── src/ │ │ └── main/ │ │ └── java/ │ │ └── org/ │ │ └── powermock/ │ │ └── modules/ │ │ └── junit4/ │ │ └── legacy/ │ │ ├── PowerMockRunner.java │ │ └── internal/ │ │ └── impl/ │ │ ├── PowerMockJUnit4LegacyFilter.java │ │ ├── PowerMockJUnit4LegacyRunnerDelegateImpl.java │ │ └── testcaseworkaround/ │ │ ├── PowerMockJUnit4LegacyTestClassMethodsRunner.java │ │ ├── PowerMockJUnit4LegacyTestIntrospector.java │ │ └── PowerMockJUnit4LegacyTestMethodRunner.java │ ├── powermock-module-junit4-rule/ │ │ └── src/ │ │ └── main/ │ │ └── java/ │ │ └── org/ │ │ └── powermock/ │ │ └── modules/ │ │ └── junit4/ │ │ └── rule/ │ │ ├── PowerMockRule.java │ │ └── PowerMockRuleTestSuiteChunker.java │ ├── powermock-module-junit4-rule-agent/ │ │ └── src/ │ │ └── main/ │ │ └── java/ │ │ └── org/ │ │ └── powermock/ │ │ └── modules/ │ │ └── junit4/ │ │ └── rule/ │ │ └── PowerMockRule.java │ ├── powermock-module-testng/ │ │ └── src/ │ │ └── main/ │ │ └── java/ │ │ └── org/ │ │ └── powermock/ │ │ └── modules/ │ │ └── testng/ │ │ ├── PowerMockObjectFactory.java │ │ └── internal/ │ │ ├── Assumes.java │ │ ├── PowerMockClassloaderObjectFactory.java │ │ ├── PowerMockExpectedExceptionsExtractorImpl.java │ │ ├── PowerMockTestNGMethodHandler.java │ │ ├── TestClassInstanceFactory.java │ │ ├── TestNGMethodFilter.java │ │ └── TestNGMockClassLoaderFactory.java │ ├── powermock-module-testng-agent/ │ │ └── src/ │ │ └── main/ │ │ └── java/ │ │ └── org/ │ │ └── powermock/ │ │ └── modules/ │ │ └── testng/ │ │ └── PowerMockObjectFactory.java │ └── powermock-module-testng-common/ │ └── src/ │ └── main/ │ └── java/ │ └── org/ │ └── powermock/ │ └── modules/ │ └── testng/ │ └── PowerMockTestCase.java ├── powermock-reflect/ │ ├── build.gradle │ └── src/ │ ├── main/ │ │ └── java/ │ │ └── org/ │ │ └── powermock/ │ │ └── reflect/ │ │ ├── Whitebox.java │ │ ├── exceptions/ │ │ │ ├── ConstructorNotFoundException.java │ │ │ ├── FieldNotFoundException.java │ │ │ ├── MethodInvocationException.java │ │ │ ├── MethodNotFoundException.java │ │ │ ├── TooManyConstructorsFoundException.java │ │ │ ├── TooManyFieldsFoundException.java │ │ │ └── TooManyMethodsFoundException.java │ │ ├── internal/ │ │ │ ├── CandidateConstructorSearcher.java │ │ │ ├── Constructor.java │ │ │ ├── ConstructorFinder.java │ │ │ ├── ParameterTypesMatcher.java │ │ │ ├── ParametersMatcher.java │ │ │ ├── TypeUtils.java │ │ │ ├── WhiteboxImpl.java │ │ │ ├── comparator/ │ │ │ │ └── ComparatorFactory.java │ │ │ ├── matcherstrategies/ │ │ │ │ ├── AllFieldsMatcherStrategy.java │ │ │ │ ├── AssignableFromFieldTypeMatcherStrategy.java │ │ │ │ ├── AssignableToFieldTypeMatcherStrategy.java │ │ │ │ ├── FieldAnnotationMatcherStrategy.java │ │ │ │ ├── FieldMatcherStrategy.java │ │ │ │ ├── FieldNameMatcherStrategy.java │ │ │ │ └── FieldTypeMatcherStrategy.java │ │ │ ├── primitivesupport/ │ │ │ │ ├── BoxedWrapper.java │ │ │ │ └── PrimitiveWrapper.java │ │ │ └── proxy/ │ │ │ ├── ProxyFrameworks.java │ │ │ ├── UnproxiedType.java │ │ │ └── UnproxiedTypeFactory.java │ │ └── matching/ │ │ └── FieldMatchingStrategy.java │ └── test/ │ └── java/ │ └── org/ │ └── powermock/ │ └── reflect/ │ ├── WhiteBoxGetFieldTest.java │ ├── WhiteBoxTest.java │ ├── context/ │ │ ├── ClassFieldsNotInTargetContext.java │ │ ├── InstanceFieldsNotInTargetContext.java │ │ ├── MyContext.java │ │ ├── MyIntContext.java │ │ ├── MyStringContext.java │ │ └── OneInstanceAndOneStaticFieldOfSameTypeContext.java │ ├── internal/ │ │ ├── WhiteboxImplTest.java │ │ └── proxy/ │ │ ├── AnotherInterface.java │ │ ├── ClassFactory.java │ │ ├── ProxyFrameworksTest.java │ │ ├── SomeClass.java │ │ └── SomeInterface.java │ └── testclasses/ │ ├── AbstractClass.java │ ├── AnInterface.java │ ├── Child.java │ ├── ClassWithAMethod.java │ ├── ClassWithChildThatHasInternalState.java │ ├── ClassWithInterfaceConstructors.java │ ├── ClassWithInternalState.java │ ├── ClassWithList.java │ ├── ClassWithMethodUsingBothPrimitiveTypeAndWrappedTypeArguments.java │ ├── ClassWithMethodUsingSuperTypeArgument.java │ ├── ClassWithObjectConstructors.java │ ├── ClassWithOverloadedConstructors.java │ ├── ClassWithOverloadedMethods.java │ ├── ClassWithOverriddenMethod.java │ ├── ClassWithPrimitiveConstructors.java │ ├── ClassWithPrivateMethods.java │ ├── ClassWithSerializableState.java │ ├── ClassWithSeveralMethodsWithSameName.java │ ├── ClassWithSeveralMethodsWithSameNameOneWithoutParameters.java │ ├── ClassWithSimpleInternalState.java │ ├── ClassWithSimpleStateOfSameType.java │ ├── ClassWithStandardMethod.java │ ├── ClassWithStaticAndInstanceInternalStateOfSameType.java │ ├── ClassWithStaticMethod.java │ ├── ClassWithUniquePrivateMethods.java │ ├── ClassWithVarArgsConstructor.java │ ├── ClassWithVarArgsConstructor2.java │ └── Parent.java ├── powermock-release/ │ └── build.gradle ├── settings.gradle ├── tests/ │ ├── build.gradle │ ├── easymock/ │ │ ├── build.gradle │ │ ├── junit4/ │ │ │ └── src/ │ │ │ └── test/ │ │ │ └── java/ │ │ │ └── samples/ │ │ │ ├── interfacemethodfinding/ │ │ │ │ └── InterfaceMethodHierarchyUsageTest.java │ │ │ ├── junit4/ │ │ │ │ ├── abstractmocking/ │ │ │ │ │ └── AbstractMethodMockingTest.java │ │ │ │ ├── annotationbased/ │ │ │ │ │ ├── AnnotationDemoWithSetupMethodTest.java │ │ │ │ │ ├── FinalDemoWithAnnotationInjectionAndFieldDefaulterTest.java │ │ │ │ │ ├── FinalDemoWithAnnotationInjectionTest.java │ │ │ │ │ ├── FinalDemoWithNiceAnnotationInjectionTest.java │ │ │ │ │ ├── FinalDemoWithStrictAnnotationInjectionTest.java │ │ │ │ │ ├── TestSubjectEasymockAnnotationTest.java │ │ │ │ │ └── TestSubjectPowermockAnnotationTest.java │ │ │ │ ├── assume/ │ │ │ │ │ └── AssumeTest.java │ │ │ │ ├── classhierarchy/ │ │ │ │ │ └── CommonParentTest.java │ │ │ │ ├── classwithinnermembers/ │ │ │ │ │ └── ClassWithInnerMembersTest.java │ │ │ │ ├── console/ │ │ │ │ │ └── ConsoleTest.java │ │ │ │ ├── constructor/ │ │ │ │ │ ├── PrivateConstructorInstantiationDemoTest.java │ │ │ │ │ └── PublicConstructorWithDependencyDemoTest.java │ │ │ │ ├── constructorargs/ │ │ │ │ │ └── ConstructorArgsDemoTest.java │ │ │ │ ├── easymock/ │ │ │ │ │ └── EasyMockAndPowerMockMixTest.java │ │ │ │ ├── enummocking/ │ │ │ │ │ └── EnumMockingTest.java │ │ │ │ ├── equalswithgetclass/ │ │ │ │ │ └── EqualsWithGetClassTest.java │ │ │ │ ├── expectnew/ │ │ │ │ │ ├── ExpectNewCases.java │ │ │ │ │ ├── ExpectNewDemoTest.java │ │ │ │ │ ├── ExpectNewOfFinalSystemClassTest.java │ │ │ │ │ ├── MockDateTest.java │ │ │ │ │ ├── PrimitiveAndWrapperDemoTest.java │ │ │ │ │ └── PrimitiveAndWrapperUserTest.java │ │ │ │ ├── expectvoid/ │ │ │ │ │ └── ExpectVoidDemoTest.java │ │ │ │ ├── finalmocking/ │ │ │ │ │ ├── FinalDemoTest.java │ │ │ │ │ ├── MockingOfInstanceMethodsInFinalSystemClassTest.java │ │ │ │ │ └── NoDuplicateTest.java │ │ │ │ ├── hashcode/ │ │ │ │ │ └── PowerMockUsesIdentityHashMapToStoreMocks.java │ │ │ │ ├── interfacefieldchange/ │ │ │ │ │ └── ChangeValueOfStaticFinalFieldInInterfacesDefect.java │ │ │ │ ├── java/ │ │ │ │ │ └── MockClassesInsideJavaPackage.java │ │ │ │ ├── largemethod/ │ │ │ │ │ └── LargeMethodTest.java │ │ │ │ ├── misc/ │ │ │ │ │ └── PrivateInnerInterfacesInTestClassTest.java │ │ │ │ ├── mockpolicy/ │ │ │ │ │ ├── MockPolicyUsageExampleTest.java │ │ │ │ │ ├── MockPolicyWithExpectationsTest.java │ │ │ │ │ ├── MockPolicyWithInvocationHandlerTest.java │ │ │ │ │ └── frameworkexample/ │ │ │ │ │ ├── SimpleFrameworkMockPolicy.java │ │ │ │ │ └── SimpleFrameworkUserTest.java │ │ │ │ ├── multireplayverify/ │ │ │ │ │ └── MultiReplayVerifyTest.java │ │ │ │ ├── nativemocking/ │ │ │ │ │ └── NativeMockingSampleTest.java │ │ │ │ ├── newmocking/ │ │ │ │ │ └── StupidNewTest.java │ │ │ │ ├── nice/ │ │ │ │ │ └── NiceDemoTest.java │ │ │ │ ├── noannotation/ │ │ │ │ │ ├── NoAnnotationUsageTest.java │ │ │ │ │ ├── SetUpAndTearDownWhenExtendingTestCaseTest.java │ │ │ │ │ ├── SetUpAndTearDownWhenNotExtendingTestCaseTest.java │ │ │ │ │ ├── SetUpIsOnlyCalledOnceWhenExtendingTestCaseTest.java │ │ │ │ │ └── StringConstructorWorksWhenExtendingTestCase.java │ │ │ │ ├── overloading/ │ │ │ │ │ ├── MethodWithSameNameButDifferentDefinitionTypeTest.java │ │ │ │ │ └── OverloadingDemoTest.java │ │ │ │ ├── partialmocking/ │ │ │ │ │ ├── MockSelfDemoTest.java │ │ │ │ │ ├── MockSelfDemoWithSubClassTest.java │ │ │ │ │ ├── PartialMockingWithConstructorTest.java │ │ │ │ │ └── PartialMockingWithConstructorUsingEasyMockTest.java │ │ │ │ ├── powermockignore/ │ │ │ │ │ └── PowerMockIgnoreAndPrepareForTest.java │ │ │ │ ├── prepareeverything/ │ │ │ │ │ └── ExpectNewDemoUsingThePrepareEverythingAnnotationTest.java │ │ │ │ ├── privateandfinal/ │ │ │ │ │ └── PrivateFinalTest.java │ │ │ │ ├── privatefield/ │ │ │ │ │ ├── MockSelfPrivateFieldServiceClassTest.java │ │ │ │ │ └── SimplePrivateFieldServiceClassTest.java │ │ │ │ ├── privatemocking/ │ │ │ │ │ └── PrivateMethodDemoTest.java │ │ │ │ ├── reflection/ │ │ │ │ │ └── ReflectionInstantiatorTest.java │ │ │ │ ├── replayall/ │ │ │ │ │ ├── ReplayAllForExpectNewTest.java │ │ │ │ │ └── ReplayAllForStaticMethodsTest.java │ │ │ │ ├── resetmock/ │ │ │ │ │ ├── ResetForStaticMethodsTest.java │ │ │ │ │ └── ResetMockTest.java │ │ │ │ ├── servletmocking/ │ │ │ │ │ └── SampleServletTest.java │ │ │ │ ├── simplereturn/ │ │ │ │ │ └── SimpleReturnExampleUserTest.java │ │ │ │ ├── singleton/ │ │ │ │ │ ├── LogicAndTestInSameClassTest.java │ │ │ │ │ ├── MockStaticTest.java │ │ │ │ │ └── SimpleStaticServiceTest.java │ │ │ │ ├── stackoverflow/ │ │ │ │ │ ├── EvilHashCode.java │ │ │ │ │ └── StackOverFlowTest.java │ │ │ │ ├── staticandinstance/ │ │ │ │ │ ├── StaticAndInstanceDemoTest.java │ │ │ │ │ └── StaticAndInstanceWithConstructorCodeDemoTest.java │ │ │ │ ├── staticinitializer/ │ │ │ │ │ ├── AbstractStaticInitializerTest.java │ │ │ │ │ ├── EvilStaticInitializerExampleTest.java │ │ │ │ │ ├── InterfaceStaticInitializerExampleTest.java │ │ │ │ │ └── StaticInitializerExampleTest.java │ │ │ │ ├── strict/ │ │ │ │ │ └── StrictDemoTest.java │ │ │ │ ├── stubmethod/ │ │ │ │ │ └── StubMethodTest.java │ │ │ │ ├── suppressconstructor/ │ │ │ │ │ ├── CreateUnmockedTest.java │ │ │ │ │ ├── SuppressConstructorDemoTest.java │ │ │ │ │ ├── SuppressConstructorHierarchyDemoTest.java │ │ │ │ │ └── SuppressNonParentConstructorDemoTest.java │ │ │ │ ├── suppressfield/ │ │ │ │ │ ├── ItemRepositoryTest.java │ │ │ │ │ └── SuppressFieldTest.java │ │ │ │ ├── suppressmethod/ │ │ │ │ │ └── SuppressMethodTest.java │ │ │ │ ├── swing/ │ │ │ │ │ └── ReallySimpleSwingDemoTest.java │ │ │ │ ├── system/ │ │ │ │ │ ├── FieldMockDefect.java │ │ │ │ │ └── SystemClassUserTest.java │ │ │ │ ├── testhierarchy/ │ │ │ │ │ ├── RunWithHierarchyTest.java │ │ │ │ │ └── TestParent.java │ │ │ │ ├── verify/ │ │ │ │ │ └── AssertVerifyWorksTest.java │ │ │ │ └── whitebox/ │ │ │ │ └── PowerMockConstructorFiltrationTest.java │ │ │ ├── methodhierarchy/ │ │ │ │ └── MethodInvocationDemoTest.java │ │ │ ├── packageprivate/ │ │ │ │ └── PackagePrivateClassTest.java │ │ │ └── suppressconstructor/ │ │ │ ├── SuppressDefaultConstructorTest.java │ │ │ └── SuppressSpecificConstructorDemoTest.java │ │ ├── junit4-agent/ │ │ │ └── src/ │ │ │ └── test/ │ │ │ └── java/ │ │ │ └── samples/ │ │ │ └── powermockito/ │ │ │ └── junit4/ │ │ │ └── agent/ │ │ │ ├── AnnotationUsageTest.java │ │ │ └── LargeMethodTest.java │ │ ├── junit4-legacy/ │ │ │ └── src/ │ │ │ └── test/ │ │ │ └── java/ │ │ │ └── samples/ │ │ │ └── junit4/ │ │ │ └── legacy/ │ │ │ ├── annotationbased/ │ │ │ │ ├── AnnotationDemoWithSetupMethodTest.java │ │ │ │ └── FinalDemoWithAnnotationInjectionTest.java │ │ │ ├── noannotation/ │ │ │ │ ├── NoAnnotationUsageTest.java │ │ │ │ ├── SetUpAndTearDownWhenExtendingTestCaseTest.java │ │ │ │ └── SetUpAndTearDownWhenNotExtendingTestCaseTest.java │ │ │ ├── singleton/ │ │ │ │ └── MockStaticTest.java │ │ │ └── suppressconstructor/ │ │ │ └── SuppressConstructorHierarchyDemoTest.java │ │ ├── junit410/ │ │ │ └── src/ │ │ │ └── test/ │ │ │ └── java/ │ │ │ └── samples/ │ │ │ └── junit410/ │ │ │ ├── assume/ │ │ │ │ └── AssumeForJUnit410Test.java │ │ │ ├── expectnew/ │ │ │ │ ├── ExpectNewDemoTest.java │ │ │ │ └── ExpectNewOfFinalSystemClassTest.java │ │ │ ├── github668/ │ │ │ │ ├── Github668.java │ │ │ │ ├── IncidentPropertyChangeDAO.java │ │ │ │ └── package-info.java │ │ │ └── rules/ │ │ │ ├── AssertThatJUnit410RulesWorks.java │ │ │ ├── ExceptionHandlingRuleTest.java │ │ │ ├── NoRuleAssertionErrorTest.java │ │ │ └── impl/ │ │ │ └── SimpleEasyMockJUnitRule.java │ │ ├── junit412/ │ │ │ └── src/ │ │ │ └── test/ │ │ │ └── java/ │ │ │ └── samples/ │ │ │ └── junit412/ │ │ │ ├── bug/ │ │ │ │ └── github755/ │ │ │ │ ├── TwoObjectsAnnotatedTest.java │ │ │ │ └── package-info.java │ │ │ ├── expectnew/ │ │ │ │ ├── ExpectNewDemoTest.java │ │ │ │ └── ExpectNewOfFinalSystemClassTest.java │ │ │ └── github668/ │ │ │ ├── Github668Test.java │ │ │ ├── IncidentPropertyChangeDAO.java │ │ │ ├── TwoMockFieldsWithDifferentTypesClass.java │ │ │ ├── TwoMockFieldsWithSameTypeCase.java │ │ │ └── package-info.java │ │ ├── junit45/ │ │ │ └── src/ │ │ │ ├── main/ │ │ │ │ └── java/ │ │ │ │ └── demo/ │ │ │ │ └── org/ │ │ │ │ └── powermock/ │ │ │ │ └── modules/ │ │ │ │ └── test/ │ │ │ │ └── junit45/ │ │ │ │ └── failure/ │ │ │ │ ├── MyClass.java │ │ │ │ ├── MyException.java │ │ │ │ └── MyUtils.java │ │ │ └── test/ │ │ │ └── java/ │ │ │ └── demo/ │ │ │ └── org/ │ │ │ └── powermock/ │ │ │ └── modules/ │ │ │ └── test/ │ │ │ └── junit45/ │ │ │ └── failure/ │ │ │ └── AssertThatJUnit45FailuresWorkTest.java │ │ ├── junit47/ │ │ │ └── src/ │ │ │ └── test/ │ │ │ └── java/ │ │ │ └── samples/ │ │ │ └── junit4/ │ │ │ ├── annotationbased/ │ │ │ │ └── FinalDemoWithAnnotationInjectionAndFieldDefaulterTest.java │ │ │ ├── expectnew/ │ │ │ │ ├── ExpectNewDemoTest.java │ │ │ │ └── ExpectNewOfFinalSystemClassTest.java │ │ │ └── rules/ │ │ │ ├── AssertThatJUnit47RulesWorks.java │ │ │ ├── NoRuleAssertionErrorTest.java │ │ │ ├── RuleOrderTest.java │ │ │ └── ThrowingRuleTest.java │ │ ├── junit48/ │ │ │ └── src/ │ │ │ └── test/ │ │ │ └── java/ │ │ │ └── samples/ │ │ │ └── junit48/ │ │ │ ├── expectnew/ │ │ │ │ ├── ExpectNewDemoTest.java │ │ │ │ └── ExpectNewOfFinalSystemClassTest.java │ │ │ └── rules/ │ │ │ ├── AssertThatJUnit48RulesWorks.java │ │ │ ├── ExceptionHandlingRuleTest.java │ │ │ ├── NoRuleAssertionErrorTest.java │ │ │ ├── RuleOrderTest.java │ │ │ ├── ThrowingRuleTest.java │ │ │ └── impl/ │ │ │ └── SimpleEasyMockJUnitRule.java │ │ ├── testng/ │ │ │ ├── src/ │ │ │ │ └── test/ │ │ │ │ └── java/ │ │ │ │ └── samples/ │ │ │ │ └── testng/ │ │ │ │ ├── AnnotationDemoTest.java │ │ │ │ ├── AnnotationDemoWithBeforeMethodTest.java │ │ │ │ ├── DocumentBuilderFactoryTest.java │ │ │ │ ├── FinalTest.java │ │ │ │ ├── MockStaticExtendsPowerMockTestCaseTest.java │ │ │ │ ├── MockStaticTest.java │ │ │ │ ├── NotAnnotatedWithPrepareForTest.java │ │ │ │ ├── PartialMockingWithBeforeClassTest.java │ │ │ │ ├── PrivateFinalTest.java │ │ │ │ ├── SampleServletTest.java │ │ │ │ ├── StaticInitializerExampleTest.java │ │ │ │ └── SystemClassUserTest.java │ │ │ └── suite.xml │ │ └── testng-agent/ │ │ ├── src/ │ │ │ └── test/ │ │ │ └── java/ │ │ │ └── samples/ │ │ │ └── testng/ │ │ │ └── agent/ │ │ │ ├── AnnotationDemoTest.java │ │ │ ├── AnnotationDemoWithBeforeMethodTest.java │ │ │ ├── FinalDemoTest.java │ │ │ ├── MockStaticExtendsPowerMockTestCaseTest.java │ │ │ ├── MockStaticTest.java │ │ │ ├── NotAnnotatedWithPrepareForTest.java │ │ │ ├── PartialMockingWithBeforeClassTest.java │ │ │ ├── PrivateFinalTest.java │ │ │ ├── SampleServletTest.java │ │ │ └── SystemClassUserTest.java │ │ └── suite.xml │ ├── java11/ │ │ ├── build.gradle │ │ └── mockito-junit4/ │ │ └── src/ │ │ ├── main/ │ │ │ └── java/ │ │ │ └── samples/ │ │ │ └── powermockito/ │ │ │ └── junit4/ │ │ │ └── bugs/ │ │ │ └── github958/ │ │ │ └── OuterClass.java │ │ └── test/ │ │ └── java/ │ │ └── samples/ │ │ └── powermockito/ │ │ └── junit4/ │ │ └── bugs/ │ │ └── github958/ │ │ └── Github958Test.java │ ├── java8/ │ │ ├── build.gradle │ │ ├── easymock-junit4/ │ │ │ └── src/ │ │ │ ├── main/ │ │ │ │ └── java/ │ │ │ │ └── samples/ │ │ │ │ └── powermockito/ │ │ │ │ └── junit4/ │ │ │ │ └── bugs/ │ │ │ │ └── github717/ │ │ │ │ ├── Instance.java │ │ │ │ ├── InstanceFacade.java │ │ │ │ ├── InstanceFacadeImpl.java │ │ │ │ └── InstanceStatus.java │ │ │ └── test/ │ │ │ └── java/ │ │ │ └── samples/ │ │ │ └── powermockito/ │ │ │ └── junit4/ │ │ │ └── bugs/ │ │ │ └── github717/ │ │ │ ├── InstanceFacadeImplTest.java │ │ │ └── package-info.java │ │ ├── mockito-junit4/ │ │ │ └── src/ │ │ │ ├── main/ │ │ │ │ └── java/ │ │ │ │ └── samples/ │ │ │ │ └── powermockito/ │ │ │ │ └── junit4/ │ │ │ │ ├── bugs/ │ │ │ │ │ └── github510/ │ │ │ │ │ ├── ClassUsesInterface.java │ │ │ │ │ ├── ConstructorObject.java │ │ │ │ │ └── InterfaceWithStatic.java │ │ │ │ └── largemethod/ │ │ │ │ └── InterfaceMethodExceedingJvmLimit.java │ │ │ └── test/ │ │ │ └── java/ │ │ │ ├── org/ │ │ │ │ └── powermock/ │ │ │ │ └── modules/ │ │ │ │ └── junit4/ │ │ │ │ └── largemethod/ │ │ │ │ └── LargeMethodInInterfaceTest.java │ │ │ └── samples/ │ │ │ └── powermockito/ │ │ │ └── junit4/ │ │ │ └── bugs/ │ │ │ └── github510/ │ │ │ ├── Github510Test.java │ │ │ └── package-info.java │ │ ├── mockito-junit4-agent/ │ │ │ └── src/ │ │ │ ├── main/ │ │ │ │ └── java/ │ │ │ │ └── samples/ │ │ │ │ └── powermockito/ │ │ │ │ └── junit4/ │ │ │ │ └── bugs/ │ │ │ │ └── github510/ │ │ │ │ ├── ClassUsesInterface.java │ │ │ │ └── InterfaceWithStatic.java │ │ │ └── test/ │ │ │ └── java/ │ │ │ └── samples/ │ │ │ └── powermockito/ │ │ │ └── junit4/ │ │ │ └── bugs/ │ │ │ └── github510/ │ │ │ └── ClassUsesInterfaceTest.java │ │ └── mockito-junit4-rule-xstream/ │ │ └── src/ │ │ ├── main/ │ │ │ └── java/ │ │ │ └── samples/ │ │ │ └── powermockito/ │ │ │ └── junit4/ │ │ │ └── bugs/ │ │ │ └── github510/ │ │ │ ├── ClassUsesInterface.java │ │ │ └── InterfaceWithStatic.java │ │ └── test/ │ │ └── java/ │ │ └── samples/ │ │ └── powermockito/ │ │ └── junit4/ │ │ └── bugs/ │ │ └── github510/ │ │ └── ClassUsesInterfaceTest.java │ ├── junit4/ │ │ └── src/ │ │ └── test/ │ │ └── java/ │ │ └── samples/ │ │ └── powermockito/ │ │ └── junit4/ │ │ └── bugs/ │ │ ├── github352/ │ │ │ ├── GitHub352Test.java │ │ │ ├── MyAbstractTest.java │ │ │ ├── MyTest.java │ │ │ └── package-info.java │ │ ├── github722/ │ │ │ ├── GitHub722Test.java │ │ │ ├── UseJUnitTest.java │ │ │ └── UseTheoriesTest.java │ │ └── github733/ │ │ ├── GitHub733Test.java │ │ └── UseTestAnnotatedTest.java │ ├── mockito/ │ │ ├── build.gradle │ │ ├── inline/ │ │ │ └── src/ │ │ │ ├── main/ │ │ │ │ └── java/ │ │ │ │ └── samples/ │ │ │ │ └── powermockito/ │ │ │ │ └── inline/ │ │ │ │ └── bugs/ │ │ │ │ └── github793/ │ │ │ │ ├── FinalClass.java │ │ │ │ └── StaticClass.java │ │ │ └── test/ │ │ │ ├── java/ │ │ │ │ └── samples/ │ │ │ │ └── powermockito/ │ │ │ │ └── inline/ │ │ │ │ └── bugs/ │ │ │ │ └── github793/ │ │ │ │ ├── MockitoFinalClassMockingTest.java │ │ │ │ ├── PartialMockingExampleTest.java │ │ │ │ └── PowerMockStaticMockingTest.java │ │ │ └── resources/ │ │ │ └── org/ │ │ │ └── powermock/ │ │ │ └── extensions/ │ │ │ └── configuration.properties │ │ ├── junit4/ │ │ │ └── src/ │ │ │ ├── main/ │ │ │ │ └── java/ │ │ │ │ └── samples/ │ │ │ │ └── powermockito/ │ │ │ │ └── junit4/ │ │ │ │ └── bugs/ │ │ │ │ ├── github731/ │ │ │ │ │ ├── AType.java │ │ │ │ │ ├── OptionalInterface.java │ │ │ │ │ └── SomeInterface.java │ │ │ │ ├── github801/ │ │ │ │ │ └── GlobalPowerMockIgnore.java │ │ │ │ └── github806/ │ │ │ │ ├── CustomException.java │ │ │ │ └── DoThrowTMockClass.java │ │ │ └── test/ │ │ │ ├── java/ │ │ │ │ └── samples/ │ │ │ │ └── powermockito/ │ │ │ │ └── junit4/ │ │ │ │ ├── FinalEqualsClass.java │ │ │ │ ├── FinalEqualsClassTest.java │ │ │ │ ├── abstractmocking/ │ │ │ │ │ └── AbstractMethodMockingTest.java │ │ │ │ ├── annotationbased/ │ │ │ │ │ ├── CaptorAnnotationTest.java │ │ │ │ │ ├── ChunkingAndStaticInitializerRemovalTest.java │ │ │ │ │ ├── InjectMocksAnnotationTest.java │ │ │ │ │ ├── MockFinalUsingAnnotationsTest.java │ │ │ │ │ ├── MockFinalUsingAnnotationsWithAnswersTest.java │ │ │ │ │ └── SpyAnnotationTest.java │ │ │ │ ├── argumentmatcher/ │ │ │ │ │ └── ArgumentMatcherTest.java │ │ │ │ ├── bugs/ │ │ │ │ │ ├── ClassLoaderBugTest.java │ │ │ │ │ ├── github510/ │ │ │ │ │ │ └── package-info.java │ │ │ │ │ ├── github583/ │ │ │ │ │ │ ├── ChildClass.java │ │ │ │ │ │ ├── ClassWithInheritanceTest.java │ │ │ │ │ │ ├── ParenClass.java │ │ │ │ │ │ └── package-info.java │ │ │ │ │ ├── github668/ │ │ │ │ │ │ ├── GitHub668Test.java │ │ │ │ │ │ └── package-info.java │ │ │ │ │ ├── github701/ │ │ │ │ │ │ ├── GitHub701Test.java │ │ │ │ │ │ ├── MapWrapper.java │ │ │ │ │ │ ├── OverridesEquals.java │ │ │ │ │ │ └── package-info.java │ │ │ │ │ ├── github704/ │ │ │ │ │ │ ├── PrepareForTestSignedTest.java │ │ │ │ │ │ ├── SomeClassUseSignedClasses.java │ │ │ │ │ │ └── package-info.java │ │ │ │ │ ├── github716/ │ │ │ │ │ │ ├── A.java │ │ │ │ │ │ ├── B.java │ │ │ │ │ │ ├── C.java │ │ │ │ │ │ ├── MyService.java │ │ │ │ │ │ ├── WhenNewWithAnyArgumentsTest.java │ │ │ │ │ │ └── package-info.java │ │ │ │ │ ├── github731/ │ │ │ │ │ │ ├── MockingInterfacesTest.java │ │ │ │ │ │ └── SomeException.java │ │ │ │ │ ├── github781/ │ │ │ │ │ │ ├── EqualsStatic.java │ │ │ │ │ │ ├── GitHub781Test.java │ │ │ │ │ │ └── SpyObject.java │ │ │ │ │ ├── github801/ │ │ │ │ │ │ └── GlobalPowerMockIgnoreTest.java │ │ │ │ │ └── github806/ │ │ │ │ │ ├── DoThrowTest.java │ │ │ │ │ └── package-info.java │ │ │ │ ├── constructor/ │ │ │ │ │ └── InnerConstructorsAreFoundTest.java │ │ │ │ ├── doreturn/ │ │ │ │ │ └── DoReturnTest.java │ │ │ │ ├── enums/ │ │ │ │ │ └── EnumWithConstructorTest.java │ │ │ │ ├── equalsmocking/ │ │ │ │ │ └── EqualsMockingTest.java │ │ │ │ ├── finalmocking/ │ │ │ │ │ ├── MockFinalMethodsCases.java │ │ │ │ │ └── MockFinalNonStaticMethodsTest.java │ │ │ │ ├── getannotation/ │ │ │ │ │ └── GetAnnotationTest.java │ │ │ │ ├── getclass/ │ │ │ │ │ └── GetClassTest.java │ │ │ │ ├── hashcode/ │ │ │ │ │ ├── HashCodeTest.java │ │ │ │ │ └── InnerClassHashCodeTest.java │ │ │ │ ├── jacoco/ │ │ │ │ │ ├── InstanceMethods.java │ │ │ │ │ ├── JacocoCoverageTest.java │ │ │ │ │ ├── StaticMethods.java │ │ │ │ │ └── TargetTest.java │ │ │ │ ├── largemethod/ │ │ │ │ │ └── LargeMethodTest.java │ │ │ │ ├── membermodification/ │ │ │ │ │ └── MemberModificationExampleTest.java │ │ │ │ ├── nested/ │ │ │ │ │ └── NestedClassDefinedInsideTestCaseTest.java │ │ │ │ ├── partialmocking/ │ │ │ │ │ ├── PartialMockingExampleTest.java │ │ │ │ │ ├── PartialMockingRetainsStateTest.java │ │ │ │ │ ├── PrivatePartialMockingExampleTest.java │ │ │ │ │ └── StaticPartialMockingTest.java │ │ │ │ ├── privatemocking/ │ │ │ │ │ ├── PrivateInstanceMockingCases.java │ │ │ │ │ └── PrivateInstanceMockingTest.java │ │ │ │ ├── proxymethod/ │ │ │ │ │ └── ProxyMethodTest.java │ │ │ │ ├── simplemix/ │ │ │ │ │ └── SimpleMixTest.java │ │ │ │ ├── spy/ │ │ │ │ │ └── SpyTest.java │ │ │ │ ├── stacktracecleaner/ │ │ │ │ │ ├── LocationFromStackTraceTest.java │ │ │ │ │ └── SomethingWithStaticMethod.java │ │ │ │ ├── staticandinstance/ │ │ │ │ │ └── StaticAndInstanceDemoTest.java │ │ │ │ ├── staticmocking/ │ │ │ │ │ ├── MockStaticCases.java │ │ │ │ │ └── MockStaticTest.java │ │ │ │ ├── stress/ │ │ │ │ │ └── PowerMockStressTest.java │ │ │ │ ├── system/ │ │ │ │ │ ├── ServiceLoaderTest.java │ │ │ │ │ └── SystemClassUserTest.java │ │ │ │ ├── tostring/ │ │ │ │ │ └── ToStringTest.java │ │ │ │ ├── verify/ │ │ │ │ │ ├── VerifyNoMoreInteractionsTest.java │ │ │ │ │ └── VerifyZeroInteractionsTest.java │ │ │ │ ├── whennew/ │ │ │ │ │ ├── DoesntSupportCreatingMocksInFieldsWhenNewDefect.java │ │ │ │ │ ├── NewFileExampleTest.java │ │ │ │ │ ├── VerifyNewMultipleTimesTest.java │ │ │ │ │ ├── VerifyNewWithoutWhenNewTest.java │ │ │ │ │ ├── WhenNewCases.java │ │ │ │ │ ├── WhenNewCases.java.orig │ │ │ │ │ └── WhenNewTest.java │ │ │ │ └── withsettings/ │ │ │ │ └── WithSettingsTest.java │ │ │ └── resources/ │ │ │ └── org/ │ │ │ └── powermock/ │ │ │ └── extensions/ │ │ │ └── configuration.properties │ │ ├── junit4-agent/ │ │ │ └── src/ │ │ │ └── test/ │ │ │ └── java/ │ │ │ └── samples/ │ │ │ └── powermockito/ │ │ │ └── junit4/ │ │ │ └── agent/ │ │ │ ├── AnnotationUsageTest.java │ │ │ ├── AssertPowerMockRuleDelagatesToOtherRulesTest.java │ │ │ ├── LargeMethodTest.java │ │ │ ├── MemberModificationExampleTest.java │ │ │ ├── MockFinalNonStaticMethodsTest.java │ │ │ ├── MockFinalUsingAnnotationsTest.java │ │ │ ├── MockStaticTest.java │ │ │ ├── MockStaticWithPrivateCtorTest.java │ │ │ ├── PrivateInstanceMockingTest.java │ │ │ ├── StubMethodTest.java │ │ │ ├── SuppressConstructorDemoTest.java │ │ │ ├── SuppressConstructorHierarchyDemoTest.java │ │ │ ├── SystemClassUserTest.java │ │ │ ├── WhenNewTest.java │ │ │ └── github512/ │ │ │ ├── Github512Test.java │ │ │ └── package-info.java │ │ ├── junit4-delegate/ │ │ │ └── src/ │ │ │ └── test/ │ │ │ └── java/ │ │ │ └── powermock/ │ │ │ └── modules/ │ │ │ └── test/ │ │ │ └── mockito/ │ │ │ └── junit4/ │ │ │ └── delegate/ │ │ │ ├── EnclosedTest.java │ │ │ ├── JUnitParamsTest.java │ │ │ ├── MultipleConstructorsTest.java │ │ │ ├── SelfieTest.java │ │ │ ├── SubclassDelegateTest.java │ │ │ ├── SuperClass.java │ │ │ ├── SuppressedMethod.java │ │ │ ├── SuppressedMethodStubbing.java │ │ │ ├── SystemClassUserCases.java │ │ │ ├── SystemClassUserMethod.java │ │ │ ├── WhenNewCaseMethod.java │ │ │ └── parameterized/ │ │ │ ├── FinalDemoTest.java │ │ │ ├── MockFinalUsingAnnotationsTest.java │ │ │ ├── StubMethodTest.java │ │ │ ├── SuppressConstructorDemoTest.java │ │ │ ├── SuppressConstructorHierarchyDemoTest.java │ │ │ ├── SupressMethodExampleTest.java │ │ │ ├── SystemClassUserTest.java │ │ │ └── WhenNewTest.java │ │ ├── junit4-rule-objenesis/ │ │ │ └── src/ │ │ │ └── test/ │ │ │ └── java/ │ │ │ └── samples/ │ │ │ └── powermockito/ │ │ │ └── junit4/ │ │ │ └── rule/ │ │ │ └── objenesis/ │ │ │ ├── Foo.java │ │ │ ├── MockFinalNonStaticMethodsTest.java │ │ │ ├── MockStaticTest.java │ │ │ ├── PowerMockRuleTest.java │ │ │ ├── PrivateInstanceMockingTest.java │ │ │ ├── StaticInitializerExampleTest.java │ │ │ ├── SystemClassUserTest.java │ │ │ ├── WhenNewTest.java │ │ │ └── bugs/ │ │ │ └── github512/ │ │ │ ├── Github512Test.java │ │ │ └── package-info.java │ │ ├── junit4-rule-xstream/ │ │ │ └── src/ │ │ │ └── test/ │ │ │ └── java/ │ │ │ └── samples/ │ │ │ └── powermockito/ │ │ │ └── junit4/ │ │ │ └── rule/ │ │ │ └── xstream/ │ │ │ ├── AssertPowerMockRuleDelagatesToOtherRulesTest.java │ │ │ ├── Foo.java │ │ │ ├── MockFinalNonStaticMethodsTest.java │ │ │ ├── MockStaticTest.java │ │ │ ├── PowerMockRuleTest.java │ │ │ ├── PrivateInstanceMockingTest.java │ │ │ ├── StaticInitializerExampleTest.java │ │ │ ├── SystemClassUserTest.java │ │ │ ├── WhenNewTest.java │ │ │ └── github512/ │ │ │ ├── Github512Test.java │ │ │ └── package-info.java │ │ ├── junit49/ │ │ │ └── src/ │ │ │ └── test/ │ │ │ └── java/ │ │ │ └── samples/ │ │ │ └── powermockito/ │ │ │ └── junit4/ │ │ │ └── rules/ │ │ │ └── JUnit49RuleTest.java │ │ └── testng/ │ │ ├── src/ │ │ │ └── test/ │ │ │ └── java/ │ │ │ └── samples/ │ │ │ ├── powermockito/ │ │ │ │ └── testng/ │ │ │ │ └── staticmocking/ │ │ │ │ ├── MockStaticNotPreparedTest.java │ │ │ │ ├── MockStaticPreparedWithoutMockStaticTest.java │ │ │ │ └── MockitoMockStaticTest.java │ │ │ └── testng/ │ │ │ └── bugs/ │ │ │ └── github656/ │ │ │ ├── GitHub656Test.java │ │ │ └── package-info.java │ │ └── suite.xml │ ├── testng/ │ │ ├── src/ │ │ │ └── test/ │ │ │ └── java/ │ │ │ └── samples/ │ │ │ └── testng/ │ │ │ ├── SimpleBaseTest.java │ │ │ └── bugs/ │ │ │ └── github647/ │ │ │ ├── GitHub647.java │ │ │ ├── SkipExceptionTest.java │ │ │ └── SomeClass.java │ │ └── suite.xml │ └── utils/ │ └── src/ │ └── main/ │ └── java/ │ ├── org/ │ │ └── powermock/ │ │ └── api/ │ │ └── mockito/ │ │ ├── ConfigurationTestUtils.java │ │ └── MockitoVersion.java │ └── samples/ │ ├── Service.java │ ├── abstractmocking/ │ │ └── AbstractMethodMocking.java │ ├── annotationbased/ │ │ ├── AnnotatedClassDemo.java │ │ ├── AnnotationDemo.java │ │ └── testannotations/ │ │ └── RuntimeAnnotation.java │ ├── anonymousmocking/ │ │ ├── MyAbstractClass.java │ │ └── StupidAnonymous.java │ ├── argumentmatcher/ │ │ └── ArgumentMatcherDemo.java │ ├── classhierarchy/ │ │ ├── ChildA.java │ │ ├── ChildB.java │ │ └── Parent.java │ ├── classwithinnermembers/ │ │ └── ClassWithInnerMembers.java │ ├── constructor/ │ │ ├── PrivateConstructorDemo.java │ │ ├── PrivateConstructorInstantiationDemo.java │ │ ├── PublicConstructorDemo.java │ │ └── PublicConstructorWithDependencyDemo.java │ ├── constructorargs/ │ │ └── ConstructorArgsDemo.java │ ├── enummocking/ │ │ ├── AnotherSomeObjectInterfaceImpl.java │ │ ├── EnumWithConstructor.java │ │ ├── MyEnum.java │ │ ├── SomeObjectInterface.java │ │ └── SomeObjectInterfaceImpl.java │ ├── equalswithgetclass/ │ │ └── EqualsWithGetClass.java │ ├── expectnew/ │ │ ├── CreationException.java │ │ ├── ExpectNewDemo.java │ │ ├── ExpectNewOfFinalSystemClassDemo.java │ │ ├── ExpectNewServiceUser.java │ │ ├── ExpectNewWithMultipleCtorDemo.java │ │ ├── ITarget.java │ │ ├── MultiConstructor.java │ │ ├── NewFileExample.java │ │ ├── PrimitiveAndWrapperDemo.java │ │ ├── PrimitiveAndWrapperUser.java │ │ ├── SimpleVarArgsConstructorDemo.java │ │ ├── Target.java │ │ └── VarArgsConstructorDemo.java │ ├── expectvoid/ │ │ └── ExpectVoidDemo.java │ ├── fieldmock/ │ │ └── FieldInitializerDemo.java │ ├── finalmocking/ │ │ ├── FinalDemo.java │ │ ├── HoldingFinalDemo.java │ │ └── StaticHoldingFinalDemo.java │ ├── hashcode/ │ │ └── HashCodeInitializedInCtor.java │ ├── injectmocks/ │ │ ├── DependencyHolder.java │ │ ├── DependencyHolderQualifier.java │ │ ├── InjectDemo.java │ │ ├── InjectDependencyHolder.java │ │ └── InjectDependencyHolderQualifier.java │ ├── innerclassmocking/ │ │ ├── ClassWithNonPrivateInnerClass.java │ │ └── ClassWithPrivateInnerClass.java │ ├── interfacefieldchange/ │ │ └── InterfaceWithStaticFinalField.java │ ├── interfacemethodfinding/ │ │ ├── InterfaceMethodHierarchyUsage.java │ │ └── WsUtil.java │ ├── java/ │ │ └── ClassInsideJavaPackage.java │ ├── largemethod/ │ │ └── MethodExceedingJvmLimit.java │ ├── methodhierarchy/ │ │ ├── MethodInvocationDemo.java │ │ ├── MethodInvocationDemoGrandParent.java │ │ └── MethodInvocationDemoParent.java │ ├── mockpolicy/ │ │ ├── ResultCalculator.java │ │ ├── SimpleClassWithADependency.java │ │ ├── SomeClassWithAMethod.java │ │ ├── SomeClassWithAMethodParent.java │ │ └── frameworkexample/ │ │ ├── NativeResult.java │ │ ├── SimpleFramework.java │ │ └── SimpleFrameworkUser.java │ ├── nativemocking/ │ │ ├── NativeMockingSample.java │ │ └── NativeService.java │ ├── newmocking/ │ │ ├── MyClass.java │ │ ├── NewDemo.java │ │ ├── SomeDependency.java │ │ └── StupidNew.java │ ├── nice/ │ │ └── NiceDemo.java │ ├── overloading/ │ │ ├── OverloadedMethodsExample.java │ │ ├── OverloadingDemo.java │ │ ├── StaticAndInstanceMethodWithSameName.java │ │ └── StaticAndInstanceMethodWithSameNameUser.java │ ├── packageprivate/ │ │ └── PackagePrivateClass.java │ ├── partialmocking/ │ │ ├── MockSelfDemo.java │ │ ├── MockSelfDemoSubClass.java │ │ ├── MockSelfDemoWithSubClass.java │ │ ├── MockSelfWithNoDefaultConstructorDemo.java │ │ ├── MockWithStaticStateDemo.java │ │ ├── PartialMockingExample.java │ │ ├── PartialMockingWithConstructor.java │ │ └── PrivatePartialMockingExample.java │ ├── powermockignore/ │ │ └── PowerMockIgnoreDemo.java │ ├── privateandfinal/ │ │ ├── PrivateFinal.java │ │ └── PrivateFinalOverload.java │ ├── privatefield/ │ │ ├── MockSelfPrivateFieldServiceClass.java │ │ └── SimplePrivateFieldServiceClass.java │ ├── privatemocking/ │ │ └── PrivateMethodDemo.java │ ├── reflection/ │ │ ├── ReflectionInstantiator.java │ │ ├── UseMe.java │ │ └── UseMeInterface.java │ ├── rule/ │ │ ├── SimpleThing.java │ │ ├── SimpleThingCreator.java │ │ ├── SimpleThingImpl.java │ │ └── ThingToTest.java │ ├── servletmocking/ │ │ └── SampleServlet.java │ ├── simplemix/ │ │ ├── SimpleMix.java │ │ ├── SimpleMixCollaborator.java │ │ ├── SimpleMixConstruction.java │ │ └── SimpleMixUtilities.java │ ├── simplereturn/ │ │ ├── SimpleReturnExample.java │ │ └── SimpleReturnExampleUser.java │ ├── singleton/ │ │ ├── SimpleStaticService.java │ │ ├── StaticExample.java │ │ ├── StaticHelper.java │ │ ├── StaticService.java │ │ └── StaticWithPrivateCtor.java │ ├── spy/ │ │ └── SpyObject.java │ ├── staticandinstance/ │ │ ├── StaticAndInstanceDemo.java │ │ └── StaticAndInstanceWithConstructorCodeDemo.java │ ├── staticinitializer/ │ │ ├── AbstractStaticInitializerExample.java │ │ ├── EvilStaticInitializerExample.java │ │ ├── InterfaceComputation.java │ │ ├── SimpleStaticInitializerExample.java │ │ └── StaticInitializerExample.java │ ├── stress/ │ │ ├── ClassWithStatic.java │ │ └── StressSample.java │ ├── strict/ │ │ └── StrictDemo.java │ ├── suppressconstructor/ │ │ ├── AppaleList.java │ │ ├── InvokeConstructor.java │ │ ├── SuppressConstructorDemo.java │ │ ├── SuppressConstructorHeirarchyEvilGrandParent.java │ │ ├── SuppressConstructorHierarchy.java │ │ ├── SuppressConstructorHierarchyParent.java │ │ ├── SuppressConstructorSubclassDemo.java │ │ ├── SuppressNonParentConstructorDemo.java │ │ └── SuppressSpecificConstructorDemo.java │ ├── suppresseverything/ │ │ └── SuppressEverything.java │ ├── suppressfield/ │ │ ├── DomainObject.java │ │ ├── ItemRepository.java │ │ └── SuppressField.java │ ├── suppressmethod/ │ │ ├── SuppressMethod.java │ │ ├── SuppressMethodExample.java │ │ └── SuppressMethodParent.java │ ├── swing/ │ │ ├── ReallySimpleSwingDemo.java │ │ └── SimpleSwingDemo.java │ ├── system/ │ │ └── SystemClassUser.java │ └── whitebox/ │ └── ClassWithPowerMockGeneratedConstructor.java └── version.properties
Showing preview only (514K chars total). Download the full file or copy to clipboard to get everything.
SYMBOL INDEX (5037 symbols across 880 files)
FILE: powermock-api/powermock-api-easymock/src/main/java/org/powermock/api/easymock/EasyMockConfiguration.java
class EasyMockConfiguration (line 25) | public class EasyMockConfiguration {
method EasyMockConfiguration (line 32) | private EasyMockConfiguration() {
method getConfiguration (line 38) | public static EasyMockConfiguration getConfiguration() {
method initTestSubjectSupported (line 42) | private void initTestSubjectSupported() {
method initReallyEasyMock (line 51) | private void initReallyEasyMock() {
method initInjectMocksSupported (line 60) | private void initInjectMocksSupported() {
method isInjectMocksSupported (line 72) | public boolean isInjectMocksSupported() {
method isReallyEasyMock (line 76) | public boolean isReallyEasyMock() {
method isTestSubjectSupported (line 80) | public boolean isTestSubjectSupported() {
FILE: powermock-api/powermock-api-easymock/src/main/java/org/powermock/api/easymock/PowerMock.java
class PowerMock (line 66) | public class PowerMock extends MemberModifier {
method createMock (line 83) | public static synchronized <T> T createMock(Class<T> type, Method... m...
method createMock (line 94) | public static synchronized <T> T createMock(Class<T> type) {
method createMock (line 109) | public static <T> T createMock(Class<T> type, ConstructorArgs construc...
method createMock (line 123) | public static <T> T createMock(Class<T> type, Object... constructorArg...
method createStrictMock (line 138) | public static synchronized <T> T createStrictMock(Class<T> type, Metho...
method createStrictMock (line 150) | public static synchronized <T> T createStrictMock(Class<T> type) {
method createNiceMock (line 163) | public static synchronized <T> T createNiceMock(Class<T> type, Method....
method createNiceMock (line 175) | public static synchronized <T> T createNiceMock(Class<T> type) {
method createStrictMock (line 190) | public static <T> T createStrictMock(Class<T> type, ConstructorArgs co...
method createNiceMock (line 205) | public static <T> T createNiceMock(Class<T> type, ConstructorArgs cons...
method createStrictMock (line 220) | public static <T> T createStrictMock(Class<T> type, Object... construc...
method createNiceMock (line 237) | public static <T> T createNiceMock(Class<T> type, Object... constructo...
method mockStatic (line 249) | public static synchronized void mockStatic(Class<?> type, Method... me...
method mockStatic (line 258) | public static synchronized void mockStatic(Class<?> type) {
method mockStaticStrict (line 268) | public static synchronized void mockStaticStrict(Class<?> type, Method...
method mockStaticStrict (line 277) | public static synchronized void mockStaticStrict(Class<?> type) {
method mockStaticNice (line 287) | public static synchronized void mockStaticNice(Class<?> type, Method.....
method mockStaticNice (line 296) | public static synchronized void mockStaticNice(Class<?> type) {
method createPartialMockForAllMethodsExcept (line 320) | public static synchronized <T> T createPartialMockForAllMethodsExcept(...
method createNicePartialMockForAllMethodsExcept (line 348) | public static synchronized <T> T createNicePartialMockForAllMethodsExc...
method createStrictPartialMockForAllMethodsExcept (line 376) | public static synchronized <T> T createStrictPartialMockForAllMethodsE...
method createPartialMockForAllMethodsExcept (line 396) | public static synchronized <T> T createPartialMockForAllMethodsExcept(...
method createNicePartialMockForAllMethodsExcept (line 420) | public static synchronized <T> T createNicePartialMockForAllMethodsExc...
method createStrictPartialMockForAllMethodsExcept (line 444) | public static synchronized <T> T createStrictPartialMockForAllMethodsE...
method createPartialMock (line 467) | public static synchronized <T> T createPartialMock(Class<T> type, Stri...
method createStrictPartialMock (line 485) | public static synchronized <T> T createStrictPartialMock(Class<T> type...
method createNicePartialMock (line 503) | public static synchronized <T> T createNicePartialMock(Class<T> type, ...
method mockStaticPartial (line 517) | public static synchronized void mockStaticPartial(Class<?> clazz, Stri...
method mockStaticPartialStrict (line 531) | public static synchronized void mockStaticPartialStrict(Class<?> clazz...
method mockStaticPartialNice (line 545) | public static synchronized void mockStaticPartialNice(Class<?> clazz, ...
method mockStaticPartial (line 569) | public static synchronized void mockStaticPartial(Class<?> clazz, Stri...
method mockStaticPartialStrict (line 591) | public static synchronized void mockStaticPartialStrict(Class<?> clazz...
method mockStaticPartialNice (line 613) | public static synchronized void mockStaticPartialNice(Class<?> clazz, ...
method doMockSpecific (line 617) | static <T> T doMockSpecific(Class<T> type, MockStrategy mockStrategy, ...
method createPartialMock (line 667) | public static synchronized <T> T createPartialMock(Class<T> type, Stri...
method createPartialMock (line 702) | public static synchronized <T> T createPartialMock(Class<T> type, Clas...
method createStrictPartialMock (line 725) | public static synchronized <T> T createStrictPartialMock(Class<T> type...
method createStrictPartialMock (line 760) | public static synchronized <T> T createStrictPartialMock(Class<T> type...
method createNicePartialMock (line 784) | public static synchronized <T> T createNicePartialMock(Class<T> type, ...
method createNicePartialMock (line 819) | public static synchronized <T> T createNicePartialMock(Class<T> type, ...
method createPartialMockAndInvokeDefaultConstructor (line 838) | public static <T> T createPartialMockAndInvokeDefaultConstructor(Class...
method createNicePartialMockAndInvokeDefaultConstructor (line 859) | public static <T> T createNicePartialMockAndInvokeDefaultConstructor(C...
method createStrictPartialMockAndInvokeDefaultConstructor (line 880) | public static <T> T createStrictPartialMockAndInvokeDefaultConstructor...
method createPartialMock (line 903) | public static <T> T createPartialMock(Class<T> type, String[] methodNa...
method createStrictPartialMock (line 927) | public static <T> T createStrictPartialMock(Class<T> type, String[] me...
method createNicePartialMock (line 951) | public static <T> T createNicePartialMock(Class<T> type, String[] meth...
method createPartialMock (line 977) | public static <T> T createPartialMock(Class<T> type, String methodName...
method createStrictPartialMock (line 1005) | public static <T> T createStrictPartialMock(Class<T> type, String meth...
method createNicePartialMock (line 1033) | public static <T> T createNicePartialMock(Class<T> type, String method...
method createPartialMock (line 1064) | public static <T> T createPartialMock(Class<T> type, String methodName...
method createStrictPartialMock (line 1096) | public static <T> T createStrictPartialMock(Class<T> type, String meth...
method createNicePartialMock (line 1128) | public static <T> T createNicePartialMock(Class<T> type, String method...
method expectPrivate (line 1140) | public static synchronized <T> IExpectationSetters<T> expectPrivate(Cl...
method expectPrivate (line 1149) | public static synchronized <T> IExpectationSetters<T> expectPrivate(Ob...
method expectPrivate (line 1158) | @SuppressWarnings("all")
method expectPrivate (line 1184) | public static synchronized <T> IExpectationSetters<T> expectPrivate(Ob...
method expectPrivate (line 1200) | public static synchronized <T> IExpectationSetters<T> expectPrivate(Ob...
method expectPrivate (line 1213) | public static synchronized <T> IExpectationSetters<T> expectPrivate(Ob...
method expectPrivate (line 1242) | public static synchronized <T> IExpectationSetters<T> expectPrivate(Ob...
method expectLastCall (line 1254) | public static synchronized IExpectationSetters<Object> expectLastCall() {
method niceReplayAndVerify (line 1263) | public static synchronized void niceReplayAndVerify() {
method isEasyMocked (line 1270) | private static boolean isEasyMocked(Object mock) {
method replayAll (line 1299) | public static synchronized void replayAll(Object... additionalMocks) {
method resetAll (line 1329) | public static synchronized void resetAll(Object... additionalMocks) {
method reset (line 1340) | public static synchronized void reset(Class<?>... classMocks) {
method reset (line 1360) | public static synchronized void reset(Object... mocks) {
method verifyAll (line 1413) | public static synchronized void verifyAll() {
method replay (line 1426) | public static synchronized void replay(Object... mocks) {
method verify (line 1469) | public static synchronized void verify(Object... objects) {
method createMockAndExpectNew (line 1504) | public static synchronized <T> T createMockAndExpectNew(Class<T> type,...
method createMockAndExpectNew (line 1523) | public static synchronized <T> T createMockAndExpectNew(Class<T> type,...
method createNiceMockAndExpectNew (line 1538) | public static synchronized <T> T createNiceMockAndExpectNew(Class<T> t...
method createNiceMockAndExpectNew (line 1560) | public static synchronized <T> T createNiceMockAndExpectNew(Class<T> t...
method createStrictMockAndExpectNew (line 1578) | public static synchronized <T> T createStrictMockAndExpectNew(Class<T>...
method createStrictMockAndExpectNew (line 1597) | public static synchronized <T> T createStrictMockAndExpectNew(Class<T>...
method expectNew (line 1615) | public static synchronized <T> IExpectationSetters<T> expectNew(Class<...
method doExpectNew (line 1620) | @SuppressWarnings("unchecked")
method expectNew (line 1665) | public static synchronized <T> IExpectationSetters<T> expectNew(Class<...
method expectNew (line 1681) | @SuppressWarnings("unchecked")
method expectStrictNew (line 1697) | public static synchronized <T> IExpectationSetters<T> expectStrictNew(...
method expectStrictNew (line 1715) | public static synchronized <T> IExpectationSetters<T> expectStrictNew(...
method expectNiceNew (line 1730) | public static synchronized <T> IExpectationSetters<T> expectNiceNew(Cl...
method expectNiceNew (line 1749) | public static synchronized <T> IExpectationSetters<T> expectNiceNew(Cl...
method suppressConstructor (line 1759) | @Deprecated
method suppressSpecificConstructor (line 1771) | @Deprecated
method suppressConstructor (line 1782) | @Deprecated
method suppressConstructor (line 1794) | @Deprecated
method suppressField (line 1806) | @Deprecated
method suppressField (line 1816) | @Deprecated
method suppressField (line 1830) | @Deprecated
method suppressMethod (line 1842) | @Deprecated
method suppressMethod (line 1854) | @Deprecated
method suppressMethod (line 1865) | @Deprecated
method suppressMethod (line 1878) | @Deprecated
method suppressMethod (line 1890) | @Deprecated
method suppressMethod (line 1902) | @Deprecated
method suppressMethod (line 1912) | @Deprecated
method doMock (line 1917) | @SuppressWarnings("unchecked")
method createReplicaType (line 1992) | private static <T> Class<?> createReplicaType(Class<T> type, boolean i...
method doCreateMock (line 2017) | private static <T> T doCreateMock(Class<T> type, ConstructorArgs const...
method toSet (line 2037) | private static Set<Method> toSet(Method[] methods) {
method mergeArgumentTypes (line 2041) | private static Class<?>[] mergeArgumentTypes(Class<?> firstArgumentTyp...
method doExpectPrivate (line 2055) | @SuppressWarnings("unchecked")
method replay (line 2062) | private static synchronized void replay(Class<?>... types) {
method verifyClass (line 2079) | private static synchronized void verifyClass(Class<?>... types) {
method isNiceReplayAndVerifyMode (line 2096) | private static boolean isNiceReplayAndVerifyMode() {
class EasyMockStateCleaner (line 2104) | private static class EasyMockStateCleaner implements Runnable {
method run (line 2106) | @Override
method clearStateFromOtherClassLoaders (line 2112) | private void clearStateFromOtherClassLoaders() {
method classloadersToClear (line 2127) | private Iterable<ClassLoader> classloadersToClear() {
method classFoundInClassloader (line 2140) | private boolean classFoundInClassloader(Class<?> cls, ClassLoader cl...
FILE: powermock-api/powermock-api-easymock/src/main/java/org/powermock/api/easymock/internal/invocationcontrol/EasyMockMethodInvocationControl.java
class EasyMockMethodInvocationControl (line 30) | public class EasyMockMethodInvocationControl<T> implements MethodInvocat...
method EasyMockMethodInvocationControl (line 60) | public EasyMockMethodInvocationControl(MockInvocationHandler invocatio...
method EasyMockMethodInvocationControl (line 79) | public EasyMockMethodInvocationControl(MockInvocationHandler invocatio...
method isMocked (line 83) | @Override
method invoke (line 88) | @Override
method getMockType (line 93) | public MockType getMockType() {
method replay (line 113) | @Override
method verify (line 123) | public synchronized Object verify(Object... mocks) {
method reset (line 132) | @Override
FILE: powermock-api/powermock-api-easymock/src/main/java/org/powermock/api/easymock/internal/invocationcontrol/EasyMockNewInvocationControl.java
class EasyMockNewInvocationControl (line 29) | public class EasyMockNewInvocationControl<T> implements NewInvocationCon...
method EasyMockNewInvocationControl (line 35) | public EasyMockNewInvocationControl(InvocationSubstitute<T> substitute...
method invoke (line 43) | @Override
method expectSubstitutionLogic (line 75) | @Override
method replay (line 80) | @Override
method verify (line 89) | public synchronized Object verify(Object... mocks) {
method reset (line 97) | @Override
FILE: powermock-api/powermock-api-easymock/src/main/java/org/powermock/api/easymock/internal/invocationcontrol/NewInvocationControlAssertionError.java
class NewInvocationControlAssertionError (line 7) | public class NewInvocationControlAssertionError {
method throwAssertionErrorForNewSubstitutionFailure (line 8) | public static void throwAssertionErrorForNewSubstitutionFailure(Assert...
FILE: powermock-api/powermock-api-easymock/src/main/java/org/powermock/api/easymock/internal/mockstrategy/MockStrategy.java
type MockStrategy (line 5) | public interface MockStrategy {
method createMockControl (line 7) | IMocksControl createMockControl(Class<?> type);
FILE: powermock-api/powermock-api-easymock/src/main/java/org/powermock/api/easymock/internal/mockstrategy/impl/AbstractMockStrategyBase.java
class AbstractMockStrategyBase (line 12) | public abstract class AbstractMockStrategyBase implements MockStrategy {
method AbstractMockStrategyBase (line 16) | public AbstractMockStrategyBase(MockType mockType) {
method createMockControl (line 23) | @Override
FILE: powermock-api/powermock-api-easymock/src/main/java/org/powermock/api/easymock/internal/mockstrategy/impl/DefaultMockStrategy.java
class DefaultMockStrategy (line 5) | public class DefaultMockStrategy extends AbstractMockStrategyBase {
method DefaultMockStrategy (line 7) | public DefaultMockStrategy() {
FILE: powermock-api/powermock-api-easymock/src/main/java/org/powermock/api/easymock/internal/mockstrategy/impl/NiceMockStrategy.java
class NiceMockStrategy (line 5) | public class NiceMockStrategy extends AbstractMockStrategyBase {
method NiceMockStrategy (line 7) | public NiceMockStrategy() {
FILE: powermock-api/powermock-api-easymock/src/main/java/org/powermock/api/easymock/internal/mockstrategy/impl/StrictMockStrategy.java
class StrictMockStrategy (line 5) | public class StrictMockStrategy extends AbstractMockStrategyBase {
method StrictMockStrategy (line 7) | public StrictMockStrategy() {
FILE: powermock-api/powermock-api-easymock/src/main/java/org/powermock/api/easymock/mockpolicies/AbstractEasyMockLogPolicyBase.java
class AbstractEasyMockLogPolicyBase (line 31) | abstract class AbstractEasyMockLogPolicyBase implements PowerMockPolicy {
method applyClassLoadingPolicy (line 33) | @Override
method applyInterceptionPolicy (line 38) | @Override
method getLoggerMethodName (line 66) | protected abstract String getLoggerMethodName();
method getLoggerFactoryClassName (line 72) | protected abstract String getLoggerFactoryClassName();
method getLoggerClassToMock (line 79) | protected abstract String getLoggerClassToMock();
method getLogFrameworkName (line 86) | protected abstract String getLogFrameworkName();
method getFullyQualifiedNamesOfClassesToLoadByMockClassloader (line 92) | protected abstract String[] getFullyQualifiedNamesOfClassesToLoadByMoc...
FILE: powermock-api/powermock-api-easymock/src/main/java/org/powermock/api/easymock/mockpolicies/JclMockPolicy.java
class JclMockPolicy (line 34) | public class JclMockPolicy extends AbstractEasyMockLogPolicyBase {
method getFullyQualifiedNamesOfClassesToLoadByMockClassloader (line 39) | protected String[] getFullyQualifiedNamesOfClassesToLoadByMockClassloa...
method getLogFrameworkName (line 43) | @Override
method getLoggerClassToMock (line 48) | @Override
method getLoggerFactoryClassName (line 53) | @Override
method getLoggerMethodName (line 58) | @Override
FILE: powermock-api/powermock-api-easymock/src/main/java/org/powermock/api/easymock/mockpolicies/Log4jMockPolicy.java
class Log4jMockPolicy (line 31) | public class Log4jMockPolicy extends AbstractEasyMockLogPolicyBase {
method getFullyQualifiedNamesOfClassesToLoadByMockClassloader (line 38) | @Override
method getLogFrameworkName (line 43) | @Override
method getLoggerClassToMock (line 48) | @Override
method getLoggerFactoryClassName (line 53) | @Override
method getLoggerMethodName (line 58) | @Override
FILE: powermock-api/powermock-api-easymock/src/main/java/org/powermock/api/easymock/mockpolicies/Slf4jMockPolicy.java
class Slf4jMockPolicy (line 32) | public class Slf4jMockPolicy extends AbstractEasyMockLogPolicyBase {
method getFullyQualifiedNamesOfClassesToLoadByMockClassloader (line 34) | @Override
method getLogFrameworkName (line 39) | @Override
method getLoggerClassToMock (line 44) | @Override
method getLoggerFactoryClassName (line 49) | @Override
method getLoggerMethodName (line 54) | @Override
FILE: powermock-api/powermock-api-easymock/src/main/java/org/powermock/api/easymock/powermocklistener/AnnotationEnabler.java
class AnnotationEnabler (line 29) | @Deprecated
FILE: powermock-api/powermock-api-easymock/src/main/java/org/powermock/api/extension/InjectFieldSearcher.java
type InjectFieldSearcher (line 27) | public interface InjectFieldSearcher {
method findField (line 28) | Field findField(Object instance, MockMetadata mockMetadata);
FILE: powermock-api/powermock-api-easymock/src/main/java/org/powermock/api/extension/agent/JavaAgentFrameworkRegisterImpl.java
class JavaAgentFrameworkRegisterImpl (line 26) | public class JavaAgentFrameworkRegisterImpl implements JavaAgentFramewor...
method set (line 27) | @Override
method clear (line 32) | @Override
FILE: powermock-api/powermock-api-easymock/src/main/java/org/powermock/api/extension/listener/AnnotationEnabler.java
class AnnotationEnabler (line 50) | @SuppressWarnings({"deprecation", "JavadocReference"})
method getMockAnnotations (line 54) | @SuppressWarnings("unchecked")
method beforeTestMethod (line 59) | @Override
method getEasyMockAnnotationSupport (line 79) | @SuppressWarnings("WeakerAccess")
FILE: powermock-api/powermock-api-easymock/src/main/java/org/powermock/api/extension/listener/AnnotationGlobalMetadata.java
class AnnotationGlobalMetadata (line 28) | class AnnotationGlobalMetadata {
method getQualifiedInjections (line 36) | public List<MockMetadata> getQualifiedInjections() {
method getUnqualifiedInjections (line 40) | public List<MockMetadata> getUnqualifiedInjections() {
method add (line 44) | public void add(List<MockMetadata> mocksMetadata) {
method add (line 50) | private void add(MockMetadata mockMetadata) {
method blockDuplicateQualifiers (line 62) | private void blockDuplicateQualifiers(String qualifier) {
FILE: powermock-api/powermock-api-easymock/src/main/java/org/powermock/api/extension/listener/AnnotationMockCreator.java
type AnnotationMockCreator (line 25) | interface AnnotationMockCreator {
method createMockInstance (line 26) | Object createMockInstance(final Class<?> type, final Method[] methods);
FILE: powermock-api/powermock-api-easymock/src/main/java/org/powermock/api/extension/listener/AnnotationMockCreatorFactory.java
class AnnotationMockCreatorFactory (line 29) | class AnnotationMockCreatorFactory {
method createDefaultMockCreator (line 30) | public AnnotationMockCreator createDefaultMockCreator() {
method createNiceMockCreator (line 39) | public AnnotationMockCreator createNiceMockCreator() {
method createStrictMockCreator (line 48) | public AnnotationMockCreator createStrictMockCreator() {
FILE: powermock-api/powermock-api-easymock/src/main/java/org/powermock/api/extension/listener/AnnotationMockMetadata.java
class AnnotationMockMetadata (line 27) | @SuppressWarnings("WeakerAccess")
method AnnotationMockMetadata (line 37) | public AnnotationMockMetadata(Class<? extends Annotation> annotation, ...
method findQualifier (line 47) | private String findQualifier() {
method getFieldName (line 63) | @Override
method getQualifier (line 68) | @Override
method getAnnotation (line 73) | @Override
method getType (line 78) | @Override
method getMethods (line 83) | @Override
method getMethod (line 88) | private Method[] getMethod() throws Exception {
method getMock (line 97) | @Override
method setMock (line 102) | @Override
method equals (line 107) | @Override
method hashCode (line 120) | @Override
FILE: powermock-api/powermock-api-easymock/src/main/java/org/powermock/api/extension/listener/AnnotationMockScanner.java
class AnnotationMockScanner (line 28) | class AnnotationMockScanner {
method AnnotationMockScanner (line 31) | public AnnotationMockScanner(Class<? extends Annotation> annotation) {
method scan (line 35) | public List<MockMetadata> scan(Object instance) throws Exception {
method getFields (line 47) | @SuppressWarnings("unchecked")
FILE: powermock-api/powermock-api-easymock/src/main/java/org/powermock/api/extension/listener/DefaultInjectFieldSearcher.java
class DefaultInjectFieldSearcher (line 30) | @SuppressWarnings("unchecked")
method findField (line 33) | @Override
method filterByFieldName (line 54) | private Set<Field> filterByFieldName(final Set<Field> candidates, fina...
method filterByType (line 61) | private Set<Field> filterByType(Set<Field> candidates, Class<?> type) {
method doFilterByType (line 68) | private Set<Field> doFilterByType(Set<Field> candidates, Class<?> type) {
method filterByQualifier (line 78) | private Set<Field> filterByQualifier(Set<Field> candidates, String qua...
method doFilterByQualifier (line 85) | private Set<Field> doFilterByQualifier(Set<Field> candidates, String q...
FILE: powermock-api/powermock-api-easymock/src/main/java/org/powermock/api/extension/listener/EasyMockAnnotationSupport.java
class EasyMockAnnotationSupport (line 38) | @SuppressWarnings({"WeakerAccess", "JavadocReference"})
method EasyMockAnnotationSupport (line 46) | public EasyMockAnnotationSupport(Object testInstance) {
method injectMocks (line 53) | public void injectMocks() throws Exception {
method injectStrictMocks (line 60) | protected void injectStrictMocks() throws Exception {
method injectNiceMocks (line 64) | protected void injectNiceMocks() throws Exception {
method injectDefaultMocks (line 68) | @SuppressWarnings("deprecation")
method injectTestSubjectMocks (line 73) | @SuppressWarnings("unchecked")
method inject (line 82) | protected void inject(Object injectCandidateInstance, Class<? extends ...
method injectMock (line 96) | protected void injectMock(Object injectCandidateInstance, MockMetadata...
method createMock (line 107) | protected Object createMock(AnnotationMockCreator mockCreator, MockMet...
FILE: powermock-api/powermock-api-easymock/src/main/java/org/powermock/api/extension/listener/MockMetadata.java
type MockMetadata (line 26) | public interface MockMetadata {
method getFieldName (line 27) | String getFieldName();
method getQualifier (line 29) | String getQualifier();
method getAnnotation (line 31) | Class<? extends Annotation> getAnnotation();
method getType (line 33) | Class<?> getType();
method getMethods (line 35) | Method[] getMethods();
method getMock (line 37) | Object getMock();
method setMock (line 39) | void setMock(Object mock);
FILE: powermock-api/powermock-api-easymock/src/main/java/org/powermock/api/extension/listener/TestSubjectInjector.java
class TestSubjectInjector (line 34) | @SuppressWarnings({"deprecation", "WeakerAccess"})
method TestSubjectInjector (line 40) | public TestSubjectInjector(Object testInstance, AnnotationGlobalMetada...
method injectTestSubjectMocks (line 46) | @SuppressWarnings("unchecked")
method injectTestSubjectFields (line 60) | protected void injectTestSubjectFields(Object testSubject) throws Ille...
method injectByType (line 66) | void injectByType(Set<Field> targetFields, Object testSubject) throws ...
method findUniqueAssignable (line 81) | MockMetadata findUniqueAssignable(InjectionTarget target) {
method injectByName (line 94) | Set<Field> injectByName(Set<Field> targetFields, Object targetObject) ...
method getFieldByName (line 115) | private Field getFieldByName(Class<?> clazz, String fieldName) {
class InjectionTarget (line 125) | private static class InjectionTarget {
method InjectionTarget (line 129) | public InjectionTarget(Field field) {
method getField (line 134) | public Field getField() {
method accepts (line 138) | public boolean accepts(MockMetadata mockMetadata) {
method inject (line 142) | public void inject(Object targetObject, MockMetadata mockMetadata) t...
FILE: powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/extension/agent/JavaAgentFrameworkRegisterImpl.java
class JavaAgentFrameworkRegisterImpl (line 11) | public class JavaAgentFrameworkRegisterImpl implements JavaAgentFramewor...
method set (line 17) | @Override
method setToPowerMockito (line 22) | private void setToPowerMockito(JavaAgentClassRegister javaAgentClassRe...
method getPowerMockCoreForCurrentClassLoader (line 29) | private MockCreator getPowerMockCoreForCurrentClassLoader() {
method clear (line 38) | @Override
FILE: powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/extension/listener/AnnotationEnabler.java
class AnnotationEnabler (line 50) | @SuppressWarnings("deprecation")
method beforeTestMethod (line 53) | @Override
method injectSpiesAndInjectToSetters (line 60) | private void injectSpiesAndInjectToSetters(Object testInstance) {
method injectCaptor (line 64) | private void injectCaptor(Object testInstance) throws Exception {
method standardInject (line 72) | private void standardInject(Object testInstance) throws IllegalAccessE...
method getMockAnnotations (line 105) | @SuppressWarnings("unchecked")
method processAnnotationOn (line 111) | private Object processAnnotationOn(Captor annotation, Field field) {
FILE: powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/ClassNotPreparedException.java
class ClassNotPreparedException (line 7) | public class ClassNotPreparedException extends RuntimeException {
method ClassNotPreparedException (line 9) | public ClassNotPreparedException(String message) {
FILE: powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/PowerMockito.java
class PowerMockito (line 52) | public class PowerMockito extends MemberModifier {
method mockStatic (line 61) | public static synchronized void mockStatic(Class<?> type, Class<?>... ...
method mockStatic (line 87) | public static void mockStatic(Class<?> classMock, @SuppressWarnings("r...
method mockStatic (line 114) | public static void mockStatic(Class<?> classToMock, MockSettings mockS...
method mock (line 125) | public static synchronized <T> T mock(Class<T> type) {
method mock (line 150) | public static <T> T mock(Class<T> classToMock, @SuppressWarnings("rawt...
method mock (line 180) | public static <T> T mock(Class<T> classToMock, MockSettings mockSettin...
method spy (line 193) | @SuppressWarnings("unchecked")
method spy (line 205) | public static synchronized <T> void spy(Class<T> type) {
method verifyStatic (line 236) | public static synchronized <T> void verifyStatic(Class<T> mockedClass) {
method verifyStatic (line 262) | public static synchronized <T> void verifyStatic(Class<T> mockedClass,...
method verifyPrivate (line 271) | public static PrivateMethodVerification verifyPrivate(Object object) {
method verifyPrivate (line 280) | public static PrivateMethodVerification verifyPrivate(Object object, V...
method verifyPrivate (line 291) | public static PrivateMethodVerification verifyPrivate(Class<?> clazz) ...
method verifyPrivate (line 301) | public static PrivateMethodVerification verifyPrivate(Class<?> clazz, ...
method verifyNew (line 324) | @SuppressWarnings("unchecked")
method verifyNew (line 348) | @SuppressWarnings("unchecked")
method when (line 359) | public static <T> OngoingStubbing<T> when(Object instance, String meth...
method when (line 368) | public static <T> WithOrWithoutExpectedArguments<T> when(Object instan...
method when (line 377) | public static <T> WithOrWithoutExpectedArguments<T> when(Class<?> cls,...
method when (line 389) | public static <T> OngoingStubbing<T> when(Object instance, Object... a...
method when (line 399) | public static <T> OngoingStubbing<T> when(Class<?> clazz, String metho...
method when (line 412) | public static <T> OngoingStubbing<T> when(Class<?> klass, Object... ar...
method when (line 421) | public static <T> OngoingStubbing<T> when(T methodCall) {
method whenNew (line 429) | public static synchronized <T> WithOrWithoutExpectedArguments<T> whenN...
method whenNew (line 437) | public static synchronized <T> ConstructorExpectationSetup<T> whenNew(...
method whenNew (line 449) | @SuppressWarnings("unchecked")
method verifyNoMoreInteractions (line 504) | public static void verifyNoMoreInteractions(Object... mocks) {
method verifyZeroInteractions (line 529) | public static void verifyZeroInteractions(Object... mocks) {
method doAnswer (line 558) | public static PowerMockitoStubber doAnswer(Answer<?> answer) {
method doThrow (line 578) | public static PowerMockitoStubber doThrow(Throwable toBeThrown) {
method doCallRealMethod (line 619) | public static PowerMockitoStubber doCallRealMethod() {
method doNothing (line 659) | public static PowerMockitoStubber doNothing() {
method doReturn (line 709) | public static PowerMockitoStubber doReturn(Object toBeReturned) {
method doReturn (line 763) | public static PowerMockitoStubber doReturn(Object toBeReturned, Object...
FILE: powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/expectation/ConstructorAwareExpectationSetup.java
class ConstructorAwareExpectationSetup (line 23) | public class ConstructorAwareExpectationSetup<T> implements WithOrWithou...
method ConstructorAwareExpectationSetup (line 28) | public ConstructorAwareExpectationSetup(Constructor<T> ctor) {
method withArguments (line 36) | @Override
method withNoArguments (line 41) | @Override
method setupExpectation (line 46) | private DefaultConstructorExpectationSetup<T> setupExpectation() {
FILE: powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/expectation/ConstructorExpectationSetup.java
type ConstructorExpectationSetup (line 18) | public interface ConstructorExpectationSetup<T> extends WithOrWithoutExp...
FILE: powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/expectation/DefaultConstructorExpectationSetup.java
class DefaultConstructorExpectationSetup (line 36) | public class DefaultConstructorExpectationSetup<T> implements Constructo...
method DefaultConstructorExpectationSetup (line 44) | public DefaultConstructorExpectationSetup(Class<T> mockType) {
method withArguments (line 51) | @Override
method createNewSubstituteMock (line 57) | @SuppressWarnings({"unchecked", "rawtypes"})
method createNewInvocationControl (line 75) | private NewInvocationControl<OngoingStubbing<T>> createNewInvocationCo...
method withAnyArguments (line 89) | @Override
method createParamArgMatcher (line 110) | private Object createParamArgMatcher(Class<?> paramType) {
method withNoArguments (line 114) | @Override
method withParameterTypes (line 119) | @Override
method getMockCreator (line 125) | private DefaultMockCreator getMockCreator() {return mockCreator;}
method createNewInvocationControl (line 127) | private NewInvocationControl<OngoingStubbing<T>> createNewInvocationCo...
method setParameterTypes (line 131) | void setParameterTypes(Class<?>[] parameterTypes) {
FILE: powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/expectation/PowerMockitoStubber.java
type PowerMockitoStubber (line 29) | public interface PowerMockitoStubber extends Stubber {
method when (line 63) | void when(Class<?> classMock);
method when (line 94) | <T> PrivatelyExpectedArguments when(T mock, Method method) throws Exce...
method when (line 127) | <T> void when(T mock, Object... arguments) throws Exception;
method when (line 161) | <T> void when(T mock, String methodToExpect, Object... arguments) thro...
method when (line 192) | <T> PrivatelyExpectedArguments when(Class<T> classMock, Method method)...
method when (line 223) | <T> void when(Class<T> classMock, Object... arguments) throws Exception;
method when (line 256) | <T> void when(Class<T> classMock, String methodToExpect, Object... arg...
FILE: powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/expectation/PrivatelyExpectedArguments.java
type PrivatelyExpectedArguments (line 18) | public interface PrivatelyExpectedArguments {
method withArguments (line 19) | <T> void withArguments(Object firstArgument, Object... additionalArgum...
method withNoArguments (line 21) | <T> void withNoArguments() throws Exception;
FILE: powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/expectation/WithAnyArguments.java
type WithAnyArguments (line 20) | public interface WithAnyArguments<T> {
method withAnyArguments (line 22) | OngoingStubbing<T> withAnyArguments() throws Exception;
FILE: powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/expectation/WithExpectedArguments.java
type WithExpectedArguments (line 21) | public interface WithExpectedArguments<T> {
method withArguments (line 23) | OngoingStubbing<T> withArguments(Object firstArgument, Object... addit...
FILE: powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/expectation/WithExpectedParameterTypes.java
type WithExpectedParameterTypes (line 18) | public interface WithExpectedParameterTypes<T> {
method withParameterTypes (line 20) | WithExpectedArguments<T> withParameterTypes(Class<?> parameterType, Cl...
FILE: powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/expectation/WithOrWithoutExpectedArguments.java
type WithOrWithoutExpectedArguments (line 18) | public interface WithOrWithoutExpectedArguments<T> extends WithExpectedA...
FILE: powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/expectation/WithoutExpectedArguments.java
type WithoutExpectedArguments (line 21) | public interface WithoutExpectedArguments<T> {
method withNoArguments (line 23) | OngoingStubbing<T> withNoArguments() throws Exception;
FILE: powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/expectation/reporter/MockitoPowerMockReporter.java
class MockitoPowerMockReporter (line 25) | public class MockitoPowerMockReporter implements PowerMockReporter {
method classNotPrepared (line 27) | @Override
FILE: powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/internal/PowerMockitoCore.java
class PowerMockitoCore (line 40) | public class PowerMockitoCore {
method doAnswer (line 46) | public PowerMockitoStubber doAnswer(final Answer answer) {
method doThrow (line 55) | public PowerMockitoStubber doThrow(final Throwable toBeThrown) {
method doCallRealMethod (line 64) | public PowerMockitoStubber doCallRealMethod() {
method doNothing (line 73) | public PowerMockitoStubber doNothing() {
method doReturn (line 82) | public PowerMockitoStubber doReturn(final Object toBeReturned) {
method doAnswer (line 91) | public PowerMockitoStubber doAnswer(final Object toBeReturned, final O...
method verifyNew (line 100) | public <T> DefaultConstructorArgumentsVerification<T> verifyNew(final ...
method spy (line 113) | public <T> T spy(final T object) {
method doAnswer (line 121) | private PowerMockitoStubber doAnswer(final Callable<Stubber> callable) {
FILE: powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/internal/configuration/PowerMockitoInjectingAnnotationEngine.java
class PowerMockitoInjectingAnnotationEngine (line 30) | public class PowerMockitoInjectingAnnotationEngine extends InjectingAnno...
method process (line 32) | @SuppressWarnings("deprecation")
method preLoadPluginLoader (line 45) | private void preLoadPluginLoader() {
FILE: powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/internal/configuration/PowerMockitoSpyAnnotationEngine.java
class PowerMockitoSpyAnnotationEngine (line 33) | public class PowerMockitoSpyAnnotationEngine extends SpyAnnotationEngine {
method process (line 35) | @SuppressWarnings("deprecation")
FILE: powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/internal/exceptions/StackTraceCleanerProvider.java
class StackTraceCleanerProvider (line 22) | public class StackTraceCleanerProvider implements org.mockito.plugins.St...
method getStackTraceCleaner (line 23) | @Override
FILE: powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/internal/expectation/DefaultMethodExpectationSetup.java
class DefaultMethodExpectationSetup (line 25) | public class DefaultMethodExpectationSetup<T> implements WithOrWithoutEx...
method DefaultMethodExpectationSetup (line 31) | public DefaultMethodExpectationSetup(Object object, Method method) {
method join (line 42) | private static Object[] join(Object o, Object[] array) {
method withArguments (line 49) | @SuppressWarnings("unchecked")
method withNoArguments (line 59) | @SuppressWarnings("unchecked")
FILE: powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/internal/expectation/DefaultPrivatelyExpectedArguments.java
class DefaultPrivatelyExpectedArguments (line 23) | public class DefaultPrivatelyExpectedArguments implements PrivatelyExpec...
method DefaultPrivatelyExpectedArguments (line 28) | public DefaultPrivatelyExpectedArguments(Object mock, Method method) {
method withArguments (line 34) | @Override
method withNoArguments (line 48) | @Override
FILE: powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/internal/expectation/DelegatingToConstructorsOngoingStubbing.java
class DelegatingToConstructorsOngoingStubbing (line 31) | public class DelegatingToConstructorsOngoingStubbing<T> implements Ongoi...
method DelegatingToConstructorsOngoingStubbing (line 36) | public DelegatingToConstructorsOngoingStubbing(Constructor<?>[] ctors,...
method thenReturn (line 44) | @Override
method thenReturn (line 55) | @Override
method thenThrow (line 66) | @Override
method thenThrow (line 77) | @Override
method thenThrow (line 88) | @Override
method thenCallRealMethod (line 99) | @Override
method thenAnswer (line 110) | @Override
method then (line 121) | @Override
method getMock (line 132) | @Override
class InvokeStubMethod (line 138) | private abstract class InvokeStubMethod {
method invoke (line 139) | public OngoingStubbing<T> invoke() {
method performStubbing (line 159) | public abstract void performStubbing(OngoingStubbing<T> when);
FILE: powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/internal/expectation/PowerMockitoStubberImpl.java
class PowerMockitoStubberImpl (line 33) | public class PowerMockitoStubberImpl implements PowerMockitoStubber, Stu...
method PowerMockitoStubberImpl (line 37) | public PowerMockitoStubberImpl(final Stubber stubber) {this.stubber = ...
method when (line 39) | @Override
method doThrow (line 53) | @Override
method doThrow (line 56) | @Override
method doThrow (line 59) | @Override
method doAnswer (line 62) | @Override
method doNothing (line 65) | @Override
method doReturn (line 68) | @Override
method doReturn (line 71) | @Override
method doCallRealMethod (line 75) | @Override
method when (line 78) | @Override
method when (line 85) | @Override
method when (line 93) | @Override
method when (line 100) | @Override
method when (line 108) | @Override
method when (line 115) | @Override
method when (line 123) | @Override
method assertNotNull (line 131) | private void assertNotNull(Object object, String name) {
FILE: powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/internal/invocation/InvocationControlAssertionError.java
class InvocationControlAssertionError (line 23) | public class InvocationControlAssertionError {
method updateErrorMessageForVerifyNoMoreInteractions (line 32) | public static void updateErrorMessageForVerifyNoMoreInteractions(Asser...
method updateErrorMessageForMethodInvocation (line 69) | public static void updateErrorMessageForMethodInvocation(AssertionErro...
method throwAssertionErrorForNewSubstitutionFailure (line 79) | public static void throwAssertionErrorForNewSubstitutionFailure(Assert...
method changeMessageContent (line 97) | private static String changeMessageContent(String message) {
method removeFailureLocations (line 114) | private static StringBuilder removeFailureLocations(String message) {
method removeAndReplaceText (line 126) | private static void removeAndReplaceText(StringBuilder builder, String...
method isLastFinding (line 154) | private static boolean isLastFinding(int index) {
method removeText (line 158) | private static void removeText(StringBuilder builder, String text) {
FILE: powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/internal/invocation/MockitoNewInvocationControl.java
class MockitoNewInvocationControl (line 29) | public class MockitoNewInvocationControl<T> implements NewInvocationCont...
method MockitoNewInvocationControl (line 32) | public MockitoNewInvocationControl(InvocationSubstitute<T> substitute) {
method invoke (line 39) | @Override
method expectSubstitutionLogic (line 62) | @Override
method getSubstitute (line 67) | public InvocationSubstitute<T> getSubstitute() {
method replay (line 71) | @Override
method verify (line 76) | public synchronized void verify(final VerificationMode verificationMod...
method reset (line 80) | @SuppressWarnings("unchecked")
method verifyNoMoreInteractions (line 87) | public void verifyNoMoreInteractions() {
FILE: powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/internal/mockcreation/AbstractMockCreator.java
class AbstractMockCreator (line 5) | public abstract class AbstractMockCreator implements MockCreator {
method validateType (line 9) | <T> void validateType(Class<T> type, boolean isStatic, boolean isSpy) {
method createTypeValidator (line 13) | private <T> MockTypeValidator<T> createTypeValidator(Class<T> type, bo...
FILE: powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/internal/mockcreation/DefaultMockCreator.java
class DefaultMockCreator (line 33) | public class DefaultMockCreator extends AbstractMockCreator {
method mock (line 37) | @SuppressWarnings("unchecked")
method createMock (line 43) | @SuppressWarnings("unchecked")
method doCreateMock (line 56) | private <T> T doCreateMock(final Class<T> type, final boolean isStatic...
method registerAfterMethodRunner (line 75) | private void registerAfterMethodRunner() {
method putMethodInvocationControlToRepository (line 84) | private <T> void putMethodInvocationControlToRepository(final Class<T>...
method getMockType (line 92) | private <T> Class<T> getMockType(final Class<T> type) {
method isFinalJavaSystemClass (line 102) | private static <T> boolean isFinalJavaSystemClass(Class<T> type) {
method createMethodInvocationControl (line 106) | @SuppressWarnings("unchecked")
method cacheMockClass (line 115) | private void cacheMockClass(final Class<?> mockClass) {
class MockData (line 126) | private static class MockData<T> {
method MockData (line 131) | private MockData(MockitoMethodInvocationControl methodInvocationCont...
method getMethodInvocationControl (line 136) | private MockitoMethodInvocationControl getMethodInvocationControl() {
method getMock (line 140) | private T getMock() {
FILE: powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/internal/mockcreation/MockCreator.java
type MockCreator (line 8) | public interface MockCreator {
method createMock (line 9) | <T> T createMock(Class<T> type, boolean isStatic, boolean isSpy, Objec...
FILE: powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/internal/mockcreation/MockTypeValidator.java
type MockTypeValidator (line 6) | public interface MockTypeValidator<T> {
method validate (line 7) | void validate();
FILE: powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/internal/mockcreation/MockTypeValidatorFactory.java
class MockTypeValidatorFactory (line 11) | public class MockTypeValidatorFactory {
method createValidator (line 13) | public static <T> MockTypeValidator<T> createValidator(Class<T> type, ...
method isLoadedByBootstrap (line 24) | private static boolean isLoadedByBootstrap(Class type) {
class DefaultMockTypeValidator (line 28) | private static class DefaultMockTypeValidator<T> extends AbstractMockT...
method DefaultMockTypeValidator (line 30) | DefaultMockTypeValidator(Class<T> type) {
method validate (line 34) | @Override
method isModifiedByPowerMock (line 41) | private boolean isModifiedByPowerMock() {
class JavaAgentMockTypeValidator (line 46) | private static class JavaAgentMockTypeValidator<T> extends AbstractMoc...
method JavaAgentMockTypeValidator (line 50) | private JavaAgentMockTypeValidator(Class<T> type, JavaAgentClassRegi...
method validate (line 55) | @Override
method isModifiedByAgent (line 62) | private boolean isModifiedByAgent() {
class AbstractMockTypeValidator (line 67) | private abstract static class AbstractMockTypeValidator<T> implements ...
method AbstractMockTypeValidator (line 71) | private AbstractMockTypeValidator(Class<T> type) {
method validate (line 76) | @Override
class NullMockTypeValidator (line 81) | private static class NullMockTypeValidator<T> implements MockTypeValid...
method validate (line 82) | @Override
FILE: powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/internal/mockcreation/RuntimeExceptionProxy.java
class RuntimeExceptionProxy (line 3) | public class RuntimeExceptionProxy extends RuntimeException {
method RuntimeExceptionProxy (line 4) | public RuntimeExceptionProxy(Throwable t) {
FILE: powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/internal/stubbing/MockitoRealMethodInvocation.java
class MockitoRealMethodInvocation (line 22) | public class MockitoRealMethodInvocation {
method MockitoRealMethodInvocation (line 25) | private MockitoRealMethodInvocation() {
method mockitoInvocationStarted (line 28) | public static void mockitoInvocationStarted() {
method mockitoInvocationFinished (line 32) | public static void mockitoInvocationFinished() {
method isHandledByMockito (line 36) | public static boolean isHandledByMockito() {
FILE: powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/internal/stubbing/PowerMockCallRealMethod.java
class PowerMockCallRealMethod (line 25) | public class PowerMockCallRealMethod implements Answer {
method answer (line 26) | @Override
FILE: powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/internal/verification/DefaultConstructorArgumentsVerification.java
class DefaultConstructorArgumentsVerification (line 25) | public class DefaultConstructorArgumentsVerification<T> implements Const...
method DefaultConstructorArgumentsVerification (line 30) | @SuppressWarnings("unchecked")
method withArguments (line 36) | @Override
method invokeSubstitute (line 49) | private void invokeSubstitute(Object... arguments) throws Exception {
method withNoArguments (line 57) | @Override
FILE: powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/internal/verification/DefaultPrivateMethodVerification.java
class DefaultPrivateMethodVerification (line 26) | public class DefaultPrivateMethodVerification implements PrivateMethodVe...
method DefaultPrivateMethodVerification (line 30) | public DefaultPrivateMethodVerification(Object objectToVerify) {
method invoke (line 34) | @Override
method invoke (line 40) | @Override
method invoke (line 45) | @Override
class VerificationArguments (line 50) | private class VerificationArguments implements WithOrWithoutVerifiedAr...
method VerificationArguments (line 53) | public VerificationArguments(Method method) {
method withArguments (line 61) | @Override
method withNoArguments (line 71) | @Override
FILE: powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/internal/verification/VerifyNoMoreInteractions.java
class VerifyNoMoreInteractions (line 28) | public class VerifyNoMoreInteractions {
method verifyNoMoreInteractions (line 30) | public static void verifyNoMoreInteractions(Object... objects) {
method verifyNoMoreInteractions (line 50) | private static void verifyNoMoreInteractions(Class<?>... types) {
FILE: powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/invocation/InvocationFactory.java
class InvocationFactory (line 34) | class InvocationFactory {
method createInvocation (line 36) | Invocation createInvocation(final Object mock, final Method method, fi...
method createRealMethod (line 44) | private RealMethodBehavior createRealMethod(final Object delegator, fi...
FILE: powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/invocation/MockHandlerAdaptor.java
class MockHandlerAdaptor (line 36) | public class MockHandlerAdaptor<T> {
method MockHandlerAdaptor (line 41) | MockHandlerAdaptor(final T mock) {
method getMock (line 47) | public Object getMock() {
method getMockSettings (line 51) | public MockCreationSettings<?> getMockSettings() {
method getMockHandler (line 55) | private MockHandler getMockHandler() {
method performIntercept (line 59) | Object performIntercept(final Object mock, final Method method, Object...
method createInvocation (line 80) | private Invocation createInvocation(final Object mock, final Method me...
FILE: powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/invocation/MockitoMethodInvocationControl.java
class MockitoMethodInvocationControl (line 35) | public class MockitoMethodInvocationControl<T> implements MethodInvocati...
method MockitoMethodInvocationControl (line 63) | public MockitoMethodInvocationControl(Object delegator, T mockInstance...
method isMocked (line 69) | @Override
method invoke (line 74) | @Override
method isCanBeHandledByMockito (line 105) | private boolean isCanBeHandledByMockito(final Method method) {
method hasBeenCaughtByMockitoProxy (line 110) | private boolean hasBeenCaughtByMockitoProxy() {
method replay (line 114) | @Override
method reset (line 119) | @Override
method verifyNoMoreInteractions (line 124) | public void verifyNoMoreInteractions() {
method toSet (line 136) | private Set<Method> toSet(Method... methods) {
method hasDelegator (line 140) | private boolean hasDelegator() {
method getMockHandlerAdaptor (line 144) | public MockHandlerAdaptor<T> getMockHandlerAdaptor() {
FILE: powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/mockmaker/MockMakerLoader.java
class MockMakerLoader (line 25) | class MockMakerLoader {
method load (line 26) | MockMaker load(final MockitoConfiguration mockitoConfiguration) {
method doLoad (line 42) | private MockMaker doLoad(final ClassLoader loader, final String mockMa...
FILE: powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/mockmaker/PowerMockMaker.java
class PowerMockMaker (line 32) | public class PowerMockMaker implements MockMaker {
method PowerMockMaker (line 35) | public PowerMockMaker() {
method createMock (line 39) | @Override
method getHandler (line 44) | @Override
method instanceMockHandler (line 53) | private MockHandler instanceMockHandler(final Object mock) {
method getRealMock (line 57) | private Object getRealMock(final Object mock) {
method staticMockHandler (line 69) | private MockHandler staticMockHandler(final Class mock) {
method resetMock (line 73) | @Override
method isTypeMockable (line 78) | @Override
method getMockMaker (line 83) | MockMaker getMockMaker() {
method createStaticMockSettings (line 87) | @SuppressWarnings("unchecked")
class StaticMockHandler (line 94) | private static class StaticMockHandler implements MockHandler<Class> {
method StaticMockHandler (line 97) | private StaticMockHandler(final MockCreationSettings<Class> mockSett...
method getMockSettings (line 101) | @Override
method getInvocationContainer (line 106) | @Override
method handle (line 111) | @Override
FILE: powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/mockpolicies/Slf4jMockPolicy.java
class Slf4jMockPolicy (line 40) | public class Slf4jMockPolicy implements PowerMockPolicy {
method applyClassLoadingPolicy (line 49) | @Override
method applyInterceptionPolicy (line 57) | @Override
method initializeMockForThread (line 71) | private void initializeMockForThread(LogPolicySupport logPolicySupport) {
method getLoggerClass (line 93) | private Class<?> getLoggerClass(LogPolicySupport logPolicySupport) {
FILE: powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/powermocklistener/AnnotationEnabler.java
class AnnotationEnabler (line 26) | @Deprecated
FILE: powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/verification/ConstructorArgumentsVerification.java
type ConstructorArgumentsVerification (line 19) | public interface ConstructorArgumentsVerification {
method withArguments (line 21) | void withArguments(Object argument, Object... additionalArguments) thr...
method withNoArguments (line 23) | void withNoArguments() throws Exception;
FILE: powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/verification/PrivateMethodVerification.java
type PrivateMethodVerification (line 21) | public interface PrivateMethodVerification {
method invoke (line 31) | @Deprecated
method invoke (line 39) | WithOrWithoutVerifiedArguments invoke(Method method) throws Exception;
method invoke (line 47) | void invoke(String methodToVerify, Object... arguments) throws Exception;
FILE: powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/verification/WithOrWithoutVerifiedArguments.java
type WithOrWithoutVerifiedArguments (line 19) | public interface WithOrWithoutVerifiedArguments extends WithVerifiedArgu...
FILE: powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/verification/WithVerifiedArguments.java
type WithVerifiedArguments (line 20) | public interface WithVerifiedArguments {
method withArguments (line 21) | void withArguments(Object firstArgument, Object... additionalArguments...
FILE: powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/verification/WithoutVerifiedArguments.java
type WithoutVerifiedArguments (line 19) | public interface WithoutVerifiedArguments {
method withNoArguments (line 20) | void withNoArguments() throws Exception;
FILE: powermock-api/powermock-api-mockito2/src/test/java/org/powermock/api/mockito/PowerMockMockito2ApiTestSuite.java
class PowerMockMockito2ApiTestSuite (line 14) | @RunWith(Suite.class)
FILE: powermock-api/powermock-api-mockito2/src/test/java/org/powermock/api/mockito/internal/expectation/DefaultMethodExpectationSetupTestCase.java
class DefaultMethodExpectationSetupTestCase (line 26) | public class DefaultMethodExpectationSetupTestCase {
method testWithArguments_Multiple (line 30) | @Test(expected = MissingMethodInvocationException.class)
method testWithArguments_Single (line 39) | @Test(expected = MissingMethodInvocationException.class)
method testJoin (line 46) | @Test
class CUT (line 56) | public static class CUT {
method multiple (line 58) | public void multiple(Object a1, Object a2, Object a3) {
method single (line 62) | public void single(Object a1) {
FILE: powermock-api/powermock-api-mockito2/src/test/java/org/powermock/api/mockito/internal/mockcreation/MockCreatorTestCase.java
class MockCreatorTestCase (line 14) | public class MockCreatorTestCase {
method should_return_mock_name_when_settings_have_name (line 16) | @Test
method should_return_class_name_when_settings_have_no_name (line 30) | @Test
method createMock (line 43) | private List<?> createMock(final MockSettings settings) throws NoSuchM...
method getMockName (line 47) | private MockName getMockName(final List<?> result) {
FILE: powermock-api/powermock-api-mockito2/src/test/java/org/powermock/api/mockito/mockmaker/PowerMockMakerTestCase.java
class PowerMockMakerTestCase (line 43) | public class PowerMockMakerTestCase {
method should_delegate_calls_to_mock_maker_from_configuration (line 45) | @Test
class DelegateMockMakerStub (line 80) | public static class DelegateMockMakerStub implements MockMaker {
method DelegateMockMakerStub (line 84) | public DelegateMockMakerStub() {
method createMock (line 88) | @Override
method getHandler (line 93) | @Override
method resetMock (line 98) | @Override
method isTypeMockable (line 103) | @Override
method getMock (line 118) | private Object getMock() {
class TargetTest (line 123) | public static class TargetTest {
method setUp (line 127) | @Before
method tearDown (line 134) | @After
method runTest (line 140) | @Test
FILE: powermock-api/powermock-api-support/src/main/java/org/powermock/api/support/ClassLoaderUtil.java
class ClassLoaderUtil (line 18) | public class ClassLoaderUtil {
method loadClass (line 24) | @SuppressWarnings("unchecked")
method loadClass (line 32) | @SuppressWarnings("unchecked")
method hasClass (line 40) | @SuppressWarnings("unchecked")
method loadClass (line 56) | public static <T> Class<T> loadClass(String className, ClassLoader cla...
FILE: powermock-api/powermock-api-support/src/main/java/org/powermock/api/support/MethodProxy.java
class MethodProxy (line 26) | public class MethodProxy {
method proxy (line 31) | public static void proxy(Method method, InvocationHandler invocationHa...
method proxy (line 40) | public static void proxy(Class<?> declaringClass, String methodName, I...
method assertInvocationHandlerNotNull (line 60) | private static void assertInvocationHandlerNotNull(InvocationHandler i...
FILE: powermock-api/powermock-api-support/src/main/java/org/powermock/api/support/SafeExceptionRethrower.java
class SafeExceptionRethrower (line 18) | public class SafeExceptionRethrower {
method safeRethrow (line 20) | public static void safeRethrow(Throwable t) {
method safeRethrow0 (line 24) | @SuppressWarnings("unchecked")
FILE: powermock-api/powermock-api-support/src/main/java/org/powermock/api/support/Stubber.java
class Stubber (line 25) | public class Stubber {
method stubMethod (line 30) | public static void stubMethod(Method method, Object returnObject) {
method stubMethod (line 38) | public static void stubMethod(Class<?> declaringClass, String methodNa...
FILE: powermock-api/powermock-api-support/src/main/java/org/powermock/api/support/SuppressCode.java
class SuppressCode (line 26) | public class SuppressCode {
method suppressConstructor (line 30) | public static synchronized void suppressConstructor(Constructor<?>... ...
method suppressSpecificConstructor (line 52) | public static synchronized void suppressSpecificConstructor(Class<?> c...
method suppressConstructor (line 62) | public static synchronized void suppressConstructor(Class<?>... classe...
method suppressConstructor (line 80) | public static synchronized void suppressConstructor(Class<?> clazz, bo...
method suppressField (line 99) | public static synchronized void suppressField(Field... fields) {
method suppressField (line 108) | public static synchronized void suppressField(Class<?>[] classes) {
method suppressField (line 127) | public static synchronized void suppressField(Class<?> clazz, String.....
method suppressMethod (line 142) | public static synchronized void suppressMethod(Method... methods) {
method suppressMethod (line 156) | public static synchronized void suppressMethod(Class<?> cls, Class<?>....
method suppressMethod (line 169) | public static synchronized void suppressMethod(Class<?>[] classes) {
method suppressMethod (line 185) | public static synchronized void suppressMethod(Class<?> clazz, String ...
method suppressMethod (line 204) | public static synchronized void suppressMethod(Class<?> clazz, String[...
method suppressMethod (line 218) | public static synchronized void suppressMethod(Class<?> clazz, boolean...
method suppressMethod (line 235) | public static synchronized void suppressMethod(Class<?> clazz, String ...
FILE: powermock-api/powermock-api-support/src/main/java/org/powermock/api/support/membermodification/MemberMatcher.java
class MemberMatcher (line 40) | public class MemberMatcher {
method methodsDeclaredIn (line 52) | public static Method[] methodsDeclaredIn(final Class<?> cls, final Cla...
method method (line 84) | public static Method method(Class<?> declaringClass, String methodName...
method method (line 111) | public static Method method(Class<?> declaringClass, Class<?>... param...
method methods (line 130) | public static Method[] methods(Class<?> clazz, String methodName, Stri...
method methods (line 143) | public static Method[] methods(Method method, Method... additionalMeth...
method methods (line 160) | public static Method[] methods(Class<?> clazz, String[] methodNames) {
method field (line 180) | public static Field field(Class<?> declaringClass, String fieldName) {
method fields (line 197) | public static Field[] fields(Class<?> clazz, String firstFieldName, St...
method fields (line 209) | public static Field[] fields(Class<?> clazz) {
method fields (line 222) | public static Field[] fields(Field field, Field... additionalFields) {
method fields (line 237) | public static Field[] fields(Class<?> clazz, String[] fieldNames) {
method constructor (line 254) | @SuppressWarnings("unchecked")
method constructor (line 272) | @SuppressWarnings("unchecked")
method defaultConstructorIn (line 287) | @SuppressWarnings("unchecked")
method constructorsDeclaredIn (line 301) | public static Constructor<?>[] constructorsDeclaredIn(final Class<?> c...
method constructors (line 322) | public static Constructor<?>[] constructors(Constructor<?> constructor...
method everythingDeclaredIn (line 335) | public static AccessibleObject[] everythingDeclaredIn(final Class<?> c...
method merge (line 346) | private static String[] merge(String first, String... additional) {
method merge (line 350) | private static Method[] merge(Method first, Method... additional) {
method merge (line 354) | private static Field[] merge(Field first, Field... additional) {
method merge (line 358) | private static Constructor<?>[] merge(Constructor<?> first, Constructo...
FILE: powermock-api/powermock-api-support/src/main/java/org/powermock/api/support/membermodification/MemberModifier.java
class MemberModifier (line 35) | public class MemberModifier extends MemberMatcher {
method suppress (line 41) | public static void suppress(Method method) {
method suppress (line 49) | public static void suppress(Method[] methods) {
method suppress (line 56) | public static void suppress(Constructor<?> constructor) {
method suppress (line 63) | public static void suppress(Constructor<?>[] constructors) {
method suppress (line 70) | public static void suppress(Field field) {
method suppress (line 77) | public static void suppress(Field[] fields) {
method suppress (line 84) | public static void suppress(AccessibleObject[] accessibleObjects) {
method stub (line 104) | public static <T> MethodStubStrategy<T> stub(Method method) {
method replace (line 111) | public static MethodReplaceStrategy replace(Method method) {
FILE: powermock-api/powermock-api-support/src/main/java/org/powermock/api/support/membermodification/strategy/ClassReplaceStrategy.java
type ClassReplaceStrategy (line 21) | public interface ClassReplaceStrategy {
method with (line 31) | void with(Class<?> cls);
FILE: powermock-api/powermock-api-support/src/main/java/org/powermock/api/support/membermodification/strategy/MethodReplaceStrategy.java
type MethodReplaceStrategy (line 24) | public interface MethodReplaceStrategy {
method with (line 35) | void with(Method method);
method with (line 43) | void with(InvocationHandler invocationHandler);
FILE: powermock-api/powermock-api-support/src/main/java/org/powermock/api/support/membermodification/strategy/MethodStubStrategy.java
type MethodStubStrategy (line 21) | public interface MethodStubStrategy<T> {
method andReturn (line 30) | @Deprecated
method toReturn (line 39) | void toReturn(T returnValue);
method toThrow (line 47) | void toThrow(Throwable throwable);
FILE: powermock-api/powermock-api-support/src/main/java/org/powermock/api/support/membermodification/strategy/impl/MethodReplaceStrategyImpl.java
class MethodReplaceStrategyImpl (line 26) | public class MethodReplaceStrategyImpl implements MethodReplaceStrategy {
method MethodReplaceStrategyImpl (line 30) | public MethodReplaceStrategyImpl(Method method) {
method with (line 37) | @Override
method with (line 55) | @Override
class MethodInvocationHandler (line 63) | private final class MethodInvocationHandler implements InvocationHandl...
method MethodInvocationHandler (line 66) | public MethodInvocationHandler(Method methodDelegator) {
method invoke (line 70) | @Override
FILE: powermock-api/powermock-api-support/src/main/java/org/powermock/api/support/membermodification/strategy/impl/MethodStubStrategyImpl.java
class MethodStubStrategyImpl (line 25) | public class MethodStubStrategyImpl<T> implements MethodStubStrategy<T> {
method MethodStubStrategyImpl (line 29) | public MethodStubStrategyImpl(Method method) {
method andReturn (line 36) | @Deprecated
method toThrow (line 42) | @Override
method toReturn (line 54) | @Override
FILE: powermock-classloading/powermock-classloading-base/src/main/java/org/powermock/classloading/AbstractClassloaderExecutor.java
class AbstractClassloaderExecutor (line 29) | public abstract class AbstractClassloaderExecutor implements Classloader...
method execute (line 30) | @Override
method execute (line 37) | @Override
method assertArgumentNotNull (line 43) | private void assertArgumentNotNull(Object object, String argumentName) {
method execute (line 49) | protected abstract Object execute(Object instance, Method method, Obje...
method executeWithClassLoader (line 51) | Object executeWithClassLoader(Object instance, Method method, ClassLoa...
method invokeWithClassLoader (line 59) | private Object invokeWithClassLoader(final ClassLoader classloader, fi...
method cloneResult (line 71) | private Object cloneResult(Object result) {return result == null ? nul...
method getResult (line 73) | private Object getResult(Method method, Object objectLoadedWithClasslo...
method cloneArguments (line 83) | private Object[] cloneArguments(Object[] arguments, DeepClonerSPI deep...
method createDeepCloner (line 92) | private DeepClonerSPI createDeepCloner(ClassLoader classLoader) {
method doCreateDeepCloner (line 103) | private DeepClonerSPI doCreateDeepCloner(final ClassLoader classLoader...
FILE: powermock-classloading/powermock-classloading-base/src/main/java/org/powermock/classloading/ClassloaderExecutor.java
type ClassloaderExecutor (line 57) | public interface ClassloaderExecutor {
method execute (line 59) | <T> T execute(Callable<T> callable);
method execute (line 61) | void execute(Runnable runnable);
FILE: powermock-classloading/powermock-classloading-base/src/main/java/org/powermock/classloading/SingleClassloaderExecutor.java
class SingleClassloaderExecutor (line 22) | public class SingleClassloaderExecutor extends AbstractClassloaderExecut...
method SingleClassloaderExecutor (line 27) | public SingleClassloaderExecutor(ClassLoader classloader) {
method execute (line 31) | @Override
FILE: powermock-classloading/powermock-classloading-base/src/main/java/org/powermock/classloading/spi/DeepClonerSPI.java
type DeepClonerSPI (line 6) | public interface DeepClonerSPI {
method clone (line 7) | <T> T clone(T objectToClone);
FILE: powermock-classloading/powermock-classloading-objenesis/src/main/java/org/powermock/classloading/DeepCloner.java
class DeepCloner (line 45) | public class DeepCloner implements DeepClonerSPI {
method DeepCloner (line 55) | public DeepCloner(ClassLoader classLoader) {
method DeepCloner (line 63) | public DeepCloner() {
method getDoNotClone (line 67) | private Class<DoNotClone> getDoNotClone(ClassLoader targetCL) {
method clone (line 77) | @Override
method clone (line 91) | public <T> T clone(T objectToClone, boolean includeStandardJavaType) {
method getType (line 97) | @SuppressWarnings("unchecked")
method isClass (line 105) | private static boolean isClass(Object object) {
method assertObjectNotNull (line 112) | private static void assertObjectNotNull(Object object) {
method performClone (line 118) | @SuppressWarnings("unchecked")
method cloneJavaReflectMethod (line 144) | private Object cloneJavaReflectMethod(Object source) {
method isJavaReflectMethod (line 161) | private boolean isJavaReflectMethod(Class<?> cls) {
method isSunClass (line 165) | private boolean isSunClass(Class<?> cls) {
method isJavaReflectClass (line 169) | private boolean isJavaReflectClass(Class<?> cls) {
method isSerializableCandidate (line 173) | private <T> boolean isSerializableCandidate(Class<T> targetClass, Obje...
method isImpliticlySerializable (line 180) | private static boolean isImpliticlySerializable(Class<?> cls) {
method isSerializable (line 184) | private static boolean isSerializable(Class<?> cls) {
method serializationClone (line 191) | private Object serializationClone(Object source) {
method close (line 210) | private void close(Closeable closeable) {
method cloneEnum (line 219) | @SuppressWarnings({ "unchecked", "rawtypes" })
method cloneFields (line 227) | @SuppressWarnings("unchecked")
method isStandardJavaType (line 280) | private static <T> boolean isStandardJavaType(Class<T> targetClass) {
method isStaticFinalModifier (line 284) | private static boolean isStaticFinalModifier(final Field field) {
method isIterable (line 290) | private static boolean isIterable(final Object object) {
method isIterable (line 294) | private static boolean isIterable(final Class<?> cls) {
method getEnumValue (line 298) | @SuppressWarnings({ "unchecked", "rawtypes" })
method instantiateArray (line 304) | private Object instantiateArray(ClassLoader targetCL, Class<?> arrayCl...
class UnsafeFieldWriter (line 332) | private static class UnsafeFieldWriter {
method write (line 350) | public static void write(Field field, Object object, Object value) {
FILE: powermock-classloading/powermock-classloading-objenesis/src/test/java/powermock/classloading/ObjenesisClassloaderExecutorTest.java
class ObjenesisClassloaderExecutorTest (line 46) | @Ignore("Test are failed on JDK more that 1.6. On Travis we can run only...
method loadsObjectGraphInSpecifiedClassloaderAndReturnsResultInOriginalClassloader (line 49) | @Test
method loadsObjectGraphThatIncludesPrimitiveValuesInSpecifiedClassloaderAndReturnsResultInOriginalClassloader (line 72) | @Test
method loadsObjectGraphThatIncludesEnumsInSpecifiedClassloaderAndReturnsResultInOriginalClassloader (line 95) | @Test
method loadsObjectGraphThatIncludesPrimitiveArraysInSpecifiedClassloaderAndReturnsResultInOriginalClassloader (line 118) | @Test
method usesReferenceCloningWhenTwoFieldsPointToSameInstance (line 140) | @Test
method worksWithObjectHierarchy (line 161) | @Test
method worksWithReflection (line 179) | @Test
method createClassloader (line 194) | private MockClassLoader createClassloader() {
FILE: powermock-classloading/powermock-classloading-objenesis/src/test/java/powermock/classloading/ObjenesisDeepClonerTest.java
class ObjenesisDeepClonerTest (line 33) | @Ignore("Test are failed on JDK more that 1.6. On Travis we can run only...
method onlyRunTestsOnNonJava8Environment (line 39) | @Before
method clonesJavaInstances (line 46) | @Test
method clonesUnmodifiableLists (line 54) | @Test
method clonesArraysWithNullValues (line 62) | @Test
class UnmodifiableListExample (line 72) | class UnmodifiableListExample {
method hashCode (line 75) | @Override
method equals (line 83) | @Override
class NotSerializable (line 96) | class NotSerializable {
method hashCode (line 99) | @Override
method equals (line 107) | @Override
FILE: powermock-classloading/powermock-classloading-xstream/src/main/java/org/powermock/classloading/DeepCloner.java
class DeepCloner (line 27) | public class DeepCloner implements DeepClonerSPI {
method DeepCloner (line 34) | public DeepCloner(ClassLoader classLoader) {
method disableSecurity (line 41) | private void disableSecurity() {
method DeepCloner (line 49) | public DeepCloner() {
method clone (line 61) | @SuppressWarnings("unchecked")
FILE: powermock-classloading/powermock-classloading-xstream/src/test/java/powermock/classloading/XStreamClassloaderExecutorTest.java
class XStreamClassloaderExecutorTest (line 54) | public class XStreamClassloaderExecutorTest {
method loadsObjectGraphInSpecifiedClassloaderAndReturnsResultInOriginalClassloader (line 56) | @Test
method loadsObjectGraphThatIncludesPrimitiveValuesInSpecifiedClassloaderAndReturnsResultInOriginalClassloader (line 76) | @Test
method loadsObjectGraphThatIncludesEnumsInSpecifiedClassloaderAndReturnsResultInOriginalClassloader (line 96) | @Test
method clonesStaticFinalObjectFields (line 115) | @Test
method clonesStaticFinalPrimitiveFields (line 134) | @Test
method clonesStaticFinalNumberFields (line 153) | @Test
method loadsObjectGraphThatIncludesPrimitiveArraysInSpecifiedClassloaderAndReturnsResultInOriginalClassloader (line 172) | @Test
method loadsObjectGraphThatIncludesCollectionInSpecifiedClassloaderAndReturnsResultInOriginalClassloader (line 191) | @Test
method usesReferenceCloningWhenTwoFieldsPointToSameInstance (line 219) | @Test
method worksWithObjectHierarchy (line 237) | @Test
method worksWithObjectHierarchyAndOverloadedFields (line 252) | @Test
method worksWithReflection (line 274) | @Test
method createClassloader (line 289) | private MockClassLoader createClassloader() {
FILE: powermock-classloading/powermock-classloading-xstream/src/test/java/powermock/classloading/XStreamDeepClonerTest.java
class XStreamDeepClonerTest (line 30) | public class XStreamDeepClonerTest {
method clonesJavaInstances (line 32) | @Test
method clonesUnmodifiableLists (line 40) | @Test
method clonesArraysWithNullValues (line 48) | @Test
class UnmodifiableListExample (line 58) | class UnmodifiableListExample {
method hashCode (line 61) | @Override
method equals (line 69) | @Override
class NotSerializable (line 87) | class NotSerializable {
method hashCode (line 90) | @Override
method equals (line 98) | @Override
FILE: powermock-core/src/main/java/org/powermock/PowerMockInternalException.java
class PowerMockInternalException (line 21) | public class PowerMockInternalException extends RuntimeException{
method PowerMockInternalException (line 25) | public PowerMockInternalException(final Throwable cause) {
method PowerMockInternalException (line 29) | public PowerMockInternalException(final String message) {
method PowerMockInternalException (line 33) | public PowerMockInternalException(final String message, final Throwabl...
FILE: powermock-core/src/main/java/org/powermock/configuration/Configuration.java
type Configuration (line 33) | public interface Configuration<T extends Configuration> {
method merge (line 43) | T merge(T configuration);
FILE: powermock-core/src/main/java/org/powermock/configuration/ConfigurationFactory.java
type ConfigurationFactory (line 21) | public interface ConfigurationFactory {
method create (line 22) | <T extends Configuration<T>> T create(Class<T> configurationType);
FILE: powermock-core/src/main/java/org/powermock/configuration/ConfigurationType.java
type ConfigurationType (line 21) | public enum ConfigurationType {
method ConfigurationType (line 28) | ConfigurationType(final String prefix,
method getPrefix (line 34) | public String getPrefix() {
method forClass (line 38) | public static <T extends Configuration> ConfigurationType forClass(fin...
FILE: powermock-core/src/main/java/org/powermock/configuration/GlobalConfiguration.java
class GlobalConfiguration (line 32) | public final class GlobalConfiguration {
method mockitoConfiguration (line 39) | public static MockitoConfiguration mockitoConfiguration() {
method powerMockConfiguration (line 43) | public static PowerMockConfiguration powerMockConfiguration() {
method clear (line 47) | public static void clear() {
method setConfigurationFactory (line 53) | public static void setConfigurationFactory(final ConfigurationFactory ...
method GlobalConfiguration (line 57) | private GlobalConfiguration() {
method getPowerMockConfiguration (line 66) | private PowerMockConfiguration getPowerMockConfiguration() {
method getMockitoConfiguration (line 70) | private MockitoConfiguration getMockitoConfiguration() {
method createConfig (line 74) | private <T extends Configuration<T>> T createConfig(Class<T> configura...
FILE: powermock-core/src/main/java/org/powermock/configuration/MockitoConfiguration.java
class MockitoConfiguration (line 21) | public class MockitoConfiguration implements Configuration<MockitoConfig...
method MockitoConfiguration (line 25) | public MockitoConfiguration() {
method MockitoConfiguration (line 29) | private MockitoConfiguration(final String mockMakerClass) {
method getMockMakerClass (line 33) | public String getMockMakerClass() {
method setMockMakerClass (line 37) | public void setMockMakerClass(final String mockMakerClass) {
method merge (line 41) | @Override
FILE: powermock-core/src/main/java/org/powermock/configuration/PowerMockConfiguration.java
class PowerMockConfiguration (line 31) | public class PowerMockConfiguration implements Configuration<PowerMockCo...
method getGlobalIgnore (line 35) | public String[] getGlobalIgnore() {
method setGlobalIgnore (line 39) | public void setGlobalIgnore(final String[] globalIgnore) {
method getByteCodeFramework (line 43) | public ByteCodeFramework getByteCodeFramework() {
method setByteCodeFramework (line 47) | public void setByteCodeFramework(final ByteCodeFramework byteCodeFrame...
method merge (line 51) | @Override
FILE: powermock-core/src/main/java/org/powermock/configuration/support/ConfigurationBuilder.java
class ConfigurationBuilder (line 28) | class ConfigurationBuilder<T extends Configuration<?>> {
method createConfigurationFor (line 30) | static <C extends Configuration<?>> ConfigurationBuilder<C> createConf...
method ConfigurationBuilder (line 37) | private ConfigurationBuilder(final Class<T> configurationType) {
method withValueAlias (line 42) | ConfigurationBuilder<T> withValueAlias(final String alias, final Strin...
method fromFile (line 47) | T fromFile(final String configurationLocation) {
method fromProperties (line 52) | T fromProperties(final Properties properties) {
class ConfigurationCreator (line 57) | private static class ConfigurationCreator {
method ConfigurationCreator (line 61) | private ConfigurationCreator(final Map<String, String> alias) {
method create (line 65) | public <T extends Configuration> T create(Class<T> configurationClas...
method mapConfiguration (line 77) | private <T extends Configuration> void mapConfiguration(final Class<...
FILE: powermock-core/src/main/java/org/powermock/configuration/support/ConfigurationFactoryImpl.java
class ConfigurationFactoryImpl (line 29) | public class ConfigurationFactoryImpl implements ConfigurationFactory {
method ConfigurationFactoryImpl (line 37) | public ConfigurationFactoryImpl() {
method ConfigurationFactoryImpl (line 41) | ConfigurationFactoryImpl(final String userConfigurationLocation, final...
method ConfigurationFactoryImpl (line 46) | ConfigurationFactoryImpl(final String defaultConfigurationLocation) {
method create (line 50) | @Override
method readEnvironmentConfiguration (line 58) | private <T extends Configuration<T>> T readEnvironmentConfiguration(fi...
method readDefault (line 66) | private <T extends Configuration> T readDefault(final Class<T> config...
method readUserConfiguration (line 75) | private <T extends Configuration> T readUserConfiguration(final Class...
method getDefaultConfigurationLocation (line 80) | private String getDefaultConfigurationLocation() {
method getUserConfigurationLocation (line 84) | private String getUserConfigurationLocation() {
FILE: powermock-core/src/main/java/org/powermock/configuration/support/ConfigurationMapper.java
class ConfigurationMapper (line 30) | class ConfigurationMapper<T extends Configuration> {
method ConfigurationMapper (line 35) | ConfigurationMapper(final Class<T> configurationClass, final T configu...
method map (line 41) | public void map(final Properties properties) {
method mapProperty (line 58) | private void mapProperty(final PropertyDescriptor propertyDescriptor, ...
class ConfigurationKey (line 67) | private static class ConfigurationKey {
method ConfigurationKey (line 71) | private ConfigurationKey(final ConfigurationType configurationType, ...
method toString (line 76) | @Override
type PropertyWriter (line 98) | @SuppressWarnings("unchecked")
method writeProperty (line 101) | @Override
method writeProperty (line 114) | @Override
method writeProperty (line 126) | @Override
method forProperty (line 148) | private static PropertyWriter forProperty(final PropertyDescriptor p...
method writeProperty (line 158) | abstract void writeProperty(final PropertyDescriptor propertyDescrip...
FILE: powermock-core/src/main/java/org/powermock/configuration/support/PropertiesFinder.java
class PropertiesFinder (line 12) | class PropertiesFinder {
method PropertiesFinder (line 16) | PropertiesFinder(final ClassLoader classLoader) {
method find (line 20) | List<ConfigurationSource> find(final String configurationFile) throws ...
class ConfigurationSource (line 34) | static class ConfigurationSource {
method ConfigurationSource (line 40) | ConfigurationSource(final String location, final InputStream inputSt...
method inputStream (line 45) | InputStream inputStream() {
method getLocation (line 49) | String getLocation() {
method toString (line 53) | @Override
method equals (line 58) | @Override
method hashCode (line 68) | @Override
FILE: powermock-core/src/main/java/org/powermock/configuration/support/PropertiesLoader.java
class PropertiesLoader (line 28) | class PropertiesLoader {
method load (line 29) | Properties load(final String propertiesFile) {
method loadProperties (line 43) | private Properties loadProperties(final List<ConfigurationSource> conf...
method printWarning (line 54) | private void printWarning(final List<ConfigurationSource> configuratio...
method loadPropertiesFromFile (line 65) | private Properties loadPropertiesFromFile(final ConfigurationSource co...
FILE: powermock-core/src/main/java/org/powermock/configuration/support/ValueAliases.java
class ValueAliases (line 23) | class ValueAliases {
method ValueAliases (line 26) | ValueAliases(final Map<String, String> alias) {this.alias = alias;}
method findValue (line 28) | String findValue(final String value) {
FILE: powermock-core/src/main/java/org/powermock/core/ClassLocator.java
class ClassLocator (line 18) | public class ClassLocator extends SecurityManager {
method getCallerClass (line 19) | public static Class getCallerClass() {
FILE: powermock-core/src/main/java/org/powermock/core/ClassReplicaCreator.java
class ClassReplicaCreator (line 40) | public class ClassReplicaCreator {
method createClassReplica (line 46) | public <T> Class<T> createClassReplica(Class<T> clazz) {
method createInstanceReplica (line 79) | @SuppressWarnings("unchecked")
method addDelegatorField (line 120) | private <T> void addDelegatorField(T delegator, final CtClass replicaC...
method generateReplicaClassName (line 126) | private <T> String generateReplicaClassName(final Class<T> clazz) {
method copyFields (line 130) | private void copyFields(CtClass originalClassAsCtClass, final CtClass ...
method getReplicaMethodDelegationCode (line 147) | private String getReplicaMethodDelegationCode(Class<?> clazz, CtMethod...
method getParameterTypes (line 181) | private String[] getParameterTypes(CtMethod ctMethod) throws NotFoundE...
method getParametersAsString (line 190) | private static String getParametersAsString(String[] types) {
FILE: powermock-core/src/main/java/org/powermock/core/ConcreteClassGenerator.java
class ConcreteClassGenerator (line 33) | public class ConcreteClassGenerator {
method createConcreteSubClass (line 38) | public Class<?> createConcreteSubClass(Class<?> clazz) {
method hasInheritableConstructor (line 73) | private boolean hasInheritableConstructor(CtClass cls) throws NotFound...
method getReturnCode (line 88) | private String getReturnCode(CtClass returnType) {
method generateClassName (line 95) | private <T> String generateClassName(final Class<T> clazz) {
FILE: powermock-core/src/main/java/org/powermock/core/DefaultFieldValueGenerator.java
class DefaultFieldValueGenerator (line 42) | public class DefaultFieldValueGenerator {
method fillWithDefaultValues (line 44) | public static <T> T fillWithDefaultValues(T object) {
method instantiateFieldType (line 67) | private static Object instantiateFieldType(Field field) {
method isClass (line 83) | private static boolean isClass(Class<?> fieldType) {
method substituteKnownProblemTypes (line 94) | private static Class<?> substituteKnownProblemTypes(Class<?> fieldType) {
FILE: powermock-core/src/main/java/org/powermock/core/IdentityHashSet.java
class IdentityHashSet (line 22) | public class IdentityHashSet<E> extends AbstractSet<E> {
method IdentityHashSet (line 26) | public IdentityHashSet() {
method size (line 30) | @Override
method contains (line 35) | @Override
method add (line 40) | @Override
method iterator (line 45) | @Override
method remove (line 50) | @Override
method clear (line 55) | @Override
FILE: powermock-core/src/main/java/org/powermock/core/IndicateReloadClass.java
class IndicateReloadClass (line 18) | public class IndicateReloadClass {
FILE: powermock-core/src/main/java/org/powermock/core/InvocationException.java
class InvocationException (line 21) | public class InvocationException extends RuntimeException {
method InvocationException (line 22) | public InvocationException(final Throwable cause) {
FILE: powermock-core/src/main/java/org/powermock/core/ListMap.java
class ListMap (line 26) | public class ListMap<K, V> implements Map<K, V> {
class SimpleEntry (line 30) | private static class SimpleEntry<K, V> implements Entry<K, V> {
method SimpleEntry (line 35) | public SimpleEntry(K key, V value) {
method getKey (line 40) | @Override
method getValue (line 45) | @Override
method setValue (line 50) | @Override
method remove (line 59) | @Override
method clear (line 71) | @Override
method get (line 76) | @Override
method put (line 86) | @Override
method containsKey (line 98) | @Override
method containsValue (line 103) | @Override
method entrySet (line 113) | @Override
method isEmpty (line 118) | @Override
method keySet (line 123) | @Override
method putAll (line 132) | @Override
method size (line 141) | @Override
method values (line 146) | @Override
FILE: powermock-core/src/main/java/org/powermock/core/MockGateway.java
class MockGateway (line 32) | public class MockGateway {
class NoMockito (line 38) | private static final class NoMockito {
method NoMockito (line 40) | private NoMockito() {}
method newInstanceCall (line 59) | @SuppressWarnings("UnusedDeclaration")
method fieldCall (line 92) | @SuppressWarnings("UnusedDeclaration")
method staticConstructorCall (line 101) | public static Object staticConstructorCall(String className) {
method constructorCall (line 108) | @SuppressWarnings("UnusedDeclaration")
method suppressConstructorCall (line 117) | public static boolean suppressConstructorCall(Class<?> type, Object[] ...
method methodCall (line 135) | @SuppressWarnings("UnusedDeclaration")
method methodCall (line 142) | @SuppressWarnings("UnusedDeclaration")
method doMethodCall (line 149) | private static Object doMethodCall(Object object, String methodName, O...
method doMethodCall (line 171) | private static Object doMethodCall(Object object, Object[] args,
method tryHandleEqualsMethod (line 213) | private static Object tryHandleEqualsMethod(MockInvocation mockInvocat...
method isEqualsMethod (line 237) | private static boolean isEqualsMethod(MockInvocation mockInvocation) {
method isStaticMethod (line 241) | private static boolean isStaticMethod(MockInvocation mockInvocation) {
method calledFromMockito (line 245) | private static boolean calledFromMockito() {
method shouldMockMethod (line 258) | private static boolean shouldMockMethod(String methodName, Class<?>[] ...
method isJavaStandardMethod (line 266) | private static boolean isJavaStandardMethod(String methodName, Class<?...
method isGetClassMethod (line 271) | private static boolean isGetClassMethod(String methodName, Class<?>[] ...
method isAnnotationMethod (line 275) | private static boolean isAnnotationMethod(String methodName, Class<?>[...
method shouldMockThisCall (line 279) | private static boolean shouldMockThisCall() {
method copyArgumentsForInnerOrLocalOrAnonymousClass (line 293) | private static Object[] copyArgumentsForInnerOrLocalOrAnonymousClass(O...
FILE: powermock-core/src/main/java/org/powermock/core/MockInvocation.java
class MockInvocation (line 10) | class MockInvocation {
method MockInvocation (line 18) | MockInvocation(Object object, String methodName, Class<?>... sig) {
method init (line 25) | private void init() {
method getObjectType (line 38) | Class<?> getObjectType() {
method getMethodInvocationControl (line 42) | MethodInvocationControl getMethodInvocationControl() {
method getMethod (line 46) | Method getMethod() {
method findMethodToInvoke (line 50) | private static Method findMethodToInvoke(String methodName, Class<?>[]...
FILE: powermock-core/src/main/java/org/powermock/core/MockRepository.java
class MockRepository (line 36) | public class MockRepository {
method clear (line 112) | public synchronized static void clear() {
method remove (line 133) | public static void remove(Object mock) {
method getStaticMethodInvocationControl (line 146) | public static synchronized MethodInvocationControl getStaticMethodInvo...
method putStaticMethodInvocationControl (line 150) | public static synchronized MethodInvocationControl putStaticMethodInvo...
method removeClassMethodInvocationControl (line 154) | public static synchronized MethodInvocationControl removeClassMethodIn...
method getInstanceMethodInvocationControl (line 158) | public static synchronized MethodInvocationControl getInstanceMethodIn...
method putInstanceMethodInvocationControl (line 162) | public static synchronized MethodInvocationControl putInstanceMethodIn...
method removeInstanceMethodInvocationControl (line 166) | public static synchronized MethodInvocationControl removeInstanceMetho...
method getNewInstanceControl (line 170) | public static synchronized NewInvocationControl<?> getNewInstanceContr...
method putNewInstanceControl (line 174) | public static synchronized NewInvocationControl<?> putNewInstanceContr...
method addSuppressStaticInitializer (line 186) | public static synchronized void addSuppressStaticInitializer(String cl...
method removeSuppressStaticInitializer (line 198) | public static synchronized void removeSuppressStaticInitializer(String...
method shouldSuppressStaticInitializerFor (line 211) | public static synchronized boolean shouldSuppressStaticInitializerFor(...
method getObjectsToAutomaticallyReplayAndVerify (line 218) | public static synchronized Set<Object> getObjectsToAutomaticallyReplay...
method addObjectsToAutomaticallyReplayAndVerify (line 225) | public static synchronized void addObjectsToAutomaticallyReplayAndVeri...
method putAdditionalState (line 240) | public static synchronized Object putAdditionalState(String key, Objec...
method removeAdditionalState (line 244) | public static synchronized Object removeAdditionalState(String key) {
method removeMethodProxy (line 248) | public static synchronized InvocationHandler removeMethodProxy(Method ...
method getAdditionalState (line 255) | @SuppressWarnings("unchecked")
method addMethodToSuppress (line 266) | public static synchronized void addMethodToSuppress(Method method) {
method addFieldToSuppress (line 276) | public static synchronized void addFieldToSuppress(Field field) {
method addFieldTypeToSuppress (line 287) | public static synchronized void addFieldTypeToSuppress(String fieldTyp...
method addConstructorToSuppress (line 297) | public static synchronized void addConstructorToSuppress(Constructor<?...
method hasMethodProxy (line 304) | public static synchronized boolean hasMethodProxy(Method method) {
method shouldSuppressMethod (line 311) | public static synchronized boolean shouldSuppressMethod(Method method,
method shouldSuppressField (line 330) | public static synchronized boolean shouldSuppressField(Field field) {
method shouldSuppressConstructor (line 338) | public static synchronized boolean shouldSuppressConstructor(Construct...
method shouldStubMethod (line 346) | public static synchronized boolean shouldStubMethod(Method method) {
method getMethodToStub (line 354) | public static synchronized Object getMethodToStub(Method method) {
method putMethodToStub (line 364) | public static synchronized Object putMethodToStub(Method method, Objec...
method getMethodProxy (line 371) | public static synchronized InvocationHandler getMethodProxy(Method met...
method putMethodProxy (line 381) | public static synchronized InvocationHandler putMethodProxy(Method met...
method addAfterMethodRunner (line 389) | public static synchronized void addAfterMethodRunner(Runnable runnable) {
FILE: powermock-core/src/main/java/org/powermock/core/PowerMockUtils.java
class PowerMockUtils (line 22) | public class PowerMockUtils {
method getClassIterator (line 32) | @SuppressWarnings("unchecked")
method printClassesLoadedByClassloader (line 50) | public static void printClassesLoadedByClassloader(ClassLoader classLo...
FILE: powermock-core/src/main/java/org/powermock/core/WildcardMatcher.java
class WildcardMatcher (line 23) | public class WildcardMatcher {
method matches (line 39) | public static boolean matches(String text, String pattern) {
method matchesAny (line 76) | public static boolean matchesAny(Collection<String> patterns, String t...
method matchesAny (line 85) | public static boolean matchesAny(Iterable<String> patterns, String tex...
method matchesAny (line 94) | public static boolean matchesAny(String[] patterns, String text) {
FILE: powermock-core/src/main/java/org/powermock/core/agent/JavaAgentClassRegister.java
type JavaAgentClassRegister (line 23) | public interface JavaAgentClassRegister {
method isModifiedByAgent (line 31) | boolean isModifiedByAgent(ClassLoader classLoader, String className);
method registerClass (line 38) | void registerClass(ClassLoader loader, String className);
method clear (line 43) | void clear();
FILE: powermock-core/src/main/java/org/powermock/core/agent/JavaAgentFrameworkRegister.java
type JavaAgentFrameworkRegister (line 24) | public interface JavaAgentFrameworkRegister {
method set (line 31) | void set(JavaAgentClassRegister javaAgentClassRegister);
method clear (line 36) | void clear();
FILE: powermock-core/src/main/java/org/powermock/core/agent/JavaAgentFrameworkRegisterFactory.java
class JavaAgentFrameworkRegisterFactory (line 26) | public class JavaAgentFrameworkRegisterFactory {
method create (line 28) | public static JavaAgentFrameworkRegister create() {
method getInstanceForClassLoader (line 35) | private static JavaAgentFrameworkRegister getInstanceForClassLoader(Cl...
method getJavaAgentFrameworkRegisterClass (line 40) | @SuppressWarnings("unchecked")
method getImplementerClassName (line 51) | @SuppressWarnings("SameReturnValue")
FILE: powermock-core/src/main/java/org/powermock/core/bytebuddy/ConditionalStateStackManipulation.java
class ConditionalStateStackManipulation (line 27) | public class ConditionalStateStackManipulation implements StackManipulat...
method ConditionalStateStackManipulation (line 35) | public ConditionalStateStackManipulation(final StackManipulation condi...
method isValid (line 46) | @Override
method apply (line 51) | @Override
FILE: powermock-core/src/main/java/org/powermock/core/bytebuddy/Frame.java
class Frame (line 36) | public class Frame {
method beforeConstructorCall (line 38) | public static Frame beforeConstructorCall(final Iterable<? extends Par...
method Frame (line 57) | public Frame(final List<LocalVariable> locals) {
method addTopToLocals (line 62) | public Frame addTopToLocals(final int count) {
method addLocalVariable (line 73) | public Frame addLocalVariable(final LocalVariable localVariable) {
method addLocalVariables (line 79) | public Frame addLocalVariables(final ParameterList<InDefinedShape> typ...
method locals (line 91) | public Object[] locals() {
method localSize (line 99) | public int localSize() {
method maxLocalVariableIndex (line 103) | public int maxLocalVariableIndex() {
class LocalVariable (line 111) | public static class LocalVariable {
method from (line 112) | public static LocalVariable from(final Generic type) {
method LocalVariable (line 130) | private LocalVariable(final Object type, StackSize size) {
method getType (line 135) | public Object getType() {
method getStackSize (line 139) | public StackSize getStackSize() {
FILE: powermock-core/src/main/java/org/powermock/core/bytebuddy/MaxLocalsExtractor.java
class MaxLocalsExtractor (line 26) | public class MaxLocalsExtractor extends ClassVisitor {
method MaxLocalsExtractor (line 30) | public MaxLocalsExtractor() {
method visitMethod (line 34) | @Override
method getMethods (line 44) | public MethodMaxLocals getMethods() {
class MaxLocalsMethodVisitor (line 48) | private static class MaxLocalsMethodVisitor extends MethodVisitor {
method MaxLocalsMethodVisitor (line 55) | private MaxLocalsMethodVisitor(final String name, final String signa...
method visitMaxs (line 63) | @Override
method visitEnd (line 69) | @Override
FILE: powermock-core/src/main/java/org/powermock/core/bytebuddy/MethodMaxLocals.java
class MethodMaxLocals (line 27) | public class MethodMaxLocals {
method MethodMaxLocals (line 31) | MethodMaxLocals() {
method add (line 35) | public void add(String name, String signature, int maxLocals) {
method getMethodMaxLocal (line 39) | public int getMethodMaxLocal(final MethodDescription instrumentedMetho...
FILE: powermock-core/src/main/java/org/powermock/core/bytebuddy/MockGetawayCall.java
class MockGetawayCall (line 39) | public class MockGetawayCall {
method MockGetawayCall (line 43) | public MockGetawayCall(final Class mockGetawayClass) {
method forType (line 49) | public ForType forType(final TypeDescription targetType) {
class ForType (line 53) | public static class ForType {
method ForType (line 57) | private ForType(final MockGetawayCall mockGetawayCall, final TypeDes...
method withArguments (line 63) | public WithArguments withArguments(final List<Variable> parameters) {
class WithArguments (line 69) | public static class WithArguments {
method WithArguments (line 73) | private WithArguments(final ForType forType, final List<Variable> ar...
method withParameterTypes (line 78) | public ConstructorMockGetawayCall withParameterTypes(final Parameter...
class ConstructorMockGetawayCall (line 88) | private static class ConstructorMockGetawayCall implements StackManipu...
method ConstructorMockGetawayCall (line 95) | private ConstructorMockGetawayCall(final Method getawayMethod,
method loadSignatureParametersClasess (line 106) | private List<StackManipulation> loadSignatureParametersClasess() {
method loadArgumentsFromVariable (line 117) | private List<StackManipulation> loadArgumentsFromVariable() {
method isValid (line 127) | @Override
method apply (line 133) | @Override
FILE: powermock-core/src/main/java/org/powermock/core/bytebuddy/PrimitiveBoxing.java
type PrimitiveBoxing (line 30) | public enum PrimitiveBoxing implements StackManipulation{
method PrimitiveBoxing (line 53) | PrimitiveBoxing(Class<?> wrapperType,
method forPrimitive (line 63) | public static PrimitiveBoxing forPrimitive(TypeDefinition typeDefiniti...
method isValid (line 85) | @Override
method apply (line 90) | @Override
FILE: powermock-core/src/main/java/org/powermock/core/bytebuddy/Variable.java
class Variable (line 27) | public class Variable {
method of (line 29) | public static Variable of(final Generic variableType, final int offset) {
method Variable (line 35) | private Variable(final TypeDescription typeDefinitions, final int offs...
class VariableAccess (line 40) | public static class VariableAccess {
method load (line 42) | public static StackManipulation load(Variable variable) {return load...
method load (line 44) | public static StackManipulation load(Variable variable, final boolea...
method store (line 56) | public static StackManipulation store(Variable variable) {
FILE: powermock-core/src/main/java/org/powermock/core/classloader/ByteCodeFramework.java
type ByteCodeFramework (line 16) | public enum ByteCodeFramework {
method createClassloader (line 18) | @Override
method createTransformerChainFactory (line 24) | @Override
method getByteCodeFrameworkForMethod (line 30) | public static ByteCodeFramework getByteCodeFrameworkForMethod(final Cl...
method getByteCodeFrameworkForTestClass (line 45) | public static ByteCodeFramework getByteCodeFrameworkForTestClass(final...
method getByteCodeFramework (line 55) | private static ByteCodeFramework getByteCodeFramework(final AnnotatedE...
method createClassloader (line 68) | abstract MockClassLoader createClassloader(MockClassLoaderConfiguratio...
method createTransformerChainFactory (line 70) | abstract MockTransformerChainFactory createTransformerChainFactory();
FILE: powermock-core/src/main/java/org/powermock/core/classloader/ClassMarker.java
type ClassMarker (line 25) | public interface ClassMarker {
method mark (line 31) | <T> void mark(ClassWrapper<T> type);
FILE: powermock-core/src/main/java/org/powermock/core/classloader/ClassloaderWrapper.java
class ClassloaderWrapper (line 27) | public class ClassloaderWrapper {
method runWithClass (line 29) | public static void runWithClass(final Runnable runnable) {
method runWithClassClassLoader (line 33) | public static void runWithClassClassLoader(final ClassLoader classLoad...
method runWithClass (line 43) | public static <V> V runWithClass(final Callable<V> callable) {
method runWithClassClassLoader (line 47) | public static <V> V runWithClassClassLoader(final ClassLoader classLoa...
FILE: powermock-core/src/main/java/org/powermock/core/classloader/DeferSupportingClassLoader.java
class DeferSupportingClassLoader (line 35) | abstract class DeferSupportingClassLoader extends ClassLoader {
method DeferSupportingClassLoader (line 44) | DeferSupportingClassLoader(ClassLoader classloader, MockClassLoaderCon...
method getResource (line 57) | @Override
method getResourceAsStream (line 62) | @Override
method getResources (line 67) | @Override
method getConfiguration (line 78) | public MockClassLoaderConfiguration getConfiguration() {
method cache (line 85) | public void cache(Class<?> cls) {
method loadClassByThisClassLoader (line 91) | protected abstract Class<?> loadClassByThisClassLoader(String s) throw...
method loadClass (line 93) | @Override
method getClassLoadingLock (line 104) | protected Object getClassLoadingLock(String className) {
method findResource (line 123) | @Override
method findResources (line 133) | @Override
method loadClass1 (line 142) | private Class<?> loadClass1(String name, boolean resolve) throws Class...
method loadByDeferClassLoader (line 156) | private Class<?> loadByDeferClassLoader(final String name) throws Clas...
method shouldDefer (line 162) | private boolean shouldDefer(String name) {
method findLoadedClass1 (line 166) | private Class<?> findLoadedClass1(String name) {SoftReference<Class<?>...
FILE: powermock-core/src/main/java/org/powermock/core/classloader/MockClassLoader.java
class MockClassLoader (line 57) | public abstract class MockClassLoader extends DeferSupportingClassLoader {
method MockClassLoader (line 77) | protected MockClassLoader(String[] classesToMock, String[] packagesToD...
method MockClassLoader (line 91) | protected MockClassLoader(MockClassLoaderConfiguration configuration, ...
method loadClassByThisClassLoader (line 97) | @Override
method setMockTransformerChain (line 109) | public void setMockTransformerChain(MockTransformerChain mockTransform...
method getMockTransformerChain (line 113) | public MockTransformerChain getMockTransformerChain() {
method loadUnmockedClass (line 117) | protected Class<?> loadUnmockedClass(final String name, final Protecti...
method defineClass (line 131) | private Class<?> defineClass(String name, URL url, final ProtectionDom...
method readClass (line 136) | private byte[] readClass(final URL url) throws IOException {
method loadMockClass (line 173) | private Class<?> loadMockClass(String name, ProtectionDomain protectio...
method defineClass (line 179) | public Class<?> defineClass(final String name, final ProtectionDomain ...
method transformClass (line 183) | protected <T> ClassWrapper<T> transformClass(ClassWrapper<T> wrappedTy...
method defineAndTransformClass (line 192) | protected abstract byte[] defineAndTransformClass(final String name, f...
FILE: powermock-core/src/main/java/org/powermock/core/classloader/MockClassLoaderBuilder.java
class MockClassLoaderBuilder (line 33) | public class MockClassLoaderBuilder {
method create (line 41) | public static MockClassLoaderBuilder create(ByteCodeFramework byteCode...
method MockClassLoaderBuilder (line 48) | private MockClassLoaderBuilder(final ByteCodeFramework byteCodeFramewo...
method build (line 54) | public MockClassLoader build() {
method createTransformerChain (line 65) | private MockTransformerChain createTransformerChain() {
method addIgnorePackage (line 76) | public MockClassLoaderBuilder addIgnorePackage(String[] packagesToIgno...
method addClassesToModify (line 81) | public MockClassLoaderBuilder addClassesToModify(String[] classesToMod...
method addExtraMockTransformers (line 86) | public MockClassLoaderBuilder addExtraMockTransformers(MockTransformer...
method addClassPathAdjuster (line 97) | public MockClassLoaderBuilder addClassPathAdjuster(final UseClassPathA...
method forTestClass (line 102) | public MockClassLoaderBuilder forTestClass(final Class<?> testClass) {
FILE: powermock-core/src/main/java/org/powermock/core/classloader/MockClassLoaderConfiguration.java
class MockClassLoaderConfiguration (line 37) | public class MockClassLoaderConfiguration {
method MockClassLoaderConfiguration (line 87) | public MockClassLoaderConfiguration() {
method MockClassLoaderConfiguration (line 96) | public MockClassLoaderConfiguration(String[] classesToMock, String[] p...
method addIgnorePackage (line 112) | public void addIgnorePackage(String... packagesToIgnore) {
method addClassesToModify (line 133) | public final void addClassesToModify(String... classes) {
method shouldDefer (line 143) | boolean shouldDefer(String className) {
method shouldMockClass (line 147) | boolean shouldMockClass(String className) {
method getDeferPackages (line 151) | String[] getDeferPackages() {
method shouldDefer (line 155) | private boolean shouldDefer(String[] packages, String name) {
method deferConditionMatches (line 164) | private boolean deferConditionMatches(String name, String packageName) {
method shouldIgnore (line 169) | private boolean shouldIgnore(String[] packages, String name) {
method shouldLoadUnmodifiedClass (line 178) | private boolean shouldLoadUnmodifiedClass(String className) {
method shouldLoadWithMockClassloaderWithoutModifications (line 187) | private boolean shouldLoadWithMockClassloaderWithoutModifications(Stri...
method shouldModifyClass (line 199) | private boolean shouldModifyClass(String className) {
method shouldIgnore (line 203) | private boolean shouldIgnore(String className) {
method shouldModify (line 207) | boolean shouldModify(String className) {
method shouldModifyAll (line 222) | private boolean shouldModifyAll() {
method getPackagesToDefer (line 226) | private static String[] getPackagesToDefer(final String[] additionalDe...
FILE: powermock-core/src/main/java/org/powermock/core/classloader/MockClassLoaderFactory.java
class MockClassLoaderFactory (line 40) | public class MockClassLoaderFactory {
method MockClassLoaderFactory (line 49) | public MockClassLoaderFactory(Class<?> testClass) {
method MockClassLoaderFactory (line 53) | public MockClassLoaderFactory(Class<?> testClass, String[] packagesToI...
method createForClass (line 61) | public ClassLoader createForClass(final MockTransformer... extraMockTr...
method createForMethod (line 72) | public ClassLoader createForMethod(final Method method, final MockTran...
method create (line 85) | private ClassLoader create(final ByteCodeFramework byteCodeFramework, ...
method getStaticSuppressionClasses (line 98) | private String[] getStaticSuppressionClasses(Method method) {
method createMockClassLoader (line 108) | private ClassLoader createMockClassLoader(final ByteCodeFramework byte...
method createWithPrivilegeAccessController (line 119) | private ClassLoader createWithPrivilegeAccessController(final ByteCode...
method createMockClassLoader (line 131) | private MockClassLoader createMockClassLoader(final ByteCodeFramework ...
method initialize (line 144) | private void initialize(final ClassLoader mockLoader) {
method isContextClassLoaderShouldBeUsed (line 148) | private boolean isContextClassLoaderShouldBeUsed(String[] classesToLoa...
method makeSureArrayContainsTestClassName (line 152) | private String[] makeSureArrayContainsTestClassName(String[] arrayOfCl...
method hasMockPolicyProvidedClasses (line 176) | private boolean hasMockPolicyProvidedClasses(Class<?> testClass) {
FILE: powermock-core/src/main/java/org/powermock/core/classloader/PowerMockModified.java
type PowerMockModified (line 24) | public interface PowerMockModified {
FILE: powermock-core/src/main/java/org/powermock/core/classloader/javassist/ClassPathAdjuster.java
type ClassPathAdjuster (line 26) | public interface ClassPathAdjuster {
method adjustClassPath (line 27) | void adjustClassPath(ClassPool classPool);
FILE: powermock-core/src/main/java/org/powermock/core/classloader/javassist/ClassPoolFactory.java
class ClassPoolFactory (line 25) | class ClassPoolFactory {
method ClassPoolFactory (line 28) | ClassPoolFactory(UseClassPathAdjuster useClassPathAdjuster) {
method create (line 32) | ClassPool create() {
FILE: powermock-core/src/main/java/org/powermock/core/classloader/javassist/JavaAssistClassMarkerFactory.java
class JavaAssistClassMarkerFactory (line 26) | class JavaAssistClassMarkerFactory {
method createClassMarker (line 28) | static ClassMarker createClassMarker(ClassPool classPool) {
class InterfaceClassMarker (line 37) | private static class InterfaceClassMarker implements ClassMarker {
method InterfaceClassMarker (line 41) | InterfaceClassMarker(ClassPool classPool) {
method mark (line 50) | @Override
method mark (line 58) | public void mark(CtClass type) {
FILE: powermock-core/src/main/java/org/powermock/core/classloader/javassist/JavassistMockClassLoader.java
class JavassistMockClassLoader (line 32) | public class JavassistMockClassLoader extends MockClassLoader {
method JavassistMockClassLoader (line 39) | public JavassistMockClassLoader(String[] classesToMock) {
method JavassistMockClassLoader (line 43) | public JavassistMockClassLoader(String[] classesToMock, String[] packa...
method JavassistMockClassLoader (line 48) | public JavassistMockClassLoader(MockClassLoaderConfiguration configura...
method JavassistMockClassLoader (line 52) | public JavassistMockClassLoader(MockClassLoaderConfiguration configura...
method loadUnmockedClass (line 60) | @Override
method defineAndTransformClass (line 93) | protected byte[] defineAndTransformClass(String name, ProtectionDomain...
FILE: powermock-core/src/main/java/org/powermock/core/reporter/MockingFrameworkReporter.java
type MockingFrameworkReporter (line 24) | public interface MockingFrameworkReporter {
method enable (line 29) | void enable();
method disable (line 34) | void disable();
FILE: powermock-core/src/main/java/org/powermock/core/reporter/PowerMockReporter.java
type PowerMockReporter (line 23) | public interface PowerMockReporter {
method classNotPrepared (line 25) | <T> void classNotPrepared(Class<T> type);
FILE: powermock-core/src/main/java/org/powermock/core/reporter/PowerMockReporterFactory.java
type PowerMockReporterFactory (line 23) | @SuppressWarnings("unused")
method createPowerMockReporter (line 26) | PowerMockReporter createPowerMockReporter();
FILE: powermock-core/src/main/java/org/powermock/core/spi/DefaultBehavior.java
type DefaultBehavior (line 23) | public interface DefaultBehavior {
method replay (line 34) | Object replay(Object... mocks);
method reset (line 45) | Object reset(Object... mocks);
FILE: powermock-core/src/main/java/org/powermock/core/spi/MethodInvocationControl.java
type MethodInvocationControl (line 29) | public interface MethodInvocationControl extends InvocationHandler, Defa...
method isMocked (line 39) | boolean isMocked(Method method);
FILE: powermock-core/src/main/java/org/powermock/core/spi/NewInvocationControl.java
type NewInvocationControl (line 27) | public interface NewInvocationControl<T> extends DefaultBehavior {
method invoke (line 36) | Object invoke(Class<?> type, Object[] args, Class<?>[] sig) throws Exc...
method expectSubstitutionLogic (line 43) | T expectSubstitutionLogic(Object... arguments) throws Exception;
FILE: powermock-core/src/main/java/org/powermock/core/spi/PowerMockPolicy.java
type PowerMockPolicy (line 43) | public interface PowerMockPolicy {
method applyClassLoadingPolicy (line 53) | void applyClassLoadingPolicy(MockPolicyClassLoadingSettings settings);
method applyInterceptionPolicy (line 64) | void applyInterceptionPolicy(MockPolicyInterceptionSettings settings);
FILE: powermock-core/src/main/java/org/powermock/core/spi/PowerMockTestListener.java
type PowerMockTestListener (line 28) | public interface PowerMockTestListener {
method beforeTestSuiteStarted (line 40) | void beforeTestSuiteStarted(Class<?> testClass, Method[] testMethods) ...
method beforeTestMethod (line 55) | void beforeTestMethod(Object testInstance, Method method, Object[] arg...
method afterTestMethod (line 72) | void afterTestMethod(Object testInstance, Method method, Object[] argu...
method afterTestSuiteEnded (line 86) | void afterTestSuiteEnded(Class<?> testClass, Method[] methods, TestSui...
FILE: powermock-core/src/main/java/org/powermock/core/spi/listener/AnnotationEnablerListener.java
type AnnotationEnablerListener (line 22) | public interface AnnotationEnablerListener extends PowerMockTestListener {
method getMockAnnotations (line 27) | Class<? extends Annotation>[] getMockAnnotations();
FILE: powermock-core/src/main/java/org/powermock/core/spi/support/AbstractPowerMockTestListenerBase.java
class AbstractPowerMockTestListenerBase (line 29) | public class AbstractPowerMockTestListenerBase implements PowerMockTestL...
method afterTestMethod (line 34) | @Override
method beforeTestMethod (line 41) | @Override
method beforeTestSuiteStarted (line 48) | @Override
method afterTestSuiteEnded (line 55) | @Override
FILE: powermock-core/src/main/java/org/powermock/core/spi/support/InvocationSubstitute.java
type InvocationSubstitute (line 28) | public interface InvocationSubstitute<T> {
method performSubstitutionLogic (line 29) | T performSubstitutionLogic(Object... arguments) throws Exception;
FILE: powermock-core/src/main/java/org/powermock/core/spi/testresult/Result.java
type Result (line 18) | public enum Result {
FILE: powermock-core/src/main/java/org/powermock/core/spi/testresult/TestMethodResult.java
type TestMethodResult (line 18) | public interface TestMethodResult {
method getResult (line 20) | Result getResult();
FILE: powermock-core/src/main/java/org/powermock/core/spi/testresult/TestSuiteResult.java
type TestSuiteResult (line 18) | public interface TestSuiteResult {
method getTestCount (line 20) | int getTestCount();
method getIgnoreCount (line 22) | int getIgnoreCount();
method getSuccessCount (line 24) | int getSuccessCount();
method getFailureCount (line 26) | int getFailureCount();
method getResult (line 28) | Result getResult();
FILE: powermock-core/src/main/java/org/powermock/core/spi/testresult/impl/TestMethodResultImpl.java
class TestMethodResultImpl (line 21) | public class TestMethodResultImpl implements TestMethodResult {
method TestMethodResultImpl (line 25) | public TestMethodResultImpl(Result result) {
method getResult (line 30) | @Override
method toString (line 35) | @Override
FILE: powermock-core/src/main/java/org/powermock/core/spi/testresult/impl/TestSuiteResultImpl.java
class TestSuiteResultImpl (line 21) | public class TestSuiteResultImpl implements TestSuiteResult {
method TestSuiteResultImpl (line 31) | public TestSuiteResultImpl() {
method TestSuiteResultImpl (line 34) | public TestSuiteResultImpl(int failureCount, int successCount, int tes...
method getFailureCount (line 41) | @Override
method getSuccessCount (line 46) | @Override
method getIgnoreCount (line 51) | @Override
method getResult (line 56) | @Override
method getTestCount (line 67) | @Override
method toString (line 72) | @Override
FILE: powermock-core/src/main/java/org/powermock/core/testlisteners/FieldDefaulter.java
class FieldDefaulter (line 32) | public class FieldDefaulter extends AbstractPowerMockTestListenerBase {
method afterTestMethod (line 34) | @Override
FILE: powermock-core/src/main/java/org/powermock/core/testlisteners/GlobalNotificationBuildSupport.java
class GlobalNotificationBuildSupport (line 26) | public class GlobalNotificationBuildSupport {
type Callback (line 28) | public interface Callback {
method suiteClassInitiated (line 29) | void suiteClassInitiated(Class<?> testClass);
method testInstanceCreated (line 31) | void testInstanceCreated(Object testInstance);
method prepareTestSuite (line 43) | public static void prepareTestSuite(
method testClassInitiated (line 60) | public static void testClassInitiated(Class<?> testClass) {
method countInitializersInTrace (line 73) | private static int countInitializersInTrace(final String className) {
method testInstanceCreated (line 85) | public static void testInstanceCreated(Object testInstance) {
method closeTestSuite (line 97) | public static void closeTestSuite(Class<?> testClass) {
method closePendingTestSuites (line 105) | public static void closePendingTestSuites(Callback callback) {
FILE: powermock-core/src/main/java/org/powermock/core/transformers/ClassWrapper.java
type ClassWrapper (line 27) | public interface ClassWrapper<T> {
method isInterface (line 34) | boolean isInterface();
method unwrap (line 41) | T unwrap();
method wrap (line 48) | ClassWrapper<T> wrap(T original);
FILE: powermock-core/src/main/java/org/powermock/core/transformers/ClassWrapperFactory.java
type ClassWrapperFactory (line 27) | public interface ClassWrapperFactory<T> {
method wrap (line 33) | ClassWrapper<T> wrap(T original);
FILE: powermock-core/src/main/java/org/powermock/core/transformers/MethodSignatureWriter.java
type MethodSignatureWriter (line 6) | public interface MethodSignatureWriter<T> {
method signatureFor (line 7) | String signatureFor(T method);
method signatureForReflection (line 9) | String signatureForReflection(Method method);
FILE: powermock-core/src/main/java/org/powermock/core/transformers/MethodSignatures.java
type MethodSignatures (line 11) | public enum MethodSignatures {
method methodSignatureWriter (line 14) | @Override
method methodSignatureWriter (line 21) | @Override
method methodSignatureWriter (line 27) | public abstract <T> MethodSignatureWriter<T> methodSignatureWriter();
class ByteBuddyMethodSignatureWriterWriter (line 29) | private static class ByteBuddyMethodSignatureWriterWriter implements M...
method signatureFor (line 31) | @Override
method signatureForReflection (line 36) | @Override
class JavassistMethodSignatureWriterWriter (line 42) | private static class JavassistMethodSignatureWriterWriter implements M...
method signatureFor (line 43) | @Override
method signatureForReflection (line 60) | @Override
method createSignature (line 73) | private String createSignature(
FILE: powermock-core/src/main/java/org/powermock/core/transformers/MockTransformer.java
type MockTransformer (line 26) | public interface MockTransformer<T> {
method transform (line 35) | ClassWrapper<T> transform(ClassWrapper<T> clazz) throws Exception;
FILE: powermock-core/src/main/java/org/powermock/core/transformers/MockTransformerChain.java
type MockTransformerChain (line 29) | public interface MockTransformerChain {
method transform (line 37) | <T> ClassWrapper<T> transform(ClassWrapper<T> clazz) throws Exception;
method filter (line 44) | Collection<MockTransformer> filter(FilterPredicate predicate);
type FilterPredicate (line 46) | interface FilterPredicate {
method test (line 47) | boolean test(MockTransformer<?> mockTransformer);
FILE: powermock-core/src/main/java/org/powermock/core/transformers/MockTransformerChainFactory.java
type MockTransformerChainFactory (line 28) | public interface MockTransformerChainFactory {
method createDefaultChain (line 35) | MockTransformerChain createDefaultChain();
method createDefaultChain (line 42) | MockTransformerChain createDefaultChain(TransformStrategy transformStr...
method createDefaultChain (line 49) | MockTransformerChain createDefaultChain(List<MockTransformer> extraMoc...
method createTestClassChain (line 56) | MockTransformerChain createTestClassChain(MockTransformer testClassTra...
FILE: powermock-core/src/main/java/org/powermock/core/transformers/TestClassAwareTransformer.java
type TestClassAwareTransformer (line 8) | public interface TestClassAwareTransformer {
method setTestClass (line 9) | void setTestClass(Class<?> testClass);
FILE: powermock-core/src/main/java/org/powermock/core/transformers/TestClassTransformer.java
class TestClassTransformer (line 48) | public abstract class TestClassTransformer<T, M> implements MockTransfor...
method TestClassTransformer (line 54) | public TestClassTransformer(Class<?> testClass, Class<? extends Annota...
method signatureOf (line 61) | protected String signatureOf(final M method) {
method signatureOf (line 65) | protected String signatureOf(final Method m) {
method getTestMethodAnnotationType (line 69) | protected Class<? extends Annotation> getTestMethodAnnotationType() {
method getTestClass (line 73) | protected Class<?> getTestClass() {
FILE: powermock-core/src/main/java/org/powermock/core/transformers/TestClassTransformerBuilder.java
class TestClassTransformerBuilder (line 12) | public class TestClassTransformerBuilder {
method forTestClass (line 14) | public static TestClassTransformerBuilder forTestClass(final Class<?> ...
method TestClassTransformerBuilder (line 20) | private TestClassTransformerBuilder(final Class<?> testClass) {
method removesTestMethodAnnotation (line 24) | public RemovesTestMethodAnnotation removesTestMethodAnnotation(final C...
method bytecodeFrameworkClue (line 28) | public TestClassTransformerBuilderWithClue bytecodeFrameworkClue(final...
class TestClassTransformerBuilderWithClue (line 32) | public static class TestClassTransformerBuilderWithClue {
method TestClassTransformerBuilderWithClue (line 37) | private TestClassTransformerBuilderWithClue(final Class<?> testClass...
method removesTestMethodAnnotation (line 42) | public RemovesTestMethodAnnotation removesTestMethodAnnotation(final...
class RemovesTestMethodAnnotation (line 47) | public static class RemovesTestMethodAnnotation {
method RemovesTestMethodAnnotation (line 52) | private RemovesTestMethodAnnotation(final Class<?> testClass, final ...
method fromMethods (line 59) | public TestClassTransformer fromMethods(final Collection<Method> tes...
method fromAllMethodsExcept (line 70) | public TestClassTransformer fromAllMethodsExcept(Method singleMethod...
FILE: powermock-core/src/main/java/org/powermock/core/transformers/TransformStrategy.java
type TransformStrategy (line 22) | public enum TransformStrategy {
method isClassloaderMode (line 24) | @Override
method isAgentMode (line 29) | @Override
method isClassloaderMode (line 35) | @Override
method isAgentMode (line 40) | @Override
method isClassloaderMode (line 51) | public abstract boolean isClassloaderMode();
method isAgentMode (line 58) | public abstract boolean isAgentMode();
FILE: powermock-core/src/main/java/org/powermock/core/transformers/javassist/AbstractJavaAssistMockTransformer.java
class AbstractJavaAssistMockTransformer (line 26) | public abstract class AbstractJavaAssistMockTransformer implements MockT...
method AbstractJavaAssistMockTransformer (line 30) | public AbstractJavaAssistMockTransformer(TransformStrategy strategy) {
method transform (line 34) | @Override
method transform (line 47) | public abstract CtClass transform(CtClass clazz) throws Exception;
method getStrategy (line 49) | protected TransformStrategy getStrategy() {
FILE: powermock-core/src/main/java/org/powermock/core/transformers/javassist/ClassFinalModifierMockTransformer.java
class ClassFinalModifierMockTransformer (line 30) | public class ClassFinalModifierMockTransformer extends AbstractJavaAssis...
method ClassFinalModifierMockTransformer (line 32) | public ClassFinalModifierMockTransformer(final TransformStrategy strat...
method transform (line 36) | @Override
FILE: powermock-core/src/main/java/org/powermock/core/transformers/javassist/ConstructorsMockTransformer.java
class ConstructorsMockTransformer (line 32) | public class ConstructorsMockTransformer extends AbstractJavaAssistMockT...
method ConstructorsMockTransformer (line 34) | public ConstructorsMockTransformer(final TransformStrategy strategy) {
method transform (line 38) | @Override
method transform (line 59) | private static void transform(final CtClass[] clazzArray) {
FILE: powermock-core/src/main/java/org/powermock/core/transformers/javassist/InstrumentMockTransformer.java
class InstrumentMockTransformer (line 30) | public class InstrumentMockTransformer extends AbstractJavaAssistMockTra...
method InstrumentMockTransformer (line 34) | public InstrumentMockTransformer(final TransformStrategy strategy) {
method transform (line 39) | @Override
FILE: powermock-core/src/main/java/org/powermock/core/transformers/javassist/JavassistMockTransformerChainFactory.java
class JavassistMockTransformerChainFactory (line 30) | public class JavassistMockTransformerChainFactory implements MockTransfo...
method createDefaultChain (line 34) | @Override
method createDefaultChain (line 39) | @Override
method createDefaultChain (line 44) | @Override
method createTestClassChain (line 51) | @Override
method createDefaultChainBuilder (line 58) | private MockTransformerChainBuilder createDefaultChainBuilder(final Tr...
FILE: powermock-core/src/main/java/org/powermock/core/transformers/javassist/MethodMockTransformer.java
class MethodMockTransformer (line 34) | abstract class MethodMockTransformer extends AbstractJavaAssistMockTrans...
method MethodMockTransformer (line 38) | MethodMockTransformer(final TransformStrategy strategy) {
method modifyMethod (line 43) | void modifyMethod(final CtMethod method) throws NotFoundException, Can...
method modifyNativeMethod (line 61) | private void modifyNativeMethod(CtMethod method, CtClass returnTypeAsC...
method classOrInstance (line 89) | private String classOrInstance(CtMethod method) {
method modifyMethod (line 97) | private void modifyMethod(CtMethod method, CtClass returnTypeAsCtClass,
FILE: powermock-core/src/main/java/org/powermock/core/transformers/javassist/MethodSizeMockTransformer.java
class MethodSizeMockTransformer (line 39) | public class MethodSizeMockTransformer extends MethodMockTransformer {
method MethodSizeMockTransformer (line 43) | public MethodSizeMockTransformer(final TransformStrategy strategy) {
method transform (line 47) | public CtClass transform(final CtClass clazz) throws CannotCompileExce...
method isMethodSizeExceeded (line 62) | private boolean isMethodSizeExceeded(CtMethod method) {
FILE: powermock-core/src/main/java/org/powermock/core/transformers/javassist/PackagePrivateClassesMockTransformer.java
class PackagePrivateClassesMockTransformer (line 33) | public class PackagePrivateClassesMockTransformer extends AbstractJavaAs...
method PackagePrivateClassesMockTransformer (line 35) | public PackagePrivateClassesMockTransformer(final TransformStrategy st...
method transform (line 39) | @Override
method transform (line 48) | private static void transform(final CtClass clazz, final String name) {
method isNotSystemClass (line 61) | private static boolean isNotSystemClass(final String name) {
FILE: powermock-core/src/main/java/org/powermock/core/transformers/javassist/StaticFinalFieldsMockTransformer.java
class StaticFinalFieldsMockTransformer (line 32) | public class StaticFinalFieldsMockTransformer extends AbstractJavaAssist...
method StaticFinalFieldsMockTransformer (line 34) | public StaticFinalFieldsMockTransformer(final TransformStrategy strate...
method transform (line 38) | public CtClass transform(final CtClass clazz) {
FILE: powermock-core/src/main/java/org/powermock/core/transformers/javassist/StaticFinalNativeMethodMockTransformer.java
class StaticFinalNativeMethodMockTransformer (line 28) | public class StaticFinalNativeMethodMockTransformer extends MethodMockTr...
method StaticFinalNativeMethodMockTransformer (line 30) | public StaticFinalNativeMethodMockTransformer(final TransformStrategy ...
method transform (line 34) | @Override
FILE: powermock-core/src/main/java/org/powermock/core/transformers/javassist/SuppressStaticInitializerMockTransformer.java
class SuppressStaticInitializerMockTransformer (line 29) | public class SuppressStaticInitializerMockTransformer extends AbstractJa...
method SuppressStaticInitializerMockTransformer (line 31) | public SuppressStaticInitializerMockTransformer(final TransformStrateg...
method transform (line 35) | @Override
FILE: powermock-core/src/main/java/org/powermock/core/transformers/javassist/support/JavaAssistClassWrapperFactory.java
class JavaAssistClassWrapperFactory (line 25) | public class JavaAssistClassWrapperFactory implements ClassWrapperFactor...
method wrap (line 26) | @Override
class JavaAssistClassWrapper (line 31) | public static class JavaAssistClassWrapper implements ClassWrapper<CtC...
method JavaAssistClassWrapper (line 35) | private JavaAssistClassWrapper(CtClass ctClass) {
method isInterface (line 39) | @Override
method unwrap (line 44) | @Override
method wrap (line 49) | @Override
FILE: powermock-core/src/main/java/org/powermock/core/transformers/javassist/support/PowerMockExpressionEditor.java
class PowerMockExpressionEditor (line 45) | public final class PowerMockExpressionEditor extends ExprEditor {
method PowerMockExpressionEditor (line 51) | public PowerMockExpressionEditor(final TransformStrategy strategy, fin...
method edit (line 57) | @Override
method edit (line 76) | @Override
method edit (line 116) | @Override
method edit (line 164) | @Override
method addNewDeferConstructor (line 210) | private void addNewDeferConstructor(final CtClass clazz) throws Cannot...
FILE: powermock-core/src/main/java/org/powermock/core/transformers/javassist/support/Primitives.java
class Primitives (line 38) | public class Primitives {
method lookupMappings (line 43) | private static Map<CtPrimitiveType, Class<?>> lookupMappings() {
method getClassFor (line 61) | public static Class<?> getClassFor(CtPrimitiveType ctPrimitiveType) {
FILE: powermock-core/src/main/java/org/powermock/core/transformers/javassist/support/TransformerHelper.java
class TransformerHelper (line 28) | public class TransformerHelper {
method isAccessFlagSynthetic (line 32) | private static boolean isAccessFlagSynthetic(CtMethod method) {
method isBridgeMethod (line 37) | private static boolean isBridgeMethod(CtMethod method) {
method getCorrectReturnValueType (line 46) | public static String getCorrectReturnValueType(final CtClass returnTyp...
method isNotSyntheticField (line 65) | public static boolean isNotSyntheticField(FieldInfo fieldInfo) {
method shouldSkipMethod (line 69) | public static boolean shouldSkipMethod(CtMethod method) {
method getReturnTypeAsString (line 73) | public static String getReturnTypeAsString(final CtMethod method) thro...
method shouldTreatAsSystemClassCall (line 82) | public static boolean shouldTreatAsSystemClassCall(CtClass declaringCl...
FILE: powermock-core/src/main/java/org/powermock/core/transformers/javassist/testclass/ForMethodsJavaAssistTestClassTransformer.java
class ForMethodsJavaAssistTestClassTransformer (line 12) | public class ForMethodsJavaAssistTestClassTransformer extends JavaAssist...
method ForMethodsJavaAssistTestClassTransformer (line 21) | public ForMethodsJavaAssistTestClassTransformer(final Class<?> testClass,
method mustHaveTestAnnotationRemoved (line 29) | @Override
FILE: powermock-core/src/main/java/org/powermock/core/transformers/javassist/testclass/FromAllMethodsExceptJavaAssistTestClassTransformer.java
class FromAllMethodsExceptJavaAssistTestClassTransformer (line 9) | public class FromAllMethodsExceptJavaAssistTestClassTransformer extends ...
method FromAllMethodsExceptJavaAssistTestClassTransformer (line 12) | public FromAllMethodsExceptJavaAssistTestClassTransformer(final Class<...
method mustHaveTestAnnotationRemoved (line 20) | @Override
FILE: powermock-core/src/main/java/org/powermock/core/transformers/javassist/testclass/JavaAssistTestClassTransformer.java
class JavaAssistTestClassTransformer (line 37) | public abstract class JavaAssistTestClassTransformer extends TestClassTr...
method JavaAssistTestClassTransformer (line 39) | JavaAssistTestClassTransformer(Class<?> testClass,
method mustHaveTestAnnotationRemoved (line 45) | protected abstract boolean mustHaveTestAnnotationRemoved(CtMethod meth...
method transform (line 47) | @Override
method transform (line 53) | private void transform(final CtClass clazz) throws Exception {
method isTestClass (line 71) | private boolean isTestClass(CtClass clazz) {
method isNestedWithinTestClass (line 80) | private boolean isNestedWithinTestClass(CtClass clazz) {
method asOriginalClass (line 86) | private Class<?> asOriginalClass(CtClass type) throws Exception {
method asOriginalClassParams (line 98) | private Class<?>[] asOriginalClassParams(CtClass[] parameterTypes)
method removeTestMethodAnnotationFrom (line 107) | private void removeTestMethodAnnotationFrom(CtMethod m) {
method removeTestAnnotationsForTestMethodsThatRunOnOtherClassLoader (line 122) | private void removeTestAnnotationsForTestMethodsThatRunOnOtherClassLoa...
method addLifeCycleNotifications (line 131) | private void addLifeCycleNotifications(CtClass clazz) {
method addClassInitializerNotification (line 140) | private void addClassInitializerNotification(CtClass clazz)
method hasSuperClass (line 150) | private static boolean hasSuperClass(CtClass clazz) {
method addConstructorNotification (line 164) | private void addConstructorNotification(final CtClass clazz)
method restoreOriginalConstructorsAccesses (line 178) | private void restoreOriginalConstructorsAccesses(CtClass clazz) throws...
method makeDeferConstructorNonPublic (line 203) | private void makeDeferConstructorNonPublic(final CtClass clazz) {
FILE: powermock-core/src/main/java/org/powermock/core/transformers/support/DefaultMockTransformerChain.java
class DefaultMockTransformerChain (line 31) | public class DefaultMockTransformerChain implements MockTransformerChain {
method DefaultMockTransformerChain (line 35) | private DefaultMockTransformerChain(final List<MockTransformer> transf...
method transform (line 39) | @Override
method filter (line 48) | @Override
method toString (line 61) | @Override
method newBuilder (line 66) | public static MockTransformerChainBuilder newBuilder() {
class MockTransformerChainBuilder (line 70) | public static class MockTransformerChainBuilder {
method MockTransformerChainBuilder (line 74) | private MockTransformerChainBuilder() {
method append (line 78) | public MockTransformerChainBuilder append(MockTransformer transforme...
method append (line 83) | public MockTransformerChainBuilder append(final List<MockTransformer...
method build (line 88) | public MockTransformerChain build() {
FILE: powermock-core/src/main/java/org/powermock/core/transformers/support/FilterPredicates.java
class FilterPredicates (line 6) | public class FilterPredicates {
method isInstanceOf (line 8) | public static FilterPredicate isInstanceOf(final Class<?> klass) {
FILE: powermock-core/src/main/java/org/powermock/mockpolicies/MockPolicyClassLoadingSettings.java
type MockPolicyClassLoadingSettings (line 28) | public interface MockPolicyClassLoadingSettings {
method setStaticInitializersToSuppress (line 34) | void setStaticInitializersToSuppress(String[] staticInitializersToSupp...
method addStaticInitializersToSuppress (line 39) | void addStaticInitializersToSuppress(String firstStaticInitializerToSu...
method addStaticInitializersToSuppress (line 44) | void addStaticInitializersToSuppress(String[] staticInitializersToSupp...
method setFullyQualifiedNamesOfClassesToLoadByMockClassloader (line 50) | void setFullyQualifiedNamesOfClassesToLoadByMockClassloader(String[] c...
method addFullyQualifiedNamesOfClassesToLoadByMockClassloader (line 56) | void addFullyQualifiedNamesOfClassesToLoadByMockClassloader(String fir...
method addFullyQualifiedNamesOfClassesToLoadByMockClassloader (line 62) | void addFullyQualifiedNamesOfClassesToLoadByMockClassloader(String[] c...
method getStaticInitializersToSuppress (line 68) | String[] getStaticInitializersToSuppress();
method getFullyQualifiedNamesOfClassesToLoadByMockClassloader (line 74) | String[] getFullyQualifiedNamesOfClassesToLoadByMockClassloader();
FILE: powermock-core/src/main/java/org/powermock/mockpolicies/MockPolicyInterceptionSettings.java
type MockPolicyInterceptionSettings (line 33) | public interface MockPolicyInterceptionSettings {
method setMethodsToSuppress (line 38) | void setMethodsToSuppress(Method[] methods);
method addMethodsToSuppress (line 43) | void addMethodsToSuppress(Method methodToSuppress, Method... additiona...
method addMethodsToSuppress (line 48) | void addMethodsToSuppress(Method[] methods);
method setMethodsToStub (line 57) | void setMethodsToStub(Map<Method, Object> substituteReturnValues);
method stubMethod (line 63) | void stubMethod(Method method, Object returnObject);
method proxyMethod (line 69) | void proxyMethod(Method method, InvocationHandler invocationHandler);
method getProxiedMethods (line 75) | Map<Method, InvocationHandler> getProxiedMethods();
method setMethodsToProxy (line 84) | void setMethodsToProxy(Map<Method, InvocationHandler> proxies);
method setSubtituteReturnValues (line 95) | @Deprecated
method addSubtituteReturnValue (line 106) | @Deprecated
method setFieldsSuppress (line 113) | void setFieldsSuppress(Field[] fields);
method addFieldToSuppress (line 118) | void addFieldToSuppress(Field firstField, Field... additionalFields);
method addFieldToSuppress (line 123) | void addFieldToSuppress(Field[] fields);
method setFieldTypesToSuppress (line 129) | void setFieldTypesToSuppress(String[] fieldTypes);
method addFieldTypesToSuppress (line 134) | void addFieldTypesToSuppress(String firstType, String... additionalFie...
method addFieldTypesToSuppress (line 139) | void addFieldTypesToSuppress(String[] fieldTypes);
method getMethodsToSuppress (line 145) | Method[] getMethodsToSuppress();
method getStubbedMethods (line 151) | Map<Method, Object> getStubbedMethods();
method getSubstituteReturnValues (line 159) | @Deprecated
method getFieldsToSuppress (line 166) | Field[] getFieldsToSuppress();
method getFieldTypesToSuppress (line 172) | String[] getFieldTypesToSuppress();
FILE: powermock-core/src/main/java/org/powermock/mockpolicies/impl/MockPolicyClassLoadingSettingsImpl.java
class MockPolicyClassLoadingSettingsImpl (line 28) | public class MockPolicyClassLoadingSettingsImpl implements MockPolicyCla...
method MockPolicyClassLoadingSettingsImpl (line 32) | public MockPolicyClassLoadingSettingsImpl() {
method getFullyQualifiedNamesOfClassesToLoadByMockClassloader (line 37) | @Override
method getStaticInitializersToSuppress (line 45) | @Override
method addFullyQualifiedNamesOfClassesToLoadByMockClassloader (line 53) | @Override
method addFullyQualifiedNamesOfClassesToLoadByMockClassloader (line 59) | @Override
method addStaticInitializersToSuppress (line 64) | @Override
method addStaticInitializersToSuppress (line 70) | @Override
method setFullyQualifiedNamesOfClassesToLoadByMockClassloader (line 75) | @Override
method setStaticInitializersToSuppress (line 81) | @Override
FILE: powermock-core/src/main/java/org/powermock/mockpolicies/impl/MockPolicyInterceptionSettingsImpl.java
class MockPolicyInterceptionSettingsImpl (line 29) | public class MockPolicyInterceptionSettingsImpl implements MockPolicyInt...
method MockPolicyInterceptionSettingsImpl (line 36) | public MockPolicyInterceptionSettingsImpl() {
method addFieldTypesToSuppress (line 44) | @Override
method addFieldTypesToSuppress (line 50) | @Override
method setFieldTypesToSuppress (line 55) | @Override
method getFieldsToSuppress (line 61) | @Override
method getMethodsToSuppress (line 66) | @Override
method getStubbedMethods (line 71) | @Override
method addFieldToSuppress (line 76) | @Override
method addFieldToSuppress (line 82) | @Override
method addMethodsToSuppress (line 87) | @Override
method addMethodsToSuppress (line 93) | @Override
method stubMethod (line 98) | @Override
method setFieldsSuppress (line 103) | @Override
method setMethodsToSuppress (line 109) | @Override
method setMethodsToStub (line 115) | @Override
method getFieldTypesToSuppress (line 120) | @Override
method addSubtituteReturnValue (line 125) | @Override
method setSubtituteReturnValues (line 130) | @Override
method getSubstituteReturnValues (line 135) | @Override
method getProxiedMethods (line 140) | @Override
method proxyMethod (line 145) | @Override
method setMethodsToProxy (line 150) | @Override
FILE: powermock-core/src/main/java/org/powermock/mockpolicies/support/LogPolicySupport.java
class LogPolicySupport (line 25) | public class LogPolicySupport {
method getLoggerMethods (line 39) | public Method[] getLoggerMethods(String fullyQualifiedClassName, Strin...
method getType (line 62) | public Class<?> getType(String name, String logFramework) throws Excep...
FILE: powermock-core/src/main/java/org/powermock/tests/utils/ArrayMerger.java
type ArrayMerger (line 21) | public interface ArrayMerger {
method mergeArrays (line 26) | <T> T[] mergeArrays(Class<T> type, T[]... arraysToMerge);
FILE: powermock-core/src/main/java/org/powermock/tests/utils/IgnorePackagesExtractor.java
type IgnorePackagesExtractor (line 20) | public interface IgnorePackagesExtractor {
method getPackagesToIgnore (line 25) | String[] getPackagesToIgnore(AnnotatedElement element);
FILE: powermock-core/src/main/java/org/powermock/tests/utils/Keys.java
class Keys (line 21) | public class Keys {
FILE: powermock-core/src/main/java/org/powermock/tests/utils/MockPolicyInitializer.java
type MockPolicyInitializer (line 24) | public interface MockPolicyInitializer {
method initialize (line 34) | void initialize(ClassLoader classLoader);
method needsInitialization (line 36) | boolean needsInitialization();
method isPrepared (line 43) | boolean isPrepared(String fullyQualifiedClassName);
method refreshPolicies (line 54) | void refreshPolicies(ClassLoader classLoader);
FILE: powermock-core/src/main/java/org/powermock/tests/utils/PowerMockTestNotifier.java
type PowerMockTestNotifier (line 28) | public interface PowerMockTestNotifier {
method notifyBeforeTestMethod (line 37) | void notifyBeforeTestMethod(final Object testInstance, final Method te...
method notifyAfterTestMethod (line 47) | void notifyAfterTestMethod(Object testInstance, Method testMethod, Obj...
method notifyAfterTestMethod (line 60) | void notifyAfterTestMethod(boolean successful);
method notifyBeforeTestSuiteStarted (line 68) | void notifyBeforeTestSuiteStarted(final Class<?> testClass, final Meth...
method notifyAfterTestSuiteEnded (line 77) | void notifyAfterTestSuiteEnded(Class<?> testClass, Method[] methods, T...
FILE: powermock-core/src/main/java/org/powermock/tests/utils/RunnerTestSuiteChunker.java
type RunnerTestSuiteChunker (line 27) | public interface RunnerTestSuiteChunker extends TestSuiteChunker {
method createTestDelegators (line 32) | void createTestDelegators(Class<?> testClass, List<TestChunk> chunks) ...
method getTestCount (line 41) | int getTestCount();
FILE: powermock-core/src/main/java/org/powermock/tests/utils/TestChunk.java
type TestChunk (line 25) | public interface TestChunk {
method getClassLoader (line 27) | ClassLoader getClassLoader();
method getTestMethodsToBeExecutedByThisClassloader (line 29) | List<Method> getTestMethodsToBeExecutedByThisClassloader();
method isMethodToBeExecutedByThisClassloader (line 31) | boolean isMethodToBeExecutedByThisClassloader(Method method);
FILE: powermock-core/src/main/java/org/powermock/tests/utils/TestClassesExtractor.java
type TestClassesExtractor (line 20) | public interface TestClassesExtractor {
method getTestClasses (line 26) | String[] getTestClasses(AnnotatedElement element);
method isPrepared (line 28) | boolean isPrepared(AnnotatedElement element, String fullyQualifiedClas...
FILE: powermock-core/src/main/java/org/powermock/tests/utils/TestSuiteChunker.java
type TestSuiteChunker (line 26) | public interface TestSuiteChunker {
method getChunkSize (line 34) | int getChunkSize();
method getTestChunks (line 42) | List<TestChunk> getTestChunks();
method getTestChunksEntries (line 52) | List<TestChunk> getTestChunksEntries(Class<?> testClass);
method getTestChunk (line 60) | TestChunk getTestChunk(Method method);
method shouldExecuteTestForMethod (line 71) | boolean shouldExecuteTestForMethod(Class<?> testClass, Method potentia...
FILE: powermock-core/src/main/java/org/powermock/tests/utils/impl/AbstractCommonTestSuiteChunkerImpl.java
class AbstractCommonTestSuiteChunkerImpl (line 21) | public abstract class AbstractCommonTestSuiteChunkerImpl implements Test...
method AbstractCommonTestSuiteChunkerImpl (line 43) | protected AbstractCommonTestSuiteChunkerImpl(Class<?> testClass) throw...
method AbstractCommonTestSuiteChunkerImpl (line 47) | AbstractCommonTestSuiteChunkerImpl(Class<?>... testClasses) throws Exc...
method getChunkSize (line 54) | @Override
method getTestChunks (line 59) | public List<TestChunk> getTestChunks() {
method getTestChunksEntries (line 67) | public List<TestChunk> getTestChunksEntries(Class<?> testClass) {
method getTestChunk (line 76) | public TestChunk getTestChunk(Method method) {
method chunkClass (line 85) | private void chunkClass(final Class<?> testClass) throws Exception {
method createDefaultMockLoader (line 118) | private ClassLoader createDefaultMockLoader(final Class<?> testClass, ...
method putMethodToChunk (line 131) | private void putMethodToChunk(TestCaseEntry testCaseEntry, Class<?> te...
method createClassLoaderForMethod (line 162) | private ClassLoader createClassLoaderForMethod(final Class<?> testClas...
method testMethodAnnotation (line 178) | protected Class<? extends Annotation> testMethodAnnotation() {
method initEntries (line 182) | private void initEntries(List<TestCaseEntry> entries) {
method findMethods (line 189) | private void findMethods(TestCaseEntry testCaseEntry, Class<?> testCla...
method hasChunkAnnotation (line 200) | private boolean hasChunkAnnotation(Method method) {
method updatedIndexes (line 205) | private void updatedIndexes() {
FILE: powermock-core/src/main/java/org/powermock/tests/utils/impl/AbstractTestClassExtractor.java
class AbstractTestClassExtractor (line 30) | public abstract class AbstractTestClassExtractor implements TestClassesE...
method AbstractTestClassExtractor (line 34) | protected AbstractTestClassExtractor(){
method AbstractTestClassExtractor (line 38) | protected AbstractTestClassExtractor(boolean includeMethods) {this.inc...
method getTestClasses (line 45) | @Override
method extractClassesFromTestClass (line 56) | private void extractClassesFromTestClass(final Class<?> element, Set<S...
method lookOverMethods (line 67) | private Collection<String> lookOverMethods(Class<?> classToInvestigate) {
method extractClassesAndAddThemToList (line 75) | private void extractClassesAndAddThemToList(AnnotatedElement elementTo...
method getClassesToModify (line 91) | protected abstract String[] getClassesToModify(AnnotatedElement element);
method isPrepared (line 93) | @Override
FILE: powermock-core/src/main/java/org/powermock/tests/utils/impl/AbstractTestSuiteChunkerImpl.java
class AbstractTestSuiteChunkerImpl (line 43) | public abstract class AbstractTestSuiteChunkerImpl<T> extends AbstractCo...
method AbstractTestSuiteChunkerImpl (line 56) | protected AbstractTestSuiteChunkerImpl(Class<?> testClass) throws Exce...
method AbstractTestSuiteChunkerImpl (line 60) | protected AbstractTestSuiteChunkerImpl(Class<?>... testClasses) throws...
method getPowerMockTestListenersLoadedByASpecificClassLoader (line 64) | protected Object getPowerMockTestListenersLoadedByASpecificClassLoader...
method createTestDelegators (line 103) | public final void createTestDelegators(Class<?> testClass, List<TestCh...
method createDelegatorFromClassloader (line 113) | protected abstract T createDelegatorFromClassloader(ClassLoader classL...
method getInternalTestIndex (line 133) | public int getInternalTestIndex(int originalTestIndex) {
method getDelegatorIndex (line 154) | public int getDelegatorIndex(int testIndex) {
method getTestClasses (line 172) | protected Class<?>[] getTestClasses() {
FILE: powermock-core/src/main/java/org/powermock/tests/utils/impl/ArrayMergerImpl.java
class ArrayMergerImpl (line 25) | public class ArrayMergerImpl implements ArrayMerger {
method mergeArrays (line 27) | @SuppressWarnings("unchecked")
FILE: powermock-core/src/main/java/org/powermock/tests/utils/impl/MockPolicyInitializerImpl.java
class MockPolicyInitializerImpl (line 42) | public class MockPolicyInitializerImpl implements MockPolicyInitializer {
method MockPolicyInitializerImpl (line 48) | public MockPolicyInitializerImpl(Class<? extends PowerMockPolicy>[] mo...
method MockPolicyInitializerImpl (line 52) | public MockPolicyInitializerImpl(Class<?> testClass) {
method MockPolicyInitializerImpl (line 56) | private MockPolicyInitializerImpl(Class<? extends PowerMockPolicy>[] m...
method MockPolicyInitializerImpl (line 60) | private MockPolicyInitializerImpl(Class<? extends PowerMockPolicy>[] m...
method getMockPolicies (line 81) | @SuppressWarnings("unchecked")
method isPrepared (line 91) | @Override
method needsInitialization (line 100) | @Override
method initialize (line 106) | @Override
method initialize (line 113) | private void initialize(MockClassLoader classLoader) {
method updateClassLoaderConfiguration (line 120) | private void updateClassLoaderConfiguration(MockClassLoaderConfigurati...
method refreshPolicies (line 146) | @Override
method invokeInitializeInterceptionSettingsFromClassLoader (line 153) | private void invokeInitializeInterceptionSettingsFromClassLoader(MockC...
method initializeInterceptionSettings (line 185) | @SuppressWarnings("unused")
method getInterceptionSettings (line 212) | private MockPolicyInterceptionSettings getInterceptionSettings() {
method getClassLoadingSettings (line 220) | private MockPolicyClassLoadingSettings getClassLoadingSettings() {
FILE: powermock-core/src/main/java/org/powermock/tests/utils/impl/PowerMockIgnorePackagesExtractorImpl.java
class PowerMockIgnorePackagesExtractorImpl (line 31) | public class PowerMockIgnorePackagesExtractorImpl implements IgnorePacka...
method getPackagesToIgnore (line 33) | @Override
method getPackageToIgnoreWithGlobal (line 54) | private String[] getPackageToIgnoreWithGlobal(final String[] packageTo...
method getGlobalIgnore (line 67) | private String[] getGlobalIgnore() {
method extractPackageToIgnore (line 72) | private boolean extractPackageToIgnore(final AnnotatedElement element,...
method addValuesFromSuperclass (line 79) | private boolean addValuesFromSuperclass(final Class<?> element, final...
method addValueFromAnnotation (line 95) | private boolean addValueFromAnnotation(final AnnotatedElement element,...
method addGlobalIgnore (line 107) | private String[] addGlobalIgnore(final String[] packageToIgnore, final...
FILE: powermock-core/src/main/java/org/powermock/tests/utils/impl/PowerMockTestNotifierImpl.java
class PowerMockTestNotifierImpl (line 33) | public class PowerMockTestNotifierImpl implements PowerMockTestNotifier {
method PowerMockTestNotifierImpl (line 45) | public PowerMockTestNotifierImpl(PowerMockTestListener[] powerMockTest...
method notifyAfterTestMethod (line 53) | @Override
method notifyAfterTestSuiteEnded (line 64) | @Override
method notifyBeforeTestMethod (line 75) | @Override
method notifyBeforeTestSuiteStarted (line 89) | @Override
method notifyAfterTestMethod (line 100) | @Override
FILE: powermock-core/src/main/java/org/powermock/tests/utils/impl/PrepareForTestExtractorImpl.java
class PrepareForTestExtractorImpl (line 35) | public class PrepareForTestExtractorImpl extends AbstractTestClassExtrac...
method PrepareForTestExtractorImpl (line 37) | public PrepareForTestExtractorImpl(){
method PrepareForTestExtractorImpl (line 41) | public PrepareForTestExtractorImpl(boolean includeMethods) {
method getClassesToModify (line 45) | @Override
method addTestCase (line 84) | private void addTestCase(Set<String> all, AnnotatedElement element) {
method addFullyQualifiedNames (line 94) | private void addFullyQualifiedNames(Set<String> all, PrepareForTest an...
method addFullyQualifiedNames (line 99) | private void addFullyQualifiedNames(Set<String> all, PrepareOnlyThisFo...
method addFullyQualifiedNames (line 104) | private void addFullyQualifiedNames(Set<String> all, String[] fullyQua...
method addClassHierarchy (line 112) | private void addClassHierarchy(Set<String> all, Class<?> classToMock) {
method addInnerClassesAndInterfaces (line 120) | private void addInnerClassesAndInterfaces(Set<String> all, Class<?> cl...
FILE: powermock-core/src/main/java/org/powermock/tests/utils/impl/StaticConstructorSuppressExtractorImpl.java
class StaticConstructorSuppressExtractorImpl (line 31) | public class StaticConstructorSuppressExtractorImpl extends AbstractTest...
method getClassesToModify (line 33) | @Override
FILE: powermock-core/src/main/java/org/powermock/tests/utils/impl/TestCaseEntry.java
class TestCaseEntry (line 26) | public class TestCaseEntry {
method TestCaseEntry (line 31) | public TestCaseEntry(Class<?> testClass, List<TestChunk> chunks) {
method getTestChunks (line 36) | public List<TestChunk> getTestChunks() {
method getTestClass (line 40) | public Class<?> getTestClass() {
FILE: powermock-core/src/main/java/org/powermock/tests/utils/impl/TestChunkImpl.java
class TestChunkImpl (line 27) | public class TestChunkImpl implements TestChunk {
method TestChunkImpl (line 32) | public TestChunkImpl(ClassLoader classLoader, List<Method> testMethods...
method getClassLoader (line 37) | @Override
method getTestMethodsToBeExecutedByThisClassloader (line 42) | @Override
method isMethodToBeExecutedByThisClassloader (line 47) | @Override
method toString (line 52) | @Override
FILE: powermock-core/src/main/java/org/powermock/utils/ArrayUtil.java
class ArrayUtil (line 26) | public class ArrayUtil {
method addAll (line 28) | public static <T> T[] addAll(T[] array1, T[] array2) {
method isEmpty (line 41) | private static <T> boolean isEmpty(T[] a) {
method clone (line 45) | public static <T> T[] clone(T[] array) {
method createNewArrayWithSameType (line 52) | @SuppressWarnings("unchecked")
method mergeArrays (line 57) | public static String[] mergeArrays(final String[] firstArray, final St...
FILE: powermock-core/src/main/java/org/powermock/utils/Asserts.java
class Asserts (line 24) | public class Asserts {
method assertNotNull (line 26) | public static void assertNotNull(Object value, String message){
method internalAssertNotNull (line 32) | public static void internalAssertNotNull(Object value, String message){
FILE: powermock-core/src/main/java/org/powermock/utils/IOUtils.java
class IOUtils (line 28) | public class IOUtils {
method copyFileUsingStream (line 30) | public static void copyFileUsingStream(File source, File dest) throws ...
FILE: powermock-core/src/main/java/org/powermock/utils/JavaVersion.java
type JavaVersion (line 3) | public enum JavaVersion {
method JavaVersion (line 114) | JavaVersion(final float value, final String name) {
method atLeast (line 129) | public boolean atLeast(final JavaVersion requiredVersion) {
method get (line 142) | static JavaVersion get(final String nom) {
method toString (line 196) | @Override
method maxVersion (line 206) | private static float maxVersion() {
method toFloatVersion (line 220) | private static float toFloatVersion(final String value) {
FILE: powermock-core/src/main/java/org/powermock/utils/NumberUtils.java
class NumberUtils (line 3) | public class NumberUtils {
method toFloat (line 4) | public static float toFloat(final String str, final float defaultValue) {
FILE: powermock-core/src/main/java/org/powermock/utils/StringJoiner.java
class StringJoiner (line 23) | public class StringJoiner {
method join (line 29) | public static String join(Object... linesToBreak) {
method join (line 34) | public static <T> String join(List<T> list) {
method join (line 39) | public static String join(String separator, Object... linesToBreak) {
method join (line 44) | private static String join(StringBuilder out, Iterable linesToBreak, f...
FILE: powermock-core/src/test/java/org/powermock/WildcardMatcherTest.java
class WildcardMatcherTest (line 24) | public class WildcardMatcherTest {
method matchesWildcardOnBothEnds (line 26) | @Test
method matchesWildcardSuffix (line 31) | @Test
method doesntMatchWildcardPrefix (line 36) | @Test
method convertsDotsAndWildcardsToRegExp (line 41) | @Test
method noWildcardCardPrefix (line 46) | @Test
method exactMatch (line 50) | @Test
FILE: powermock-core/src/test/java/org/powermock/configuration/support/ConfigurationBuilderTest.java
class ConfigurationBuilderTest (line 29) | public class ConfigurationBuilderTest {
method should_create_configuration_from_file (line 35) | @Test
method should_read_mock_maker_class_from_configuration (line 46) | @Test
method should_not_read_mock_maker_class_from_configuration_without_prefix (line 56) | @Test
method should_return_empty_configuration__when_configuration_file_non_exist (line 66) | @Test
method should_return_real_value_instead_alias (line 78) | @Test
method should_read_powermock_global_ignore_as_array (line 92) | @Test
FILE: powermock-core/src/test/java/org/powermock/configuration/support/ConfigurationFactoryImplTest.java
class ConfigurationFactoryImplTest (line 33) | @RunWith(Enclosed.class)
class SystemPropertiesCases (line 36) | public static class SystemPropertiesCases {
method setUp (line 43) | @Before
method should_read_byte_code_framework_from_environment_variable_if_defined (line 51) | @Test
class FileCases (line 68) | public static class FileCases {
method setUp (line 72) | @Before
method should_return_configuration_from_file_if_configuration_file_exist (line 80) | @Test
method should_return_default_configuration_if_configuration_file_not_exist (line 96) | @Test
method should_return_default_value_for_configuration_if_value_in_user_configuration_is_not_defined (line 112) | @Test
FILE: powermock-core/src/test/java/org/powermock/core/classloader/Collaborator.java
class Collaborator (line 18) | public class Collaborator {
method doStuff (line 21) | public void doStuff(int indx) {
FILE: powermock-core/src/test/java/org/powermock/core/classloader/HardToTransform.java
class HardToTransform (line 18) | public class HardToTransform {
method run (line 19) | public void run() {
method testInt (line 25) | public int testInt() {
method testDouble (line 28) | public double testDouble() {
method testFloat (line 31) | public float testFloat() {
method testLong (line 34) | public long testLong() {
method testShort (line 37) | public short testShort() {
method testByte (line 40) | public byte testByte() {
method testBoolean (line 43) | public boolean testBoolean() {
method testChar (line 46) | public char testChar() {
method testString (line 50) | public String testString() {
FILE: powermock-core/src/test/java/org/powermock/core/classloader/MockClassLoaderBuilderTest.java
class MockClassLoaderBuilderTest (line 22) | public class MockClassLoaderBuilderTest {
method should_create_instance_of_MockClassLoader_depends_on_provided_bytecode_framework (line 24) | @Test
method should_create_transformer_chain_depends_on_provided_bytecode_framework (line 34) | @Test
method should_set_test_class_to_TestClassAwareTransformers (line 45) | @Test
method should_throw_internal_exception_if_test_class_is_null (line 61) | @Test
method assertThatJavassistMockTransformerChainCreated (line 75) | private void assertThatJavassistMockTransformerChainCreated(final Mock...
method assertThatMockTransformerChainWorksWithExpectedClassRepresentation (line 80) | private void assertThatMockTransformerChainWorksWithExpectedClassRepre...
class SpyMockTransformer (line 102) | private static class SpyMockTransformer<T> implements MockTransformer<...
method transform (line 106) | @Override
method setTestClass (line 111) | @Override
FILE: powermock-core/src/test/java/org/powermock/core/classloader/MockClassLoaderConfigurationTest.java
class MockClassLoaderConfigurationTest (line 27) | public class MockClassLoaderConfigurationTest {
method setUp (line 31) | @Before
method should_add_ignoredPackage_to_defer (line 36) | @Test
method classes_to_modify_should_have_precedence_over_package_to_ignore (line 49) | @Test
method classes_from_packages_to_modify_should_modify (line 58) | @Test
FILE: powermock-core/src/test/java/org/powermock/core/classloader/MockClassLoaderFactoryTest.java
class MockClassLoaderFactoryTest (line 30) | @RunWith(Enclosed.class)
class AnnotationTestOnClassLevelCases (line 33) | @RunWith(Parameterized.class)
method AnnotationTestOnClassLevelCases (line 36) | public AnnotationTestOnClassLevelCases(final Class<?> testClass, Str...
method should_extract_classes_to_modify_from_class_level_annotation (line 40) | @Test
class AnnotationOnMethodLevelCases (line 55) | @RunWith(Parameterized.class)
method parameters (line 58) | @Parameters(name = "Test parameter: {0}")
method AnnotationOnMethodLevelCases (line 69) | public AnnotationOnMethodLevelCases(final Class<?> testClass, String...
method should_extract_classes_to_modify_method_level_annotation_if_exist (line 73) | @Test
class DifferentByteCodeFrameworkCases (line 91) | @RunWith(Parameterized.class)
method parameters (line 93) | @Parameters(name = "Test parameter: {0}")
method DifferentByteCodeFrameworkCases (line 107) | public DifferentByteCodeFrameworkCases(final Class<?> testClass, fin...
method setUp (line 112) | @Before
method should_create_a_correct_instance_of_class_loader_depends_on_PrepareForTest_parameter_of_class (line 117) | @Test
method should_create_a_correct_instance_of_class_loader_depends_on_PrepareForTest_parameter_of_method (line 124) | @Test
method should_create_a_correct_instance_of_class_loader_depends_and_use_PrepareForTest_from_class_if_method_does_not_have_annotation (line 133) | @Test
class ExceptionCases (line 144) | public static class ExceptionCases{
method setUp (line 149) | @Before
method should_throw_exception_if_trying_to_create_an_instance_of_class_loader_for_method_without_annotations_and_class_without_annotation (line 155) | @Test
class BasePrepareForTestCases (line 171) | public abstract static class BasePrepareForTestCases {
method parameters (line 173) | @Parameters(name = "Test parameter: {0}")
method BasePrepareForTestCases (line 189) | BasePrepareForTestCases(final Class<?> testClass, String expectedCla...
method setUp (line 194) | @Before
class TestContainer (line 200) | @SuppressWarnings("WeakerAccess")
class JavassistTestClass (line 203) | @PrepareForTest(SupportClasses.class)
method someTestWithPrepareForTest (line 206) | @Test
method someTestWithoutPrepareForTest (line 211) | @Test
class PrepareEverythingForTestTestClass (line 217) | @PrepareEverythingForTest
method someTestWithPrepareForTest (line 220) | @Test
method someTestWithoutPrepareForTest (line 225) | @Test
class SuppressStaticInitializationForTestClass (line 232) | @SuppressStaticInitializationFor("SupportClasses.FinalInnerClass")
method someTestWithPrepareForTest (line 235) | @Test
method someTestWithoutPrepareForTest (line 240) | @Test
class ExceptionTestClass (line 246) | public static class ExceptionTestClass {
method someTestWithoutPrepareForTest (line 247) | @Test
FILE: powermock-core/src/test/java/org/powermock/core/classloader/MockClassLoaderTest.java
class MockClassLoaderTest (line 52) | @RunWith(Parameterized.class)
method data (line 56) | @Parameterized.Parameters(name = "ClassLoader: {0}")
method MockClassLoaderTest (line 69) | public MockClassLoaderTest(Class<? extends MockClassLoader> clazz, Moc...
method should_load_and_modify_class_from_package_which_specified (line 77) | @Test
method should_load_and_not_modify_class_from_package_which_are_not_specified_as_ignored_or_class_to_mock (line 94) | @Test
method should_load_system_classes (line 109) | @Test
method should_load_defined_class (line 121) | @Test
method should_ignore_pagackage_added_powerMockIgnore_Annotated (line 136) | @Test
method powerMockIgnoreAnnotatedPackagesHavePrecedenceOverPrepareEverythingForTest (line 147) | @Test
method should_find_and_return_a_one_resource_which_exist (line 157) | @Test
method should_find_and_return_resources_which_exist (line 172) | @Test
method resourcesNotDoubled (line 187) | @Test
method canFindDynamicClassFromAdjustedClasspath (line 200) | @Test
method should_throw_ClassNotFoundException_if_cannot_find_dynamic_class_in_deferred_class_loader (line 229) | @Test(expected = ClassNotFoundException.class)
method should_autobox_primitive_values (line 247) | @Test
method assertThatInstanceCouldBeCreateAndMethodReturnMockedValue (line 269) | private void assertThatInstanceCouldBeCreateAndMethodReturnMockedValue...
method assertThatInstanceCouldBeCreateAndMethodReturnNotMockedValue (line 281) | private void assertThatInstanceCouldBeCreateAndMethodReturnNotMockedVa...
method assertClassIsLoaded (line 293) | private void assertClassIsLoaded(final Class<?> clazz, final MockClass...
class MyClassPathAdjuster (line 305) | public static class MyClassPathAdjuster implements ClassPathAdjuster {
method adjustClassPath (line 306) | public void adjustClassPath(ClassPool classPool) {
class DynamicClassHolder (line 312) | static class DynamicClassHolder {
class TestUseClassPathAdjuster (line 329) | public static class TestUseClassPathAdjuster implements UseClassPathAd...
method annotationType (line 330) | public Class<? extends Annotation> annotationType() {
method value (line 334) | public Class<? extends ClassPathAdjuster> value() {
class JavassistMockTransformer (line 339) | private static class JavassistMockTransformer implements MockTransform...
method transform (line 341) | @Override
FILE: powermock-core/src/test/java/org/powermock/core/classloader/ResourcePrefixClassLoader.java
class ResourcePrefixClassLoader (line 7) | @SuppressWarnings("SameParameterValue")
method ResourcePrefixClassLoader (line 12) | public ResourcePrefixClassLoader(ClassLoader parent, String prefix) {
method findResources (line 17) | @Override
method findResource (line 23) | @Override
FILE: powermock-core/src/test/java/org/powermock/core/test/ClassLoaderTestHelper.java
class ClassLoaderTestHelper (line 34) | public class ClassLoaderTestHelper {
method loadWithMockClassLoader (line 42) | public static Class<?> loadWithMockClassLoader(final String className,...
method loadWithMockClassLoader (line 54) | public static Class<?> loadWithMockClassLoader(final String className,...
method getMockClassLoader (line 64) | private static MockClassLoader getMockClassLoader(final MockTransforme...
method runTestWithNewClassLoader (line 85) | public static void runTestWithNewClassLoader(ClassPool classPool, Stri...
method clearCache (line 91) | public static void clearCache() {
FILE: powermock-core/src/test/java/org/powermock/core/test/ContainsCondition.java
class ContainsCondition (line 9) | public class ContainsCondition extends Condition<Object> {
method contains (line 11) | public static ContainsCondition contains(final String expectedClassToM...
method ContainsCondition (line 17) | private ContainsCondition(final String expectedClassToModify) {
method matches (line 22) | @Override
FILE: powermock-core/src/test/java/org/powermock/core/test/MockClassLoaderFactory.java
class MockClassLoaderFactory (line 29) | public class MockClassLoaderFactory {
method MockClassLoaderFactory (line 33) | public MockClassLoaderFactory(Class<? extends MockClassLoader> classLo...
method getInstance (line 37) | public MockClassLoader getInstance(String[] classesToMock,
method getInstance (line 43) | public MockClassLoader getInstance(String[] classesToMock) throws Ille...
method getInstance (line 48) | private MockClassLoader getInstance(MockClassLoaderConfiguration confi...
method isByteBuddy (line 53) | public boolean isByteBuddy(){
method toString (line 57) | @Override
FILE: powermock-core/src/test/java/org/powermock/core/testlisteners/GlobalNotificationBuildSupportTest.java
class GlobalNotificationBuildSupportTest (line 38) | @SuppressWarnings({"SameParameterValue", "ResultOfMethodCallIgnored"})
class NormalClass (line 45) | @SuppressWarnings("SameParameterValue")
method NormalClass (line 52) | NormalClass(String dummy) {
method NormalClass (line 56) | public NormalClass() {
class SubClass (line 62) | @SuppressWarnings("SameParameterValue")
method SubClass (line 64) | public SubClass() {
method SubClass (line 67) | public SubClass(String dummy) {
method nestedClassName (line 71) | private String nestedClassName(String localName) {
method assertNotificationOf (line 75) | private void assertNotificationOf(NormalClass normalInstance) {
method normalClassCreation (line 80) | @Test
method removeAllFromConcurrentHashMap (line 120) | @Test
method closeTestSuite (line 133) | @AfterClass
FILE: powermock-core/src/test/java/org/powermock/core/transformers/AbstractBaseMockTransformerTest.java
class AbstractBaseMockTransformerTest (line 34) | @RunWith(Parameterized.class)
method AbstractBaseMockTransformerTest (line 44) | AbstractBaseMockTransformerTest(final TransformStrategy strategy,
method setUp (line 52) | @Before
method loadWithMockClassLoader (line 59) | protected Class<?> loadWithMockClassLoader(final String name) throws E...
method loadWithMockClassLoader (line 63) | protected Class<?> loadWithMockClassLoader(final CtClass ctClass) thro...
method wrap (line 67) | ClassWrapper<CtClass> wrap(final CtClass ctClass) {
method assumeClassLoaderMode (line 71) | protected void assumeClassLoaderMode() {
method assumeAgentMode (line 75) | protected void assumeAgentMode() {
method assumeClassLoaderIsByteBuddy (line 79) | protected void assumeClassLoaderIsByteBuddy() {
method setTestClassToTransformers (line 87) | protected void setTestClassToTransformers(final Class<?> testClass) {
FILE: powermock-core/src/test/java/org/powermock/core/transformers/ClassFinalModifierMockTransformerTest.java
class ClassFinalModifierMockTransformerTest (line 40) | public class ClassFinalModifierMockTransformerTest extends AbstractBaseM...
method data (line 42) | @Parameterized.Parameters(name = "strategy: {0}, transformerType: {2}")
method ClassFinalModifierMockTransformerTest (line 51) | public ClassFinalModifierMockTransformerTest(
method should_remove_final_modifier_from_static_final_inner_classes_strategy_not_equals_to_inst_redefine (line 59) | @Test
method should_nit_remove_final_modifier_from_static_final_inner_classes_equals_to_inst_redefine (line 69) | @Test
method should_remove_final_modifier_from_final_inner_classes (line 79) | @Test
method should_remove_final_modifier_from_enums (line 88) | @Test
method should_remove_final_modifier_from_private_static_final_inner_classes (line 97) | @Test
method should_ignore_interfaces (line 106) | @Test
FILE: powermock-core/src/test/java/org/powermock/core/transformers/ConstructorCallMockTransformerTest.java
class ConstructorCallMockTransformerTest (line 58) | public class ConstructorCallMockTransformerTest extends AbstractBaseMock...
method data (line 60) | @Parameterized.Parameters(name = "strategy: {0}, transformerType: {2}")
method ConstructorCallMockTransformerTest (line 69) | public ConstructorCallMockTransformerTest(final TransformStrategy stra...
method should_not_change_constructors_of_test_class (line 76) | @Test
method should_not_change_constructors_of_nested_test_classes (line 100) | @Test
method should_add_additional_defer_constructor_which_call_default_if_parent_Object_and_strategy_classloader (line 123) | @Test
method should_add_additional_defer_constructor_which_call_default_if_parent_not_Object_and_strategy_classloader (line 140) | @Test
method should_not_add_additional_defer_constructor_if_strategy_is_not_classloader (line 156) | @Test
method should_not_add_defer_constructor_to_interface (line 167) | @Test
method should_not_add_defer_constructor_to_enum (line 176) | @Test
method should_suppress_call_to_super_constructor_if_getaway_return_SUPPRESS (line 185) | @Test
method should_not_suppress_call_to_super_constructor_if_getaway_return_PROCEED (line 211) | @Test
method should_provide_correct_constructor_param_and_arguments (line 238) | @Test
method should_provide_correct_constructor_param_and_arguments_when_cast_required (line 263) | @Test
method should_provide_correct_constructor_param_and_arguments_when_parameters_vararg (line 298) | @Test
method assertThatCorrectConstructorTypeProvided (line 333) | private void assertThatCorrectConstructorTypeProvided() {
method reloadClass (line 340) | private Class<?> reloadClass(final Class<?> originalClazz) throws Exce...
FILE: powermock-core/src/test/java/org/powermock/core/transformers/ConstructorModifiersMockTransformerTest.java
class ConstructorModifiersMockTransformerTest (line 41) | public class ConstructorModifiersMockTransformerTest extends AbstractBas...
method data (line 43) | @Parameterized.Parameters(name = "strategy: {0}, transformerType: {2}")
method ConstructorModifiersMockTransformerTest (line 52) | public ConstructorModifiersMockTransformerTest(final TransformStrategy...
method should_make_all_constructor_public_if_strategy_is_classloader (line 59) | @Test
method should_leave_constructor_unchanged_if_strategy_is_not_classloader (line 73) | @Test
method should_not_change_constructors_of_test_class (line 84) | @Test
method should_not_change_constructors_of_nested_test_classes (line 98) | @Test
method assertThatAllConstructorsHaveSameModifier (line 112) | private void assertThatAllConstructorsHaveSameModifier(final Class<?> ...
FILE: powermock-core/src/test/java/org/powermock/core/transformers/InstrumentMockTransformerTest.java
class InstrumentMockTransformerTest (line 40) | public class InstrumentMockTransformerTest extends AbstractBaseMockTrans...
method data (line 44) | @Parameterized.Parameters(name = "strategy: {0}, transformer: {1}")
method InstrumentMockTransformerTest (line 51) | public InstrumentMockTransformerTest(final TransformStrategy strategy,...
method should_ignore_call_to_synthetic_field_when_instrument_call_to_method (line 56) | @Test
method prepareClassesForFieldTests (line 67) | private CtClass prepareClassesForFieldTests(ClassPool classPool) throw...
method insertCallSyntheticField (line 76) | private void insertCallSyntheticField(CtClass ctClass) throws CannotCo...
method addSyntheticField (line 90) | private void addSyntheticField(ClassPool classPool,
class ShouldIgnoreCallToSyntheticField (line 99) | public static class ShouldIgnoreCallToSyntheticField {
method main (line 100) | public static void main(String[] args) throws Exception {
FILE: powermock-core/src/test/java/org/powermock/core/transformers/MethodSizeMockTransformerTest.java
class MethodSizeMockTransformerTest (line 37) | public class MethodSizeMockTransformerTest extends AbstractBaseMockTrans...
method data (line 40) | @Parameterized.Parameters(name = "strategy: {0}, transformer: {1}")
method MethodSizeMockTransformerTest (line 55) | public MethodSizeMockTransformerTest(final TransformStrategy strategy,
method should_load_class_with_method_lower_than_jvm_limit (line 62) | @Test
method should_load_class_and_override_method_greater_than_jvm_limit (line 70) | @Test
FILE: powermock-core/src/test/java/org/powermock/core/transformers/MethodsMockTransformerTest.java
class MethodsMockTransformerTest (line 53) | public class MethodsMockTransformerTest extends AbstractBaseMockTransfor...
method data (line 55) | @Parameterized.Parameters(name = "strategy: {0}, transformer: {1}")
method MethodsMockTransformerTest (line 64) | public MethodsMockTransformerTest(final TransformStrategy strategy, fi...
method should_skip_call_to_void_private_method_if_getaway_return_not_PROCEED (line 69) | @Test
method should_skip_call_to_void_public_method_if_getaway_return_not_PROCEED (line 88) | @Test
method should_skip_call_to_final_void_public_method_if_getaway_return_not_PROCEED (line 109) | @Test
method should_invoke_real_final_void_public_method_if_getaway_return_PROCEED (line 129) | @Test
method should_return_value_from_getaway_for_non_void_methods_is_it_is_not_PROCEED (line 149) | @Test
method should_return_value_from_getaway_for_final_non_void_methods_is_it_is_not_PROCEED (line 168) | @Test
method should_return_value_from_getaway_for_final_private_non_void_methods_is_it_is_not_PROCEED (line 187) | @Test
method should_return_real_method_return_value_for_non_void_methods_if_getaway_returns_PROCEED (line 206) | @Test
method should_return_real_method_return_value_for_final_non_void_methods_if_getaway_returns_PROCEED (line 226) | @Test
method should_ignore_abstract_methods (line 246) | @Test
method should_modify_bridge_methods (line 261) | @Test
method should_ignore_synthetic_non_bridge_methods (line 274) | @Test
method should_ignore_call_to_synthetic_non_bridge_methods (line 303) | @Test
method prepareClassesForTest (line 323) | private CtClass prepareClassesForTest(ClassPool classPool,
method addSyntheticMethod (line 331) | private void addSyntheticMethod(ClassPool classPool,
FILE: powermock-core/src/test/java/org/powermock/core/transformers/MockTransformerChainTest.java
class MockTransformerChainTest (line 27) | public class MockTransformerChainTest {
method should_call_all_transformer_when_chain_is_called (line 29) | @Test
method should_return_collection_of_mock_transformer_which_fit_predicate (line 46) | @Test
class MockTransformerSpy (line 63) | private static class MockTransformerSpy implements MockTransformer<Obj...
method transform (line 66) | @Override
method assertIsCalled (line 72) | private void assertIsCalled(){
class DummyClassWrapper (line 77) | private static class DummyClassWrapper implements ClassWrapper<Object> {
method isInterface (line 78) | @Override
method unwrap (line 83) | @Override
method wrap (line 88) | @Override
class FitPredicateMockTransformer (line 94) | private static class FitPredicateMockTransformer implements MockTransf...
method transform (line 96) | @Override
method setTestClass (line 101) | @Override
FILE: powermock-core/src/test/java/org/powermock/core/transformers/MockTransformerTestHelper.java
class MockTransformerTestHelper (line 34) | class MockTransformerTestHelper {
method createTransformerTestData (line 36) | static Collection<Object[]> createTransformerTestData(final Class<?>.....
method createTransformerTestDataWithMockGateway (line 40) | static Collection<Object[]> createTransformerTestDataWithMockGateway(f...
method createOneTransformerTestData (line 58) | static Collection<Object[]> createOneTransformerTestData(final Class<?...
method createOneTransformerTestData (line 62) | static Collection<Object[]> createOneTransformerTestData(final Class<?...
method createClassLoaderFactory (line 78) | private static MockClassLoaderFactory createClassLoaderFactory(final C...
method createTransformers (line 85) | private static List<MockTransformerChain> createTransformers(final Cla...
method getInstance (line 96) | private static MockTransformer getInstance(final Class<?> mockGateway,...
method createChainFrom (line 119) | private static MockTransformerChain createChainFrom(final MockTransfor...
FILE: powermock-core/src/test/java/org/powermock/core/transformers/NativeMethodsMockTransformerTest.java
class NativeMethodsMockTransformerTest (line 42) | public class NativeMethodsMockTransformerTest extends AbstractBaseMockTr...
method data (line 44) | @Parameterized.Parameters(name = "strategy: {0}, transformer: {1}")
method NativeMethodsMockTransformerTest (line 53) | public NativeMethodsMockTransformerTest(final TransformStrategy strate...
method should_return_value_from_getaway_for_native_instance_methods_is_it_is_not_PROCEED (line 58) | @Test
method should_return_value_from_getaway_for_native_static_methods_if_it_is_not_PROCEED (line 79) | @Test
method should_throw_UnsupportedOperationException_for_native_instance_if_it_is_PROCEED (line 98) | @Test
method should_throw_UnsupportedOperationException_for_native_static_if_it_is_PROCEED (line 116) | @Test
method should_not_handle_hashCode_form_Object (line 133) | @Test
method should_throw_UnsupportedOperationException_for_native_method_of_parent_instance_if_it_is_PROCEED (line 147) | @Test
FILE: powermock-core/src/test/java/org/powermock/core/transformers/StaticFinalFieldsMockTransformerTest.java
class StaticFinalFieldsMockTransformerTest (line 39) | public class StaticFinalFieldsMockTransformerTest extends AbstractBaseMo...
method data (line 41) | @Parameterized.Parameters(name = "strategy: {0}, transformerType: {2}")
method StaticFinalFieldsMockTransformerTest (line 50) | public StaticFinalFieldsMockTransformerTest(final TransformStrategy st...
method should_remove_final_modifier_from_static_final_field_if_strategy_not_redefine (line 56) | @Test
method should_not_remove_final_modifier_from_static_final_field_if_strategy_redefine (line 67) | @Test
method should_remove_only_final_modifier_but_keep_transient (line 78) | @Test
method assertThatFieldIsFinal (line 92) | private void assertThatFieldIsFinal(final Class<?> clazz, final String...
method assertThatFieldIsNotFinal (line 104) | private void assertThatFieldIsNotFinal(final Class<?> clazz, final Str...
FILE: powermock-core/src/test/java/org/powermock/core/transformers/StaticMethodsMockTransformerTest.java
class StaticMethodsMockTransformerTest (line 38) | public class StaticMethodsMockTransformerTest extends AbstractBaseMockTr...
method data (line 40) | @Parameterized.Parameters(name = "strategy: {0}, transformer: {1}")
method StaticMethodsMockTransformerTest (line 49) | public StaticMethodsMockTransformerTest(final TransformStrategy strate...
method should_skip_call_to_void_static_public_method_if_getaway_return_not_PROCEED (line 54) | @Test
method should_continue_executing_void_static_public_method_if_getaway_return_PROCEED (line 71) | @Test
FILE: powermock-core/src/test/java/org/powermock/core/transformers/SuppressStaticInitializerMockTransformerTest.java
class SuppressStaticInitializerMockTransformerTest (line 39) | public class SuppressStaticInitializerMockTransformerTest extends Abstra...
method data (line 42) | @Parameterized.Parameters(name = "strategy: {0}, transformerType: {2}")
method SuppressStaticInitializerMockTransformerTest (line 51) | public SuppressStaticInitializerMockTransformerTest(
method setUp (line 59) | @Before
method should_suppress_static_initialization_if_class_is_added_to_mock_repository (line 65) | @Test
method should_not_suppress_static_initialization_if_class_is_not_added_to_mock_repository (line 82) | @Test
method should_not_suppress_static_initialization_if_class_is_added_to_mock_repository_but_strategy_not_classloader (line 95) | @Test
FILE: powermock-core/src/test/java/org/powermock/core/transformers/TestClassTransformerTest.java
class TestClassTransformerTest (line 48) | @RunWith(Parameterized.class)
method values (line 57) | @Parameterized.Parameters(name = "{0}-{1}")
method setUp (line 71) | @Before
method should_make_defer_constructor_non_public_for_inner_classes (line 76) | @Test
method should_restore_original_constructors_accesses (line 108) | @Test
method should_remove_test_annotation_from_all_method (line 136) | @Test
method should_not_remove_test_annotation_from_all_method_if_nested_class_in_test_class (line 158) | @Test
type MockClassLoaderCase (line 181) | enum MockClassLoaderCase {
method chooseTestClass (line 183) | @Override
method preparations (line 188) | @Override
method chooseTestClass (line 194) | @Override
method preparations (line 204) | @Override
method chooseTestClass (line 210) | abstract Class<?> chooseTestClass(Class<?> prepare4test);
method preparations (line 212) | abstract String[] preparations(Class<?> prepare4test);
method createMockClassLoaderThatPrepare (line 214) | MockClassLoader createMockClassLoaderThatPrepare(Class<?> prepare4te...
FILE: powermock-core/src/test/java/org/powermock/core/transformers/javassist/TestPrimitives.java
class TestPrimitives (line 29) | @RunWith(Parameterized.class)
method TestPrimitives (line 34) | public TestPrimitives(CtPrimitiveType ctType) {
method values (line 38) | @Parameterized.Parameters(name = "{0}")
method testMapping (line 49) | @Test
FILE: powermock-core/src/test/java/org/powermock/core/transformers/mock/MockGatewaySpy.java
class MockGatewaySpy (line 15) | public class MockGatewaySpy {
method constructorCall (line 23) | public static Object constructorCall(Class<?> type, Object[] args, Cla...
method suppressConstructorCall (line 32) | public static boolean suppressConstructorCall(Class<?> type, Object[] ...
method methodCall (line 36) | public static Object methodCall(Object instance, String methodName, Ob...
method methodCall (line 41) | public static Object methodCall(Class<?> type, String methodName, Obje...
method doMethodCall (line 46) | private static Object doMethodCall(final Class<?> type, final String m...
method getResult (line 61) | private static Object getResult(final String methodName) {
method registerMethodCall (line 69) | private static void registerMethodCall(MethodCall methodName) {
method registerFieldCall (line 73) | private static void registerFieldCall(String fieldName) {
method methodCalls (line 77) | public static List<MethodCall> methodCalls() {
method getFieldCalls (line 81) | public static List<String> getFieldCalls() {
method constructorCalls (line 85) | public static List<MethodCall> constructorCalls() {
method returnOnMethodCall (line 89) | public static void returnOnMethodCall(final Object expected) {
method returnOnMethodCall (line 93) | public static void returnOnMethodCall(final String methodName, final O...
method clear (line 97) | public static void clear() {
class MethodCall (line 104) | public static class MethodCall {
method toString (line 111) | @Override
class ConditionBuilder (line 124) | public static class ConditionBuilder {
method registered (line 126) | public static ConditionBuilder registered() {
method forMethod (line 130) | public Condition<? super List<? extends MethodCall>> forMethod(final...
FILE: powermock-core/src/test/java/org/powermock/tests/utils/impl/PowerMockIgnorePackagesExtractorImplTest.java
class PowerMockIgnorePackagesExtractorImplTest (line 29) | @SuppressWarnings("unchecked")
method setUp (line 34) | @Before
method tearDown (line 40) | @After
method should_find_ignore_packages_in_the_whole_class_hierarchy (line 45) | @Test
method should_scan_interfaces_when_search_package_to_ignore (line 58) | @Test
method should_include_global_powermock_ignore_to_list_of_package_to_ignore (line 73) | @Test
method should_not_include_global_powermock_ignore_when_annotation_use_global_ignore_false (line 96) | @Test
method should_not_include_global_powermock_ignore_when_annotation_use_global_ignore_false_on_parent_class (line 120) | @Test
method calculateExpectedValues (line 144) | private String[] calculateExpectedValues(final String[] values) {
class ClassWithoutAnnotation (line 156) | private static class ClassWithoutAnnotation {
class IgnoreAnnotatedDemoClass (line 160) | @PowerMockIgnore({"ignore0", "ignore1"})
class IgnoreAnnotatedDemoClassParent (line 165) | @PowerMockIgnore("ignore2")
class IgnoreAnnotatedDemoClassGrandParent (line 170) | @PowerMockIgnore("ignore3")
class IgnoreAnnotationFromInterfaces (line 175) | private static class IgnoreAnnotationFromInterfaces implements IgnoreA...
type IgnoreAnnotatedDemoInterfaceGrandParent (line 179) | @PowerMockIgnore("ignore5")
type IgnoreAnnotatedDemoInterfaceParent1 (line 184) | @PowerMockIgnore("ignore4")
type IgnoreAnnotatedDemoInterfaceParent2 (line 189) | @PowerMockIgnore("ignore6")
class ClassWithAnnotationUseFalse (line 193) | @PowerMockIgnore(value = "ignore6", globalIgnore = false)
class IgnoreAnnotatedWithGlobalIgnoreParent (line 198) | @PowerMockIgnore({"ignore0", "ignore1"})
FILE: powermock-core/src/test/java/org/powermock/tests/utils/impl/PrepareForTestExtractorImplTest.java
class PrepareForTestExtractorImplTest (line 35) | public class PrepareForTestExtractorImplTest {
method assertThatInterfacesWorks (line 42) | @Test
method shouldFindClassesToPrepareForTestInTheWholeClassHierarchy (line 56) | @Test
class PrepareForTestDemoClass (line 75) | @PrepareForTest(fullyQualifiedNames = { "Class1", "Class2" })
class PrepareForTestDemoClassParent (line 80) | @PrepareForTest(fullyQualifiedNames = { "Class3" })
class PrepareForTestDemoClassGrandParent (line 85) | @PrepareForTest(fullyQualifiedNames = { "Class4", "Class5" })
FILE: powermock-core/src/test/java/org/powermock/utils/JavaVersionTest.java
class JavaVersionTest (line 8) | public class JavaVersionTest {
method should_return_true_for_current_version_that_if_high_than16 (line 10) | @Test
FILE: powermock-core/src/test/java/org/powermock/utils/NumberUtilsTest.java
class NumberUtilsTest (line 8) | public class NumberUtilsTest {
method should_parse_and_return_float (line 10) | @Test
method should_return_default_value_when_cannot_parse (line 18) | @Test
method should_return_default_value_when_string_is_null (line 25) | @Test
FILE: powermock-core/src/test/java/powermock/test/support/ClassForMockClassLoaderTestCase.java
class ClassForMockClassLoaderTestCase (line 22) | public class ClassForMockClassLoaderTestCase {
method description (line 24) | public String description() {
FILE: powermock-core/src/test/java/powermock/test/support/ClassWithLargeMethods.java
class ClassWithLargeMethods (line 20) | public class ClassWithLargeMethods {
class MethodLowerThanLimit (line 2
Condensed preview — 969 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (2,896K chars).
[
{
"path": ".github/ISSUE_TEMPLATE.md",
"chars": 1260,
"preview": "Hey there and thank you for using PowerMock\n\nPlease read the following tips before filing an issue:\n\nIs this something y"
},
{
"path": ".github/dependabot.yml",
"chars": 208,
"preview": "version: 2\nupdates:\n - package-ecosystem: \"gradle\"\n directory: \"/\"\n schedule:\n interval: \"weekly\"\n - packag"
},
{
"path": ".github/workflows/gradle-wrapper-validation.yml",
"chars": 238,
"preview": "name: \"Validate Gradle Wrapper\"\non: [push, pull_request]\n\njobs:\n validation:\n name: \"Gradle wrapper validation\"\n "
},
{
"path": ".gitignore",
"chars": 132,
"preview": "target\n*.iws\n*.ipr\n*.iml\n.classpath\n.project\n.settings\n.springBeans\nrepo\n.idea\n**/build/**\n.gradle\n**/out/**\n**/classes/"
},
{
"path": ".travis.yml",
"chars": 1300,
"preview": "# More details on how to configure the Travis build\n# https://docs.travis-ci.com/user/customizing-the-build/\n\n# Speed up"
},
{
"path": "CONTRIBUTING.md",
"chars": 4438,
"preview": "# Contributing to PowerMock #\n\nFirst of all, thank you for considering contributing to PowerMock. Please, read the guide"
},
{
"path": "LICENSE.txt",
"chars": 11358,
"preview": "\n Apache License\n Version 2.0, January 2004\n "
},
{
"path": "README.md",
"chars": 6421,
"preview": "\n\n[](https://trav"
},
{
"path": "build.gradle",
"chars": 2123,
"preview": "buildscript {\n repositories {\n mavenCentral()\n jcenter()\n maven {\n url 'https://repo."
},
{
"path": "config/checkstyle/checkstyle.xml",
"chars": 7534,
"preview": "<?xml version=\"1.0\"?>\n<!DOCTYPE module PUBLIC \"-//Puppy Crawl//DTD Check Configuration 1.3//EN\" \"http://www.puppycrawl.c"
},
{
"path": "docs/changelog.txt",
"chars": 66488,
"preview": "Change log 2.0.0\n* PowerMockito changes:\n** `verifyStatic` is replaced by `verifyStatic(Class)`\n** `mockStatic` does not"
},
{
"path": "docs/generate_javadoc.sh",
"chars": 894,
"preview": "#!/bin/sh\nread -p \"Version to generate javadoc for: \" version\nproject_names=(powermock-core powermock-api-easymock power"
},
{
"path": "docs/release-notes/official.md",
"chars": 18320,
"preview": "<sup><sup>*Release notes were automatically generated by [Shipkit](http://shipkit.org/)*</sup></sup>\n\n#### 2.0.9\n - 2020"
},
{
"path": "gradle/java-module.gradle",
"chars": 565,
"preview": "repositories {\n mavenLocal()\n mavenCentral()\n jcenter()\n}\n\ngroup = \"org.powermock\"\n\napply plugin: 'propdeps'\nap"
},
{
"path": "gradle/modules.gradle",
"chars": 12324,
"preview": "def publishableModules = allprojects - rootProject - project(\":powermock-api\") - project(\":powermock-classloading\") - pr"
},
{
"path": "gradle/publishing/publish-maven.gradle",
"chars": 2483,
"preview": "apply plugin: 'maven-publish'\n\npublishing.publications.all {\n def devs = ['johanhaleby:Johan Haleby:johan.haleby at j"
},
{
"path": "gradle/publishing/publish.gradle",
"chars": 69,
"preview": "bintray {\n pkg {\n repo = project.ext.bintrayRepo\n }\n}\n\n\n"
},
{
"path": "gradle/publishing/publishable-module.gradle",
"chars": 958,
"preview": "ext {\n bintrayRepo = 'maven'\n bintrayAutoPublish = true\n mavenCentralSync = false\n bintrayPublications = ['j"
},
{
"path": "gradle/release/distZip.gradle",
"chars": 768,
"preview": "def fullJars = [\n project(\":powermock-release:powermock-easymock-junit\"),\n project(\":powermock-release:pow"
},
{
"path": "gradle/release/fullJars.gradle",
"chars": 1348,
"preview": "def fullJars = [\n project(\":powermock-release:powermock-easymock\"),\n project(\":powermock-release:powermock"
},
{
"path": "gradle/release/publish-distZip.gradle",
"chars": 261,
"preview": "apply from: \"${gradleScriptDir}/publishing/publish.gradle\"\n\ntasks.bintrayUpload.mustRunAfter \"assembleDist\"\n\nbintray {\n "
},
{
"path": "gradle/release/publish-fullJar.gradle",
"chars": 151,
"preview": "apply from: \"${gradleScriptDir}/publishing/publish.gradle\"\n\ntasks.bintrayUpload.mustRunAfter \"shadowJar\"\n\nbintray {\n "
},
{
"path": "gradle/release/publish-jar.gradle",
"chars": 170,
"preview": "apply from: \"${gradleScriptDir}/publishing/publish-maven.gradle\"\n\ntasks.bintrayUpload.mustRunAfter \"build\"\n\nbintray {\n "
},
{
"path": "gradle/shipkit.gradle",
"chars": 4347,
"preview": "shipkit {\n gitHub.repository = \"powermock/powermock\"\n\n gitHub.readOnlyAuthToken = \"0f1df49ac11364f542c9d3e6735ae64"
},
{
"path": "gradle/version.gradle",
"chars": 994,
"preview": "def v = Version.versionFile(project.file(\"version.properties\"))\n\nallprojects{\n project.version = v.version\n projec"
},
{
"path": "gradle/wrapper/gradle-wrapper.properties",
"chars": 203,
"preview": "distributionBase=GRADLE_USER_HOME\ndistributionPath=wrapper/dists\nzipStoreBase=GRADLE_USER_HOME\nzipStorePath=wrapper/dist"
},
{
"path": "gradle.properties",
"chars": 49,
"preview": "org.gradle.daemon=true\n//org.gradle.parallel=true"
},
{
"path": "gradlew",
"chars": 5296,
"preview": "#!/usr/bin/env sh\n\n##############################################################################\n##\n## Gradle start up"
},
{
"path": "gradlew.bat",
"chars": 2176,
"preview": "@if \"%DEBUG%\" == \"\" @echo off\n@rem ##########################################################################\n@rem\n@rem "
},
{
"path": "powermock-api/powermock-api-easymock/src/main/java/org/powermock/api/easymock/EasyMockConfiguration.java",
"chars": 2512,
"preview": "/*\n * Copyright 2016 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"Lice"
},
{
"path": "powermock-api/powermock-api-easymock/src/main/java/org/powermock/api/easymock/PowerMock.java",
"chars": 106963,
"preview": "/*\n * Copyright 2008 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\""
},
{
"path": "powermock-api/powermock-api-easymock/src/main/java/org/powermock/api/easymock/annotation/Mock.java",
"chars": 2528,
"preview": "package org.powermock.api.easymock.annotation;\n\nimport org.powermock.core.classloader.annotations.PowerMockListener;\n\nim"
},
{
"path": "powermock-api/powermock-api-easymock/src/main/java/org/powermock/api/easymock/annotation/MockNice.java",
"chars": 2192,
"preview": "package org.powermock.api.easymock.annotation;\n\nimport org.powermock.core.classloader.annotations.PowerMockListener;\n\nim"
},
{
"path": "powermock-api/powermock-api-easymock/src/main/java/org/powermock/api/easymock/annotation/MockStrict.java",
"chars": 2127,
"preview": "package org.powermock.api.easymock.annotation;\n\nimport org.powermock.core.classloader.annotations.PowerMockListener;\n\nim"
},
{
"path": "powermock-api/powermock-api-easymock/src/main/java/org/powermock/api/easymock/internal/invocationcontrol/EasyMockMethodInvocationControl.java",
"chars": 5740,
"preview": "/*\n * Copyright 2008 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\""
},
{
"path": "powermock-api/powermock-api-easymock/src/main/java/org/powermock/api/easymock/internal/invocationcontrol/EasyMockNewInvocationControl.java",
"chars": 3754,
"preview": "/*\n * Copyright 2008 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\""
},
{
"path": "powermock-api/powermock-api-easymock/src/main/java/org/powermock/api/easymock/internal/invocationcontrol/NewInvocationControlAssertionError.java",
"chars": 1099,
"preview": "package org.powermock.api.easymock.internal.invocationcontrol;\n\nimport org.powermock.core.spi.support.InvocationSubstitu"
},
{
"path": "powermock-api/powermock-api-easymock/src/main/java/org/powermock/api/easymock/internal/mockstrategy/MockStrategy.java",
"chars": 180,
"preview": "package org.powermock.api.easymock.internal.mockstrategy;\n\nimport org.easymock.IMocksControl;\n\npublic interface MockStra"
},
{
"path": "powermock-api/powermock-api-easymock/src/main/java/org/powermock/api/easymock/internal/mockstrategy/impl/AbstractMockStrategyBase.java",
"chars": 764,
"preview": "package org.powermock.api.easymock.internal.mockstrategy.impl;\n\nimport org.easymock.IMocksControl;\nimport org.easymock.i"
},
{
"path": "powermock-api/powermock-api-easymock/src/main/java/org/powermock/api/easymock/internal/mockstrategy/impl/DefaultMockStrategy.java",
"chars": 228,
"preview": "package org.powermock.api.easymock.internal.mockstrategy.impl;\n\nimport org.easymock.MockType;\n\npublic class DefaultMockS"
},
{
"path": "powermock-api/powermock-api-easymock/src/main/java/org/powermock/api/easymock/internal/mockstrategy/impl/NiceMockStrategy.java",
"chars": 219,
"preview": "package org.powermock.api.easymock.internal.mockstrategy.impl;\n\nimport org.easymock.MockType;\n\npublic class NiceMockStra"
},
{
"path": "powermock-api/powermock-api-easymock/src/main/java/org/powermock/api/easymock/internal/mockstrategy/impl/StrictMockStrategy.java",
"chars": 225,
"preview": "package org.powermock.api.easymock.internal.mockstrategy.impl;\n\nimport org.easymock.MockType;\n\npublic class StrictMockSt"
},
{
"path": "powermock-api/powermock-api-easymock/src/main/java/org/powermock/api/easymock/mockpolicies/AbstractEasyMockLogPolicyBase.java",
"chars": 3292,
"preview": "/*\n * Copyright 2008 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\""
},
{
"path": "powermock-api/powermock-api-easymock/src/main/java/org/powermock/api/easymock/mockpolicies/JclMockPolicy.java",
"chars": 2085,
"preview": "/*\n * Copyright 2008 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\""
},
{
"path": "powermock-api/powermock-api-easymock/src/main/java/org/powermock/api/easymock/mockpolicies/Log4jMockPolicy.java",
"chars": 1875,
"preview": "/*\n * Copyright 2008 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\""
},
{
"path": "powermock-api/powermock-api-easymock/src/main/java/org/powermock/api/easymock/mockpolicies/Slf4jMockPolicy.java",
"chars": 1924,
"preview": "/*\n * Copyright 2008 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\""
},
{
"path": "powermock-api/powermock-api-easymock/src/main/java/org/powermock/api/easymock/powermocklistener/AnnotationEnabler.java",
"chars": 1274,
"preview": "/*\n * Copyright 2008 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\""
},
{
"path": "powermock-api/powermock-api-easymock/src/main/java/org/powermock/api/extension/InjectFieldSearcher.java",
"chars": 887,
"preview": "/*\n * Copyright 2016 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"Lice"
},
{
"path": "powermock-api/powermock-api-easymock/src/main/java/org/powermock/api/extension/agent/JavaAgentFrameworkRegisterImpl.java",
"chars": 1105,
"preview": "/*\n * Copyright 2016 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"Lice"
},
{
"path": "powermock-api/powermock-api-easymock/src/main/java/org/powermock/api/extension/listener/AnnotationEnabler.java",
"chars": 3115,
"preview": "/*\n * Copyright 2008 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\""
},
{
"path": "powermock-api/powermock-api-easymock/src/main/java/org/powermock/api/extension/listener/AnnotationGlobalMetadata.java",
"chars": 2027,
"preview": "/*\n * Copyright 2016 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"Lice"
},
{
"path": "powermock-api/powermock-api-easymock/src/main/java/org/powermock/api/extension/listener/AnnotationMockCreator.java",
"chars": 844,
"preview": "/*\n * Copyright 2016 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"Lice"
},
{
"path": "powermock-api/powermock-api-easymock/src/main/java/org/powermock/api/extension/listener/AnnotationMockCreatorFactory.java",
"chars": 1849,
"preview": "/*\n * Copyright 2016 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"Lice"
},
{
"path": "powermock-api/powermock-api-easymock/src/main/java/org/powermock/api/extension/listener/AnnotationMockMetadata.java",
"chars": 3771,
"preview": "/*\n * Copyright 2016 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"Lice"
},
{
"path": "powermock-api/powermock-api-easymock/src/main/java/org/powermock/api/extension/listener/AnnotationMockScanner.java",
"chars": 1886,
"preview": "/*\n * Copyright 2016 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"Lice"
},
{
"path": "powermock-api/powermock-api-easymock/src/main/java/org/powermock/api/extension/listener/DefaultInjectFieldSearcher.java",
"chars": 3197,
"preview": "/*\n * Copyright 2016 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"Lice"
},
{
"path": "powermock-api/powermock-api-easymock/src/main/java/org/powermock/api/extension/listener/EasyMockAnnotationSupport.java",
"chars": 4450,
"preview": "/*\n * Copyright 2016 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"Lice"
},
{
"path": "powermock-api/powermock-api-easymock/src/main/java/org/powermock/api/extension/listener/MockMetadata.java",
"chars": 1023,
"preview": "/*\n * Copyright 2016 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"Lice"
},
{
"path": "powermock-api/powermock-api-easymock/src/main/java/org/powermock/api/extension/listener/TestSubjectInjector.java",
"chars": 5074,
"preview": "/*\n * Copyright 2016 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"Lice"
},
{
"path": "powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/extension/agent/JavaAgentFrameworkRegisterImpl.java",
"chars": 1681,
"preview": "package org.powermock.api.extension.agent;\n\nimport org.powermock.api.mockito.internal.mockcreation.MockCreator;\nimport o"
},
{
"path": "powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/extension/listener/AnnotationEnabler.java",
"chars": 5046,
"preview": "/*\n * Copyright 2016 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"Lice"
},
{
"path": "powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/ClassNotPreparedException.java",
"chars": 346,
"preview": "package org.powermock.api.mockito;\n\n/**\n * The exception is thrown when a user tries to mock class which is't prepared, "
},
{
"path": "powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/PowerMockito.java",
"chars": 29302,
"preview": "/*\n * Copyright 2016 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"Lice"
},
{
"path": "powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/expectation/ConstructorAwareExpectationSetup.java",
"chars": 1923,
"preview": "/*\n * Copyright 2016 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"Lice"
},
{
"path": "powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/expectation/ConstructorExpectationSetup.java",
"chars": 811,
"preview": "/*\n * Copyright 2009 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\""
},
{
"path": "powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/expectation/DefaultConstructorExpectationSetup.java",
"chars": 6156,
"preview": "/*\n *\n * Copyright 2017 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"L"
},
{
"path": "powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/expectation/PowerMockitoStubber.java",
"chars": 7191,
"preview": "/*\n * Copyright 2016 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"Lice"
},
{
"path": "powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/expectation/PrivatelyExpectedArguments.java",
"chars": 876,
"preview": "/*\n * Copyright 2016 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"Lice"
},
{
"path": "powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/expectation/WithAnyArguments.java",
"chars": 812,
"preview": "/*\n * Copyright 2009 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\""
},
{
"path": "powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/expectation/WithExpectedArguments.java",
"chars": 885,
"preview": "/*\n * Copyright 2016 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"Lice"
},
{
"path": "powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/expectation/WithExpectedParameterTypes.java",
"chars": 825,
"preview": "/*\n * Copyright 2009 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\""
},
{
"path": "powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/expectation/WithOrWithoutExpectedArguments.java",
"chars": 781,
"preview": "/*\n * Copyright 2009 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\""
},
{
"path": "powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/expectation/WithoutExpectedArguments.java",
"chars": 842,
"preview": "/*\n * Copyright 2016 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"Lice"
},
{
"path": "powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/expectation/reporter/MockitoPowerMockReporter.java",
"chars": 1331,
"preview": "/*\n * Copyright 2016 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"Lice"
},
{
"path": "powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/internal/PowerMockitoCore.java",
"chars": 5139,
"preview": "/*\n * Copyright 2016 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"Lice"
},
{
"path": "powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/internal/configuration/PowerMockitoInjectingAnnotationEngine.java",
"chars": 2054,
"preview": "/*\n * Copyright 2016 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"Lice"
},
{
"path": "powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/internal/configuration/PowerMockitoSpyAnnotationEngine.java",
"chars": 2387,
"preview": "/*\n * Copyright 2016 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"Lice"
},
{
"path": "powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/internal/exceptions/StackTraceCleanerProvider.java",
"chars": 1539,
"preview": "/*\n * Copyright 2016 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"Lice"
},
{
"path": "powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/internal/expectation/DefaultMethodExpectationSetup.java",
"chars": 2371,
"preview": "/*\n * Copyright 2016 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"Lice"
},
{
"path": "powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/internal/expectation/DefaultPrivatelyExpectedArguments.java",
"chars": 1838,
"preview": "/*\n * Copyright 2016 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"Lice"
},
{
"path": "powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/internal/expectation/DelegatingToConstructorsOngoingStubbing.java",
"chars": 5450,
"preview": "/*\n * Copyright 2012 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\""
},
{
"path": "powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/internal/expectation/PowerMockitoStubberImpl.java",
"chars": 5216,
"preview": "/*\n * Copyright 2016 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"Lice"
},
{
"path": "powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/internal/invocation/InvocationControlAssertionError.java",
"chars": 8024,
"preview": "/*\n * Copyright 2009 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\""
},
{
"path": "powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/internal/invocation/MockitoNewInvocationControl.java",
"chars": 3204,
"preview": "/*\n * Copyright 2009 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\""
},
{
"path": "powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/internal/mockcreation/AbstractMockCreator.java",
"chars": 600,
"preview": "package org.powermock.api.mockito.internal.mockcreation;\n\nimport org.powermock.core.agent.JavaAgentClassRegister;\n\npubli"
},
{
"path": "powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/internal/mockcreation/DefaultMockCreator.java",
"chars": 5716,
"preview": "/*\r\n * Copyright 2016 the original author or authors.\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"L"
},
{
"path": "powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/internal/mockcreation/MockCreator.java",
"chars": 377,
"preview": "package org.powermock.api.mockito.internal.mockcreation;\n\nimport java.lang.reflect.Method;\n\n/**\n * An implementer of int"
},
{
"path": "powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/internal/mockcreation/MockTypeValidator.java",
"chars": 132,
"preview": "package org.powermock.api.mockito.internal.mockcreation;\n\n/**\n *\n */\npublic interface MockTypeValidator<T> {\n void va"
},
{
"path": "powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/internal/mockcreation/MockTypeValidatorFactory.java",
"chars": 2721,
"preview": "package org.powermock.api.mockito.internal.mockcreation;\n\nimport org.powermock.api.mockito.expectation.reporter.MockitoP"
},
{
"path": "powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/internal/mockcreation/RuntimeExceptionProxy.java",
"chars": 195,
"preview": "package org.powermock.api.mockito.internal.mockcreation;\n\npublic class RuntimeExceptionProxy extends RuntimeException {\n"
},
{
"path": "powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/internal/stubbing/MockitoRealMethodInvocation.java",
"chars": 1256,
"preview": "/*\n *\n * Copyright 2017 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"L"
},
{
"path": "powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/internal/stubbing/PowerMockCallRealMethod.java",
"chars": 1204,
"preview": "/*\n *\n * Copyright 2017 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"L"
},
{
"path": "powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/internal/verification/DefaultConstructorArgumentsVerification.java",
"chars": 2448,
"preview": "/*\n * Copyright 2016 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"Lice"
},
{
"path": "powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/internal/verification/DefaultPrivateMethodVerification.java",
"chars": 2537,
"preview": "/*\n * Copyright 2016 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"Lice"
},
{
"path": "powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/internal/verification/VerifyNoMoreInteractions.java",
"chars": 2599,
"preview": "/*\n * Copyright 2016 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"Lice"
},
{
"path": "powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/invocation/InvocationFactory.java",
"chars": 2611,
"preview": "/*\n *\n * Copyright 2017 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"L"
},
{
"path": "powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/invocation/MockHandlerAdaptor.java",
"chars": 3017,
"preview": "/*\n *\n * Copyright 2017 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"L"
},
{
"path": "powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/invocation/MockitoMethodInvocationControl.java",
"chars": 6624,
"preview": "/*\n * Copyright 2016 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"Lice"
},
{
"path": "powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/mockmaker/MockMakerLoader.java",
"chars": 2093,
"preview": "/*\n *\n * Copyright 2017 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"L"
},
{
"path": "powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/mockmaker/PowerMockMaker.java",
"chars": 3840,
"preview": "/*\n * Copyright 2016 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"Lice"
},
{
"path": "powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/mockpolicies/Slf4jMockPolicy.java",
"chars": 4415,
"preview": "/*\n * Copyright 2016 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"Lice"
},
{
"path": "powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/powermocklistener/AnnotationEnabler.java",
"chars": 1109,
"preview": "/*\n * Copyright 2016 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"Lice"
},
{
"path": "powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/verification/ConstructorArgumentsVerification.java",
"chars": 878,
"preview": "/*\n * Copyright 2016 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"Lice"
},
{
"path": "powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/verification/PrivateMethodVerification.java",
"chars": 1655,
"preview": "/*\n * Copyright 2016 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"Lice"
},
{
"path": "powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/verification/WithOrWithoutVerifiedArguments.java",
"chars": 796,
"preview": "/*\n * Copyright 2016 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"Lice"
},
{
"path": "powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/verification/WithVerifiedArguments.java",
"chars": 825,
"preview": "/*\n * Copyright 2016 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"Lice"
},
{
"path": "powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/verification/WithoutVerifiedArguments.java",
"chars": 778,
"preview": "/*\n * Copyright 2016 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"Lice"
},
{
"path": "powermock-api/powermock-api-mockito2/src/main/resources/mockito-extensions/org.mockito.plugins.MockMaker",
"chars": 50,
"preview": "org.powermock.api.mockito.mockmaker.PowerMockMaker"
},
{
"path": "powermock-api/powermock-api-mockito2/src/main/resources/mockito-extensions/org.mockito.plugins.StackTraceCleanerProvider",
"chars": 71,
"preview": "org.powermock.api.mockito.internal.exceptions.StackTraceCleanerProvider"
},
{
"path": "powermock-api/powermock-api-mockito2/src/test/java/org/powermock/api/mockito/PowerMockMockito2ApiTestSuite.java",
"chars": 731,
"preview": "package org.powermock.api.mockito;\n\nimport org.junit.runner.RunWith;\nimport org.junit.runners.Suite;\nimport org.powermoc"
},
{
"path": "powermock-api/powermock-api-mockito2/src/test/java/org/powermock/api/mockito/internal/expectation/DefaultMethodExpectationSetupTestCase.java",
"chars": 2288,
"preview": "/*\n * Copyright 2010 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\""
},
{
"path": "powermock-api/powermock-api-mockito2/src/test/java/org/powermock/api/mockito/internal/mockcreation/MockCreatorTestCase.java",
"chars": 1935,
"preview": "package org.powermock.api.mockito.internal.mockcreation;\n\nimport org.junit.Test;\nimport org.mockito.MockSettings;\nimport"
},
{
"path": "powermock-api/powermock-api-mockito2/src/test/java/org/powermock/api/mockito/mockmaker/PowerMockMakerTestCase.java",
"chars": 5736,
"preview": "/*\n *\n * Copyright 2017 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"L"
},
{
"path": "powermock-api/powermock-api-mockito2/src/test/resources/org/powermock/extensions/configuration.template",
"chars": 105,
"preview": "mockito.mock-maker-class=org.powermock.api.mockito.mockmaker.PowerMockMakerTestCase$DelegateMockMakerStub"
},
{
"path": "powermock-api/powermock-api-support/src/main/java/org/powermock/api/support/ClassLoaderUtil.java",
"chars": 2307,
"preview": "/*\n * Copyright 2009 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\""
},
{
"path": "powermock-api/powermock-api-support/src/main/java/org/powermock/api/support/MethodProxy.java",
"chars": 2609,
"preview": "/*\n * Copyright 2009 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\""
},
{
"path": "powermock-api/powermock-api-support/src/main/java/org/powermock/api/support/SafeExceptionRethrower.java",
"chars": 936,
"preview": "/*\n * Copyright 2010 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\""
},
{
"path": "powermock-api/powermock-api-support/src/main/java/org/powermock/api/support/Stubber.java",
"chars": 2213,
"preview": "/*\n * Copyright 2009 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\""
},
{
"path": "powermock-api/powermock-api-support/src/main/java/org/powermock/api/support/SuppressCode.java",
"chars": 7718,
"preview": "/*\n * Copyright 2008 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\""
},
{
"path": "powermock-api/powermock-api-support/src/main/java/org/powermock/api/support/membermodification/MemberMatcher.java",
"chars": 14802,
"preview": "/*\n * Copyright 2009 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\""
},
{
"path": "powermock-api/powermock-api-support/src/main/java/org/powermock/api/support/membermodification/MemberModifier.java",
"chars": 3771,
"preview": "/*\n * Copyright 2009 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\""
},
{
"path": "powermock-api/powermock-api-support/src/main/java/org/powermock/api/support/membermodification/strategy/ClassReplaceStrategy.java",
"chars": 1078,
"preview": "/*\n * Copyright 2009 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\""
},
{
"path": "powermock-api/powermock-api-support/src/main/java/org/powermock/api/support/membermodification/strategy/MethodReplaceStrategy.java",
"chars": 1360,
"preview": "/*\n * Copyright 2009 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\""
},
{
"path": "powermock-api/powermock-api-support/src/main/java/org/powermock/api/support/membermodification/strategy/MethodStubStrategy.java",
"chars": 1386,
"preview": "/*\n * Copyright 2009 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\""
},
{
"path": "powermock-api/powermock-api-support/src/main/java/org/powermock/api/support/membermodification/strategy/impl/MethodReplaceStrategyImpl.java",
"chars": 3384,
"preview": "/*\n * Copyright 2009 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\""
},
{
"path": "powermock-api/powermock-api-support/src/main/java/org/powermock/api/support/membermodification/strategy/impl/MethodStubStrategyImpl.java",
"chars": 1734,
"preview": "/*\n * Copyright 2009 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\""
},
{
"path": "powermock-classloading/powermock-classloading-base/src/main/java/org/powermock/classloading/AbstractClassloaderExecutor.java",
"chars": 5040,
"preview": "/*\n * Copyright 2016 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"Lice"
},
{
"path": "powermock-classloading/powermock-classloading-base/src/main/java/org/powermock/classloading/ClassloaderExecutor.java",
"chars": 2407,
"preview": "/*\n * Copyright 2016 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"Lice"
},
{
"path": "powermock-classloading/powermock-classloading-base/src/main/java/org/powermock/classloading/SingleClassloaderExecutor.java",
"chars": 1154,
"preview": "/*\n * Copyright 2009 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\""
},
{
"path": "powermock-classloading/powermock-classloading-base/src/main/java/org/powermock/classloading/spi/DeepClonerSPI.java",
"chars": 166,
"preview": "package org.powermock.classloading.spi;\n\n/**\n * A deep-cloner must implement this interface.\n */\npublic interface DeepCl"
},
{
"path": "powermock-classloading/powermock-classloading-base/src/main/java/org/powermock/classloading/spi/DoNotClone.java",
"chars": 1076,
"preview": "/*\n * Copyright 2010 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\""
},
{
"path": "powermock-classloading/powermock-classloading-objenesis/src/main/java/org/powermock/classloading/DeepCloner.java",
"chars": 13222,
"preview": "/*\n * Copyright 2009 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\""
},
{
"path": "powermock-classloading/powermock-classloading-objenesis/src/test/java/powermock/classloading/ObjenesisClassloaderExecutorTest.java",
"chars": 10781,
"preview": "/*\n * Copyright 2010 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\""
},
{
"path": "powermock-classloading/powermock-classloading-objenesis/src/test/java/powermock/classloading/ObjenesisDeepClonerTest.java",
"chars": 4039,
"preview": "/*\n * Copyright 2010 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\""
},
{
"path": "powermock-classloading/powermock-classloading-xstream/src/main/java/org/powermock/classloading/DeepCloner.java",
"chars": 1927,
"preview": "/*\n * Copyright 2009 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\""
},
{
"path": "powermock-classloading/powermock-classloading-xstream/src/test/java/powermock/classloading/XStreamClassloaderExecutorTest.java",
"chars": 14102,
"preview": "/*\n * Copyright 2010 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\""
},
{
"path": "powermock-classloading/powermock-classloading-xstream/src/test/java/powermock/classloading/XStreamDeepClonerTest.java",
"chars": 3477,
"preview": "/*\n * Copyright 2010 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\""
},
{
"path": "powermock-core/build.gradle",
"chars": 1,
"preview": "\n"
},
{
"path": "powermock-core/src/main/java/org/powermock/PowerMockInternalException.java",
"chars": 1313,
"preview": "/*\n *\n * Copyright 2017 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"L"
},
{
"path": "powermock-core/src/main/java/org/powermock/configuration/Configuration.java",
"chars": 1539,
"preview": "/*\n *\n * Copyright 2017 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"L"
},
{
"path": "powermock-core/src/main/java/org/powermock/configuration/ConfigurationFactory.java",
"chars": 793,
"preview": "/*\n *\n * Copyright 2017 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"L"
},
{
"path": "powermock-core/src/main/java/org/powermock/configuration/ConfigurationType.java",
"chars": 1595,
"preview": "/*\n *\n * Copyright 2017 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"L"
},
{
"path": "powermock-core/src/main/java/org/powermock/configuration/GlobalConfiguration.java",
"chars": 2820,
"preview": "/*\n *\n * Copyright 2017 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"L"
},
{
"path": "powermock-core/src/main/java/org/powermock/configuration/MockitoConfiguration.java",
"chars": 1560,
"preview": "/*\n *\n * Copyright 2017 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"L"
},
{
"path": "powermock-core/src/main/java/org/powermock/configuration/PowerMockConfiguration.java",
"chars": 2361,
"preview": "/*\n *\n * Copyright 2017 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"L"
},
{
"path": "powermock-core/src/main/java/org/powermock/configuration/support/ConfigurationBuilder.java",
"chars": 3128,
"preview": "/*\n *\n * Copyright 2017 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"L"
},
{
"path": "powermock-core/src/main/java/org/powermock/configuration/support/ConfigurationFactoryImpl.java",
"chars": 3452,
"preview": "/*\n *\n * Copyright 2017 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"L"
},
{
"path": "powermock-core/src/main/java/org/powermock/configuration/support/ConfigurationMapper.java",
"chars": 6213,
"preview": "/*\n *\n * Copyright 2017 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"L"
},
{
"path": "powermock-core/src/main/java/org/powermock/configuration/support/PropertiesFinder.java",
"chars": 2205,
"preview": "package org.powermock.configuration.support;\n\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.net.UR"
},
{
"path": "powermock-core/src/main/java/org/powermock/configuration/support/PropertiesLoader.java",
"chars": 2633,
"preview": "/*\n *\n * Copyright 2017 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"L"
},
{
"path": "powermock-core/src/main/java/org/powermock/configuration/support/ValueAliases.java",
"chars": 1019,
"preview": "/*\n *\n * Copyright 2017 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"L"
},
{
"path": "powermock-core/src/main/java/org/powermock/core/ClassLocator.java",
"chars": 798,
"preview": "/*\n * Copyright 2014 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\""
},
{
"path": "powermock-core/src/main/java/org/powermock/core/ClassReplicaCreator.java",
"chars": 9161,
"preview": "/*\n * Copyright 2011 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\""
},
{
"path": "powermock-core/src/main/java/org/powermock/core/ConcreteClassGenerator.java",
"chars": 3377,
"preview": "/*\n * Copyright 2011 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\""
},
{
"path": "powermock-core/src/main/java/org/powermock/core/DefaultFieldValueGenerator.java",
"chars": 4599,
"preview": "/*\n * Copyright 2011 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\""
},
{
"path": "powermock-core/src/main/java/org/powermock/core/IdentityHashSet.java",
"chars": 1483,
"preview": "/*\n * Copyright 2011 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\""
},
{
"path": "powermock-core/src/main/java/org/powermock/core/IndicateReloadClass.java",
"chars": 678,
"preview": "/*\n * Copyright 2011 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\""
},
{
"path": "powermock-core/src/main/java/org/powermock/core/InvocationException.java",
"chars": 817,
"preview": "/*\n *\n * Copyright 2017 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"L"
},
{
"path": "powermock-core/src/main/java/org/powermock/core/ListMap.java",
"chars": 3818,
"preview": "/*\n * Copyright 2011 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\""
},
{
"path": "powermock-core/src/main/java/org/powermock/core/MockGateway.java",
"chars": 13745,
"preview": "/*\n * Copyright 2011 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\""
},
{
"path": "powermock-core/src/main/java/org/powermock/core/MockInvocation.java",
"chars": 2648,
"preview": "package org.powermock.core;\n\nimport org.powermock.core.spi.MethodInvocationControl;\nimport org.powermock.reflect.excepti"
},
{
"path": "powermock-core/src/main/java/org/powermock/core/MockRepository.java",
"chars": 12957,
"preview": "/*\n * Copyright 2011 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\""
},
{
"path": "powermock-core/src/main/java/org/powermock/core/PowerMockUtils.java",
"chars": 2290,
"preview": "/*\n * Copyright 2011 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\""
},
{
"path": "powermock-core/src/main/java/org/powermock/core/WildcardMatcher.java",
"chars": 3009,
"preview": "/*\n * Copyright 2011 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\""
},
{
"path": "powermock-core/src/main/java/org/powermock/core/agent/JavaAgentClassRegister.java",
"chars": 1644,
"preview": "/*\n * Copyright 2016 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"Lice"
},
{
"path": "powermock-core/src/main/java/org/powermock/core/agent/JavaAgentFrameworkRegister.java",
"chars": 1256,
"preview": "/*\n * Copyright 2016 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"Lice"
},
{
"path": "powermock-core/src/main/java/org/powermock/core/agent/JavaAgentFrameworkRegisterFactory.java",
"chars": 2093,
"preview": "/*\n * Copyright 2016 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"Lice"
},
{
"path": "powermock-core/src/main/java/org/powermock/core/bytebuddy/ConditionalStateStackManipulation.java",
"chars": 2536,
"preview": "/*\n *\n * Copyright 2017 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"L"
},
{
"path": "powermock-core/src/main/java/org/powermock/core/bytebuddy/Frame.java",
"chars": 4748,
"preview": "/*\n *\n * Copyright 2017 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"L"
},
{
"path": "powermock-core/src/main/java/org/powermock/core/bytebuddy/MaxLocalsExtractor.java",
"chars": 2583,
"preview": "/*\n *\n * Copyright 2017 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"L"
},
{
"path": "powermock-core/src/main/java/org/powermock/core/bytebuddy/MethodMaxLocals.java",
"chars": 1417,
"preview": "/*\n *\n * Copyright 2017 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"L"
},
{
"path": "powermock-core/src/main/java/org/powermock/core/bytebuddy/MockGetawayCall.java",
"chars": 5786,
"preview": "/*\n *\n * Copyright 2017 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"L"
},
{
"path": "powermock-core/src/main/java/org/powermock/core/bytebuddy/PrimitiveBoxing.java",
"chars": 3877,
"preview": "/*\n *\n * Copyright 2017 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"L"
},
{
"path": "powermock-core/src/main/java/org/powermock/core/bytebuddy/Variable.java",
"chars": 2342,
"preview": "/*\n *\n * Copyright 2017 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"L"
},
{
"path": "powermock-core/src/main/java/org/powermock/core/classloader/ByteCodeFramework.java",
"chars": 3393,
"preview": "package org.powermock.core.classloader;\n\nimport org.powermock.configuration.GlobalConfiguration;\nimport org.powermock.co"
},
{
"path": "powermock-core/src/main/java/org/powermock/core/classloader/ClassMarker.java",
"chars": 1010,
"preview": "/*\n * Copyright 2016 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"Lice"
},
{
"path": "powermock-core/src/main/java/org/powermock/core/classloader/ClassloaderWrapper.java",
"chars": 2196,
"preview": "/*\n *\n * Copyright 2017 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"L"
},
{
"path": "powermock-core/src/main/java/org/powermock/core/classloader/DeferSupportingClassLoader.java",
"chars": 5484,
"preview": "/*\n * Copyright 2011 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\""
},
{
"path": "powermock-core/src/main/java/org/powermock/core/classloader/MockClassLoader.java",
"chars": 7583,
"preview": "/*\n * Copyright 2016 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"Lice"
},
{
"path": "powermock-core/src/main/java/org/powermock/core/classloader/MockClassLoaderBuilder.java",
"chars": 4272,
"preview": "/*\n * Copyright 2016 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"Lice"
},
{
"path": "powermock-core/src/main/java/org/powermock/core/classloader/MockClassLoaderConfiguration.java",
"chars": 9117,
"preview": "/*\n *\n * Copyright 2017 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"L"
},
{
"path": "powermock-core/src/main/java/org/powermock/core/classloader/MockClassLoaderFactory.java",
"chars": 9562,
"preview": "/*\n * Copyright 2016 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"Lice"
},
{
"path": "powermock-core/src/main/java/org/powermock/core/classloader/PowerMockModified.java",
"chars": 908,
"preview": "/*\n * Copyright 2016 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"Lice"
},
{
"path": "powermock-core/src/main/java/org/powermock/core/classloader/annotations/MockPolicy.java",
"chars": 2027,
"preview": "/*\n * Copyright 2011 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\""
},
{
"path": "powermock-core/src/main/java/org/powermock/core/classloader/annotations/PowerMockIgnore.java",
"chars": 2973,
"preview": "/*\n * Copyright 2011 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\""
},
{
"path": "powermock-core/src/main/java/org/powermock/core/classloader/annotations/PowerMockListener.java",
"chars": 1395,
"preview": "/*\n * Copyright 2011 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\""
},
{
"path": "powermock-core/src/main/java/org/powermock/core/classloader/annotations/PrepareEverythingForTest.java",
"chars": 1669,
"preview": "/*\n * Copyright 2011 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\""
},
{
"path": "powermock-core/src/main/java/org/powermock/core/classloader/annotations/PrepareForTest.java",
"chars": 3325,
"preview": "/*\n * Copyright 2011 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\""
},
{
"path": "powermock-core/src/main/java/org/powermock/core/classloader/annotations/PrepareOnlyThisForTest.java",
"chars": 3215,
"preview": "/*\n * Copyright 2011 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\""
},
{
"path": "powermock-core/src/main/java/org/powermock/core/classloader/annotations/SuppressStaticInitializationFor.java",
"chars": 1762,
"preview": "/*\n * Copyright 2011 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\""
},
{
"path": "powermock-core/src/main/java/org/powermock/core/classloader/annotations/UseClassPathAdjuster.java",
"chars": 1388,
"preview": "/*\n * Copyright 2013 Jonas Berlin\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not u"
},
{
"path": "powermock-core/src/main/java/org/powermock/core/classloader/javassist/ClassPathAdjuster.java",
"chars": 988,
"preview": "/*\n * Copyright 2013 Jonas Berlin\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not u"
},
{
"path": "powermock-core/src/main/java/org/powermock/core/classloader/javassist/ClassPoolFactory.java",
"chars": 1681,
"preview": "/*\n *\n * Copyright 2017 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"L"
},
{
"path": "powermock-core/src/main/java/org/powermock/core/classloader/javassist/JavaAssistClassMarkerFactory.java",
"chars": 2117,
"preview": "/*\n * Copyright 2016 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"Lice"
},
{
"path": "powermock-core/src/main/java/org/powermock/core/classloader/javassist/JavassistMockClassLoader.java",
"chars": 5293,
"preview": "/*\n *\n * Copyright 2017 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"L"
},
{
"path": "powermock-core/src/main/java/org/powermock/core/reporter/MockingFrameworkReporter.java",
"chars": 1071,
"preview": "/*\n * Copyright 2016 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"Lice"
},
{
"path": "powermock-core/src/main/java/org/powermock/core/reporter/PowerMockReporter.java",
"chars": 853,
"preview": "/*\n * Copyright 2016 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"Lice"
},
{
"path": "powermock-core/src/main/java/org/powermock/core/reporter/PowerMockReporterFactory.java",
"chars": 815,
"preview": "/*\n * Copyright 2016 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"Lice"
},
{
"path": "powermock-core/src/main/java/org/powermock/core/spi/DefaultBehavior.java",
"chars": 1384,
"preview": "/*\n * Copyright 2011 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\""
},
{
"path": "powermock-core/src/main/java/org/powermock/core/spi/MethodInvocationControl.java",
"chars": 1375,
"preview": "/*\n * Copyright 2011 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\""
}
]
// ... and 769 more files (download for full content)
About this extraction
This page contains the full source code of the jayway/powermock GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 969 files (2.6 MB), approximately 741.5k tokens, and a symbol index with 5037 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.
Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.